\r
using System.Collections.Generic;\r
using ExpressionToCodeLib;\r
+using KancolleSniffer.Util;\r
using Microsoft.VisualStudio.TestTools.UnitTesting;\r
\r
namespace KancolleSniffer.Test\r
using System.Linq;\r
using ExpressionToCodeLib;\r
+using KancolleSniffer.Net;\r
using Microsoft.VisualStudio.TestTools.UnitTesting;\r
\r
namespace KancolleSniffer.Test\r
\r
using System;\r
using ExpressionToCodeLib;\r
+using KancolleSniffer.Model;\r
+using KancolleSniffer.Util;\r
using Microsoft.VisualStudio.TestTools.UnitTesting;\r
\r
namespace KancolleSniffer.Test\r
using System.Collections.Generic;\r
using System.Linq;\r
+using KancolleSniffer.Util;\r
using Microsoft.CSharp.RuntimeBinder;\r
using Microsoft.VisualStudio.TestTools.UnitTesting;\r
\r
using System.Collections.Generic;\r
using System.IO;\r
using ExpressionToCodeLib;\r
+using KancolleSniffer.Util;\r
using Microsoft.VisualStudio.TestTools.UnitTesting;\r
using Moq;\r
\r
using System.Collections.Generic;\r
using System.Linq;\r
using ExpressionToCodeLib;\r
+using KancolleSniffer.Model;\r
+using KancolleSniffer.Util;\r
using Microsoft.VisualStudio.TestTools.UnitTesting;\r
\r
namespace KancolleSniffer.Test\r
using System.Drawing;\r
using System.Windows.Forms;\r
using ExpressionToCodeLib;\r
+using KancolleSniffer.Model;\r
+using KancolleSniffer.View;\r
using Microsoft.VisualStudio.TestTools.UnitTesting;\r
\r
namespace KancolleSniffer.Test\r
using System.IO.Compression;\r
using System.Linq;\r
using ExpressionToCodeLib;\r
+using KancolleSniffer.Model;\r
+using KancolleSniffer.Util;\r
using Microsoft.VisualStudio.TestTools.UnitTesting;\r
\r
namespace KancolleSniffer.Test\r
using System.Drawing;\r
using System.IO;\r
using System.Windows.Forms;\r
+using KancolleSniffer.Net;\r
+using KancolleSniffer.View;\r
\r
namespace KancolleSniffer\r
{\r
using System.Text;\r
using System.Text.RegularExpressions;\r
using System.Windows.Forms;\r
+using KancolleSniffer.Model;\r
+using KancolleSniffer.Util;\r
\r
namespace KancolleSniffer\r
{\r
<Reference Include="System.Xml" />\r
</ItemGroup>\r
<ItemGroup>\r
- <Compile Include="Achievement.cs" />\r
- <Compile Include="AkashiTimer.cs" />\r
- <Compile Include="AlarmTimer.cs" />\r
- <Compile Include="AntiAirPanel.cs">\r
+ <Compile Include="Model\Achievement.cs" />\r
+ <Compile Include="Model\AkashiTimer.cs" />\r
+ <Compile Include="Model\AlarmTimer.cs" />\r
+ <Compile Include="View\AntiAirPanel.cs">\r
<SubType>Component</SubType>\r
</Compile>\r
- <Compile Include="AirBattleResultPanel.cs" />\r
- <Compile Include="Ascii85.cs" />\r
- <Compile Include="BaseAirCoprs.cs" />\r
- <Compile Include="BattleInfo.cs" />\r
- <Compile Include="BattleResultPanel.cs">\r
+ <Compile Include="View\AirBattleResultPanel.cs" />\r
+ <Compile Include="Util\Ascii85.cs" />\r
+ <Compile Include="Model\BaseAirCoprs.cs" />\r
+ <Compile Include="Model\BattleInfo.cs" />\r
+ <Compile Include="View\BattleResultPanel.cs">\r
<SubType>Component</SubType>\r
</Compile>\r
- <Compile Include="CellInfo.cs" />\r
+ <Compile Include="Model\CellInfo.cs" />\r
<Compile Include="ErrorLog.cs" />\r
<Compile Include="Config.cs" />\r
<Compile Include="ConfigDialog.cs">\r
<Compile Include="ConfirmDialog.Designer.cs">\r
<DependentUpon>ConfirmDialog.cs</DependentUpon>\r
</Compile>\r
- <Compile Include="CUDColor.cs" />\r
- <Compile Include="DockInfo.cs" />\r
- <Compile Include="Fleet.cs" />\r
- <Compile Include="FleetPanel.cs">\r
+ <Compile Include="Util\CUDColor.cs" />\r
+ <Compile Include="Model\DockInfo.cs" />\r
+ <Compile Include="Model\Fleet.cs" />\r
+ <Compile Include="View\FleetPanel.cs">\r
<SubType>Component</SubType>\r
</Compile>\r
- <Compile Include="ExMapInfo.cs" />\r
+ <Compile Include="Model\ExMapInfo.cs" />\r
<Compile Include="ErrorDialog.cs">\r
<SubType>Form</SubType>\r
</Compile>\r
<Compile Include="ErrorDialog.Designer.cs">\r
<DependentUpon>ErrorDialog.cs</DependentUpon>\r
</Compile>\r
- <Compile Include="HttpProxy.cs" />\r
- <Compile Include="HttpUtility.cs" />\r
- <Compile Include="ItemTreeView.cs">\r
+ <Compile Include="Net\HttpProxy.cs" />\r
+ <Compile Include="Util\HttpUtility.cs" />\r
+ <Compile Include="View\ItemTreeView.cs">\r
<SubType>Component</SubType>\r
</Compile>\r
- <Compile Include="JsonParser.cs" />\r
+ <Compile Include="Util\JsonParser.cs" />\r
<Compile Include="Logger.cs" />\r
- <Compile Include="LogServer.cs" />\r
- <Compile Include="MaterialInfo.cs" />\r
- <Compile Include="MiscTextInfo.cs" />\r
- <Compile Include="AdditionalData.cs" />\r
+ <Compile Include="Net\LogServer.cs" />\r
+ <Compile Include="Model\MaterialInfo.cs" />\r
+ <Compile Include="View\MiscTextInfo.cs" />\r
+ <Compile Include="Model\AdditionalData.cs" />\r
<Compile Include="NotificationConfigDialog.cs">\r
<SubType>Form</SubType>\r
</Compile>\r
<DependentUpon>NotificationConfigDialog.cs</DependentUpon>\r
</Compile>\r
<Compile Include="NotificationManager.cs" />\r
- <Compile Include="PresetDeck.cs" />\r
- <Compile Include="ProxyManager.cs" />\r
- <Compile Include="PushNotification.cs" />\r
- <Compile Include="RepairListForMain.cs">\r
+ <Compile Include="Model\PresetDeck.cs" />\r
+ <Compile Include="Net\ProxyManager.cs" />\r
+ <Compile Include="Net\PushNotification.cs" />\r
+ <Compile Include="View\RepairListForMain.cs">\r
<SubType>Component</SubType>\r
</Compile>\r
- <Compile Include="MainFormLabels.cs" />\r
+ <Compile Include="View\MainFormLabels.cs" />\r
<Compile Include="ListForm.cs">\r
<SubType>Form</SubType>\r
</Compile>\r
<Compile Include="MainForm.Designer.cs">\r
<DependentUpon>MainForm.cs</DependentUpon>\r
</Compile>\r
- <Compile Include="MissionInfo.cs" />\r
+ <Compile Include="Model\MissionInfo.cs" />\r
<Compile Include="Program.cs" />\r
<Compile Include="Properties\AssemblyInfo.cs" />\r
- <Compile Include="QuestInfo.cs" />\r
- <Compile Include="ConditionTimer.cs" />\r
- <Compile Include="ResizableToolTip.cs">\r
+ <Compile Include="Model\QuestInfo.cs" />\r
+ <Compile Include="Model\ConditionTimer.cs" />\r
+ <Compile Include="View\ResizableToolTip.cs">\r
<SubType>Component</SubType>\r
</Compile>\r
- <Compile Include="ShipInfo.cs" />\r
- <Compile Include="ShipLabel.cs" />\r
- <Compile Include="ShipListPanel.cs">\r
+ <Compile Include="Model\ShipInfo.cs" />\r
+ <Compile Include="View\ShipLabel.cs" />\r
+ <Compile Include="View\ShipListPanel.cs">\r
<SubType>Component</SubType>\r
</Compile>\r
- <Compile Include="ShipMaster.cs" />\r
- <Compile Include="ShipStatus.cs" />\r
+ <Compile Include="Model\ShipMaster.cs" />\r
+ <Compile Include="Model\ShipStatus.cs" />\r
<Compile Include="Sniffer.cs" />\r
- <Compile Include="ItemInfo.cs" />\r
- <Compile Include="Status.cs" />\r
- <Compile Include="SwipeScrollify.cs" />\r
- <Compile Include="SystemProxy.cs" />\r
+ <Compile Include="Model\ItemInfo.cs" />\r
+ <Compile Include="Model\Status.cs" />\r
+ <Compile Include="View\SwipeScrollify.cs" />\r
+ <Compile Include="Net\SystemProxy.cs" />\r
<Compile Include="TextGenerator.cs" />\r
- <Compile Include="Win32API.cs" />\r
+ <Compile Include="Util\Win32API.cs" />\r
<EmbeddedResource Include="ConfigDialog.resx">\r
<DependentUpon>ConfigDialog.cs</DependentUpon>\r
</EmbeddedResource>\r
<ItemGroup>\r
<Content Include="app.ico" />\r
</ItemGroup>\r
+ <ItemGroup />\r
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />\r
<PropertyGroup>\r
<PostBuildEvent>COPY $(SolutionDir)\Data\*.* $(TargetDir)</PostBuildEvent>\r
// See the License for the specific language governing permissions and\r
// limitations under the License.\r
\r
+using KancolleSniffer.View;\r
+\r
namespace KancolleSniffer\r
{\r
partial class ListForm\r
this.label1Fleet3 = new System.Windows.Forms.Label();\r
this.labelFleet2 = new System.Windows.Forms.Label();\r
this.labelFleet1 = new System.Windows.Forms.Label();\r
- this.airBattleResultPanel = new KancolleSniffer.AirBattleResultPanel();\r
- this.battleResultPanel = new KancolleSniffer.BattleResultPanel();\r
- this.antiAirPanel = new KancolleSniffer.AntiAirPanel();\r
- this.fleetPanel = new KancolleSniffer.FleetPanel();\r
- this.itemTreeView = new KancolleSniffer.ItemTreeView();\r
- this.shipListPanel = new KancolleSniffer.ShipListPanel();\r
+ this.airBattleResultPanel = new AirBattleResultPanel();\r
+ this.battleResultPanel = new BattleResultPanel();\r
+ this.antiAirPanel = new AntiAirPanel();\r
+ this.fleetPanel = new FleetPanel();\r
+ this.itemTreeView = new ItemTreeView();\r
+ this.shipListPanel = new ShipListPanel();\r
this.contextMenuStripShipList.SuspendLayout();\r
this.contextMenuStrip.SuspendLayout();\r
this.panelGroupHeader.SuspendLayout();\r
using System.Drawing;\r
using System.Linq;\r
using System.Windows.Forms;\r
+using KancolleSniffer.Util;\r
+using KancolleSniffer.View;\r
using static System.Math;\r
\r
namespace KancolleSniffer\r
using System.IO;\r
using System.Linq;\r
using System.Text;\r
+using KancolleSniffer.Model;\r
+using KancolleSniffer.Util;\r
\r
namespace KancolleSniffer\r
{\r
// See the License for the specific language governing permissions and\r
// limitations under the License.\r
\r
+using KancolleSniffer.View;\r
+\r
namespace KancolleSniffer\r
{\r
partial class MainForm\r
this.labelFuelSq4 = new System.Windows.Forms.Label();\r
this.labelAkashiRepair = new System.Windows.Forms.Label();\r
this.labelClearQuest = new System.Windows.Forms.Label();\r
- this.panelRepairList = new KancolleSniffer.RepairListForMain();\r
- this.labelQuestCount1 = new KancolleSniffer.ShipLabel();\r
- this.labelQuestCount2 = new KancolleSniffer.ShipLabel();\r
- this.labelQuestCount3 = new KancolleSniffer.ShipLabel();\r
- this.labelQuestCount4 = new KancolleSniffer.ShipLabel();\r
- this.labelQuestCount5 = new KancolleSniffer.ShipLabel();\r
- this.labelQuestCount6 = new KancolleSniffer.ShipLabel();\r
+ this.panelRepairList = new RepairListForMain();\r
+ this.labelQuestCount1 = new ShipLabel();\r
+ this.labelQuestCount2 = new ShipLabel();\r
+ this.labelQuestCount3 = new ShipLabel();\r
+ this.labelQuestCount4 = new ShipLabel();\r
+ this.labelQuestCount5 = new ShipLabel();\r
+ this.labelQuestCount6 = new ShipLabel();\r
this.panelHeadquarters.SuspendLayout();\r
this.panelShipInfo.SuspendLayout();\r
this.panelBattleInfo.SuspendLayout();\r
using System.Text.RegularExpressions;\r
using System.Threading.Tasks;\r
using System.Windows.Forms;\r
+using KancolleSniffer.Model;\r
+using KancolleSniffer.Net;\r
+using KancolleSniffer.Util;\r
+using KancolleSniffer.View;\r
using Microsoft.CSharp.RuntimeBinder;\r
using static System.Math;\r
\r
using System.Collections.Generic;\r
using System.Xml.Serialization;\r
\r
-namespace KancolleSniffer\r
+namespace KancolleSniffer.Model\r
{\r
public class Achievement : IHaveState\r
{\r
using System.IO;\r
using System.Linq;\r
\r
-namespace KancolleSniffer\r
+namespace KancolleSniffer.Model\r
{\r
public class AdditionalData\r
{\r
using System;\r
using System.Collections.Generic;\r
using System.Linq;\r
+using KancolleSniffer.Util;\r
\r
-namespace KancolleSniffer\r
+namespace KancolleSniffer.Model\r
{\r
public class AkashiTimer\r
{\r
using System;\r
using System.Globalization;\r
\r
-namespace KancolleSniffer\r
+namespace KancolleSniffer.Model\r
{\r
public class NameAndTimer\r
{\r
using System.Collections.Generic;\r
using System.Collections.Specialized;\r
using System.Linq;\r
+using KancolleSniffer.Util;\r
\r
-namespace KancolleSniffer\r
+namespace KancolleSniffer.Model\r
{\r
public class BaseAirCoprs\r
{\r
using System;\r
using System.Collections.Generic;\r
using System.Linq;\r
+using KancolleSniffer.Util;\r
+using KancolleSniffer.View;\r
using static System.Math;\r
\r
-namespace KancolleSniffer\r
+namespace KancolleSniffer.Model\r
{\r
public enum BattleResultRank\r
{\r
// See the License for the specific language governing permissions and\r
// limitations under the License.\r
\r
-namespace KancolleSniffer\r
+namespace KancolleSniffer.Model\r
{\r
public class CellInfo\r
{\r
using System;\r
using System.Linq;\r
\r
-namespace KancolleSniffer\r
+namespace KancolleSniffer.Model\r
{\r
public class ConditionTimer : IHaveState\r
{\r
\r
using System;\r
using System.Linq;\r
+using KancolleSniffer.Util;\r
\r
-namespace KancolleSniffer\r
+namespace KancolleSniffer.Model\r
{\r
public class DockInfo\r
{\r
using System.Collections.Generic;\r
using System.Linq;\r
\r
-namespace KancolleSniffer\r
+namespace KancolleSniffer.Model\r
{\r
public class ExMapInfo : IHaveState\r
{\r
using System.Linq;\r
using static System.Math;\r
\r
-namespace KancolleSniffer\r
+namespace KancolleSniffer.Model\r
{\r
public struct ChargeStatus\r
{\r
var fs = new ChargeStatus(_shipInfo.GetStatus(Deck[0]));\r
var others = (from id in Deck.Skip(1) select new ChargeStatus(_shipInfo.GetStatus(id))).Aggregate(\r
(result, next) => new ChargeStatus(Max(result.Fuel, next.Fuel), Max(result.Bull, next.Bull)));\r
- return new ChargeStatus(fs.Fuel != 0 ? fs.Fuel : others.Fuel + 5, fs.Bull != 0 ? fs.Bull : others.Bull + 5);\r
+ return new ChargeStatus(fs.Fuel != 0 ? fs.Fuel : others.Fuel + 5,\r
+ fs.Bull != 0 ? fs.Bull : others.Bull + 5);\r
}\r
}\r
\r
using System.Collections.Generic;\r
using System.Drawing;\r
using System.Linq;\r
+using KancolleSniffer.Util;\r
using static System.Math;\r
\r
-namespace KancolleSniffer\r
+namespace KancolleSniffer.Model\r
{\r
public class ItemSpec\r
{\r
using System.Linq;\r
using System.Xml.Serialization;\r
\r
-namespace KancolleSniffer\r
+namespace KancolleSniffer.Model\r
{\r
public class MaterialInfo : IHaveState\r
{\r
\r
using System.Collections.Generic;\r
\r
-namespace KancolleSniffer\r
+namespace KancolleSniffer.Model\r
{\r
public class MissionInfo\r
{\r
\r
using System.Collections.Generic;\r
using System.Linq;\r
+using KancolleSniffer.Util;\r
\r
-namespace KancolleSniffer\r
+namespace KancolleSniffer.Model\r
{\r
public class PresetDeck\r
{\r
using System.Linq;\r
using System.Windows.Forms;\r
using System.Xml.Serialization;\r
+using KancolleSniffer.Util;\r
using static System.Math;\r
\r
-namespace KancolleSniffer\r
+namespace KancolleSniffer.Model\r
{\r
public class QuestStatus\r
{\r
\r
private void RemoveQuest(QuestInterval interval)\r
{\r
- foreach (var id in (from kv in _quests where kv.Value.Count.Spec.Interval == interval select kv.Key).ToArray())\r
+ foreach (var id in\r
+ (from kv in _quests where kv.Value.Count.Spec.Interval == interval select kv.Key).ToArray())\r
_quests.Remove(id);\r
}\r
\r
{\r
var fleet = _battleInfo.Result.Friend.Main.Where(s => s.NowHp > 0).Select(s => s.Spec)\r
.ToArray();\r
- if (fleet.Count(spec => spec.ShipType == 2) >= 2 && fleet.Count(spec => spec.IsAircraftCarrier) >= 2)\r
+ if (fleet.Count(spec => spec.ShipType == 2) >= 2 &&\r
+ fleet.Count(spec => spec.IsAircraftCarrier) >= 2)\r
IncrementCount(q264.Count);\r
}\r
}\r
{\r
if (_map == 63 && _boss && QuestSortie.CompareRank(rank, "A") <= 0)\r
{\r
- var fleet = _battleInfo.Result.Friend.Main.Where(s => s.NowHp > 0).Select(s => s.Spec.ShipType).ToArray();\r
+ var fleet = _battleInfo.Result.Friend.Main.Where(s => s.NowHp > 0).Select(s => s.Spec.ShipType)\r
+ .ToArray();\r
if (fleet.Count(s => s == 3) >= 2 && fleet.Count(s => s == 16) >= 1)\r
IncrementCount(q862.Count);\r
}\r
if (_map == 54 && _boss && QuestSortie.CompareRank(rank, "S") == 0)\r
{\r
var fleet = _battleInfo.Result.Friend.Main.Where(s => s.NowHp > 0).Select(s => s.Spec.Id).ToArray();\r
- if (fleet.Contains(543) && fleet.Intersect(new []{344, 345, 359}).Any())\r
+ if (fleet.Contains(543) && fleet.Intersect(new[] {344, 345, 359}).Any())\r
IncrementCount(q875.Count);\r
}\r
}\r
}\r
\r
- private int _questFleet = 0;\r
+ private int _questFleet;\r
\r
public void StartPractice(string request)\r
{\r
using System;\r
using System.Collections.Generic;\r
using System.Linq;\r
+using KancolleSniffer.Util;\r
using static System.Math;\r
\r
-namespace KancolleSniffer\r
+namespace KancolleSniffer.Model\r
{\r
-\r
public class ShipInfo\r
{\r
public const int FleetCount = 4;\r
var deck = (int)battle.api_deck_id - 1;\r
InjectShips(deck, (int[])battle.api_f_nowhps, (int[])battle.api_f_maxhps, (int[][])item[0]);\r
if (battle.api_f_nowhps_combined())\r
- InjectShips(1, (int[])battle.api_f_nowhps_combined, (int[])battle.api_f_maxhps_combined, (int[][])item[1]);\r
+ InjectShips(1, (int[])battle.api_f_nowhps_combined, (int[])battle.api_f_maxhps_combined,\r
+ (int[][])item[1]);\r
foreach (var enemy in (int[])battle.api_ship_ke)\r
_shipMaster.InjectSpec(enemy);\r
if (battle.api_ship_ke_combined())\r
using System;\r
using System.Collections.Generic;\r
\r
-namespace KancolleSniffer\r
+namespace KancolleSniffer.Model\r
{\r
public class ShipMaster\r
{\r
using System.Linq;\r
using static System.Math;\r
\r
-namespace KancolleSniffer\r
+namespace KancolleSniffer.Model\r
{\r
public class ShipStatus : ICloneable\r
{\r
using System.IO;\r
using System.Xml.Serialization;\r
\r
-namespace KancolleSniffer\r
+namespace KancolleSniffer.Model\r
{\r
public interface IHaveState\r
{\r
using System.Text.RegularExpressions;\r
using System.Threading.Tasks;\r
\r
-namespace KancolleSniffer\r
+namespace KancolleSniffer.Net\r
{\r
public class HttpProxy\r
{\r
using System.Net.Sockets;\r
using System.Text;\r
using System.Text.RegularExpressions;\r
+using KancolleSniffer.Model;\r
+using KancolleSniffer.Util;\r
\r
-namespace KancolleSniffer\r
+namespace KancolleSniffer.Net\r
{\r
public class LogServer\r
{\r
using System.Windows.Forms;\r
using Microsoft.Win32;\r
\r
-namespace KancolleSniffer\r
+namespace KancolleSniffer.Net\r
{\r
public class ProxyManager\r
{\r
using System.Runtime.CompilerServices;\r
using System.Text;\r
\r
-namespace KancolleSniffer\r
+namespace KancolleSniffer.Net\r
{\r
public static class PushNotification\r
{\r
using Microsoft.Win32;\r
using FILETIME = System.Runtime.InteropServices.ComTypes.FILETIME;\r
\r
-namespace KancolleSniffer\r
+namespace KancolleSniffer.Net\r
{\r
public class SystemProxy\r
{\r
using System.Drawing;\r
using System.Linq;\r
using System.Windows.Forms;\r
+using KancolleSniffer.View;\r
\r
namespace KancolleSniffer\r
{\r
using System.Collections.Generic;\r
using System.IO;\r
using System.Linq;\r
+using KancolleSniffer.Util;\r
\r
namespace KancolleSniffer\r
{\r
\r
using System;\r
using System.Windows.Forms;\r
+using KancolleSniffer.Util;\r
\r
namespace KancolleSniffer\r
{\r
// limitations under the License.\r
\r
using System;\r
+using KancolleSniffer.Util;\r
+using KancolleSniffer.View;\r
using System.Collections.Generic;\r
using System.Linq;\r
+using KancolleSniffer.Model;\r
\r
namespace KancolleSniffer\r
{\r
using System.IO;\r
using System.Linq;\r
using System.Text;\r
+using KancolleSniffer.Model;\r
\r
namespace KancolleSniffer\r
{\r
using System;\r
using System.Text;\r
\r
-namespace KancolleSniffer\r
+namespace KancolleSniffer.Util\r
{\r
public static class Ascii85\r
{\r
using System.Drawing;\r
\r
-namespace KancolleSniffer\r
+namespace KancolleSniffer.Util\r
{\r
/// <summary>\r
/// カラーユニバーサルデザイン推奨配色セットの色を定義する。\r
using System.Globalization;\r
using System.Text;\r
\r
-namespace KancolleSniffer\r
+namespace KancolleSniffer.Util\r
{\r
public class HttpUtility\r
{\r
using System.Text;\r
using System.Text.RegularExpressions;\r
\r
-namespace KancolleSniffer\r
+namespace KancolleSniffer.Util\r
{\r
public class JsonParser\r
{\r
using System.Diagnostics;\r
using System.Runtime.InteropServices;\r
\r
-namespace KancolleSniffer\r
+namespace KancolleSniffer.Util\r
{\r
public class Win32API\r
{\r
using System.ComponentModel;\r
using System.Drawing;\r
using System.Windows.Forms;\r
+using KancolleSniffer.Util;\r
\r
// ReSharper disable CoVariantArrayConversion\r
\r
-namespace KancolleSniffer\r
+namespace KancolleSniffer.View\r
{\r
public class AirBattleResult\r
{\r
using System.Linq;\r
using System.Windows.Forms;\r
\r
-namespace KancolleSniffer\r
+namespace KancolleSniffer.View\r
{\r
public class AntiAirPanel : Panel\r
{\r
var ships = fleet.Ships;\r
var rawForFleet = ships.Sum(ship => ship.EffectiveAntiAirForFleet);\r
var forFleet = new[] {1.0, 1.2, 1.6}.Select(r => (int)(rawForFleet * r) * 2 / 1.3).ToArray();\r
- _table.Add(new Record {Fleet = fn[fleet.Number] + " : " + string.Join("/", forFleet.Select(x => x.ToString("f1")))});\r
+ _table.Add(new Record\r
+ {\r
+ Fleet = fn[fleet.Number] + " : " + string.Join("/", forFleet.Select(x => x.ToString("f1")))\r
+ });\r
foreach (var ship in ships)\r
{\r
var rate = ship.EffectiveAntiAirForShip / 4.0;\r
{\r
Ship = ship.Name + " Lv" + ship.Level +\r
" : " + ship.EffectiveAntiAirForShip.ToString("d"),\r
- Id = ship.Id,\r
+ Id = ship.Id\r
});\r
_table.Add(new Record\r
{\r
new ShipLabel {Location = new Point(1, 3), AutoSize = true},\r
new ShipLabel {Location = new Point(10, 3), AutoSize = true},\r
new ShipLabel {Location = new Point(35, 3), AutoSize = true},\r
- new ShipLabel {Location = new Point(100, 3), AutoSize = true},\r
+ new ShipLabel {Location = new Point(100, 3), AutoSize = true}\r
};\r
_labelList.Add(labels);\r
_panelList.Add(lbp);\r
using System.Linq;\r
using System.Text.RegularExpressions;\r
using System.Windows.Forms;\r
+using KancolleSniffer.Model;\r
using static System.Math;\r
\r
-namespace KancolleSniffer\r
+namespace KancolleSniffer.View\r
{\r
public class BattleResultPanel : Panel\r
{\r
using System.Drawing;\r
using System.Linq;\r
using System.Windows.Forms;\r
+using KancolleSniffer.Model;\r
\r
-namespace KancolleSniffer\r
+namespace KancolleSniffer.View\r
{\r
public class FleetPanel : Panel\r
{\r
" 潜" + CutOverFlow(total.AntiSubmarine) +\r
" 索" + CutOverFlow(total.LoS) + "\r\n" +\r
$"戦闘:燃{total.Fuel / 5}弾{total.Bull / 5} 支援:燃{total.Fuel / 2}弾{(int)(total.Bull * 0.8)}" +\r
- (sniffer.IsCombinedFleet && fleet.Number == 1 ? "" : $"\r\nTP:S{(int)tp} A{(int)(tp * 0.7)}")\r
+ (sniffer.IsCombinedFleet && fleet.Number == 1\r
+ ? ""\r
+ : $"\r\nTP:S{(int)tp} A{(int)(tp * 0.7)}")\r
});\r
list.AddRange(ships);\r
}\r
using System.Linq;\r
using System.Runtime.InteropServices;\r
using System.Windows.Forms;\r
+using KancolleSniffer.Model;\r
\r
-namespace KancolleSniffer\r
+namespace KancolleSniffer.View\r
{\r
public class ItemTreeView : TreeView\r
{\r
using System.Collections.Generic;\r
using System.Drawing;\r
using System.Windows.Forms;\r
+using KancolleSniffer.Model;\r
+using KancolleSniffer.Util;\r
using static System.Math;\r
\r
-namespace KancolleSniffer\r
+namespace KancolleSniffer.View\r
{\r
/// <summary>\r
/// 艦娘名の横幅\r
\r
using System.Collections.Generic;\r
using System.Linq;\r
+using KancolleSniffer.Model;\r
using static System.Math;\r
\r
-namespace KancolleSniffer\r
+namespace KancolleSniffer.View\r
{\r
public class MiscTextInfo\r
{\r
using System.Drawing;\r
using System.Linq;\r
using System.Windows.Forms;\r
+using KancolleSniffer.Model;\r
using static System.Math;\r
\r
-namespace KancolleSniffer\r
+namespace KancolleSniffer.View\r
{\r
public class RepairListForMain : Panel\r
{\r
private void SetPanelHeight()\r
{\r
var lines = Min(Max(1, _repairList.Length), _repairLabels.Length);\r
- Size = new Size(Width, (int)Round(ShipLabel.ScaleFactor.Height * lines * LineHeight + PanelPadding * 2));\r
+ Size = new Size(Width,\r
+ (int)Round(ShipLabel.ScaleFactor.Height * lines * LineHeight + PanelPadding * 2));\r
}\r
\r
public void ShowRepairList()\r
g.FillPolygon(bottomBrush,\r
new[]\r
{\r
- new PointF(Width * 0.45f, Height - PanelPadding - 2), new PointF(Width * 0.55f, Height - PanelPadding - 2),\r
+ new PointF(Width * 0.45f, Height - PanelPadding - 2),\r
+ new PointF(Width * 0.55f, Height - PanelPadding - 2),\r
new PointF(Width * 0.5f, Height - 2), new PointF(Width * 0.45f, Height - PanelPadding - 2)\r
});\r
}\r
using System.Runtime.InteropServices;\r
using System.Windows.Forms;\r
\r
-namespace KancolleSniffer\r
+namespace KancolleSniffer.View\r
{\r
public class ResizableToolTip : ToolTip\r
{\r
using System.Linq;\r
using System.Text.RegularExpressions;\r
using System.Windows.Forms;\r
+using KancolleSniffer.Model;\r
+using KancolleSniffer.Util;\r
using static System.Math;\r
\r
-namespace KancolleSniffer\r
+namespace KancolleSniffer.View\r
{\r
[DesignerCategory("Code")]\r
public class ShipLabel : Label\r
empty |= SlotStatus.ExtraEmpty;\r
}\r
var dc = status.PreparedDamageControl;\r
- var dcname = dc == 42 ? "[ダ]" : dc == 43 ? "[メ]" : "";\r
+ var dcname = dc == 42 ? "[ダ]" :\r
+ dc == 43 ? "[メ]" : "";\r
SetName(status.Escaped ? "[避]" : dcname, status.Name, empty, width);\r
}\r
\r
using System.Linq;\r
using System.Runtime.InteropServices;\r
using System.Windows.Forms;\r
+using KancolleSniffer.Model;\r
using static System.Math;\r
\r
-namespace KancolleSniffer\r
+namespace KancolleSniffer.View\r
{\r
public class ShipListPanel : Panel\r
{\r
using System.Windows.Forms;\r
using static System.Math;\r
\r
-namespace KancolleSniffer\r
+namespace KancolleSniffer.View\r
{\r
public class SwipeScrollify\r
{\r
{\r
public delegate void MouseHandler(IntPtr handle, ref bool handled);\r
\r
- public event MouseHandler MouseMove , MouseDown , MouseUp;\r
+ public event MouseHandler MouseMove, MouseDown, MouseUp;\r
\r
// ReSharper disable InconsistentNaming\r
private const int WM_MOUSEMOVE = 0x0200;\r
private const int WM_LBUTTONDOWN = 0x0201;\r
+\r
private const int WM_LBUTTONUP = 0x0202;\r
// ReSharper restore InconsistentNaming\r
\r
{\r
if (!(Abs(dx) > ScrollCount || Abs(dy) > ScrollCount))\r
return;\r
- _touch = true;\r
+ _touch = true;\r
}\r
if (Abs(_scrollStart.X - cur.X) > ScrollCount || Abs(_scrollStart.Y - cur.Y) > ScrollCount)\r
{\r
_mouseStart = _panelStart = Point.Empty;\r
}\r
}\r
+\r
private class ShipListPanelHandler\r
{\r
private readonly ShipListPanel _panel;\r
if (!_mouseStart.IsEmpty)\r
return;\r
if (!_panel.RectangleToScreen(_panel.ClientRectangle).Contains(Control.MousePosition) ||\r
- _panel.ScrollBar.RectangleToScreen(_panel.ScrollBar.ClientRectangle).Contains(Control.MousePosition))\r
+ _panel.ScrollBar.RectangleToScreen(_panel.ScrollBar.ClientRectangle)\r
+ .Contains(Control.MousePosition))\r
return;\r
var found = false;\r
for (var control = Control.FromHandle(handle); control != null; control = control.Parent)\r
// ReSharper disable InconsistentNaming\r
private const int GWL_STYLE = -16;\r
private const int WS_HSCROLL = 0x00100000;\r
+\r
private const int WS_VSCROLL = 0x00200000;\r
// ReSharper restore InconsistentNaming\r
\r