diff --git a/Plane.FormationCreator/MainWindow.xaml b/Plane.FormationCreator/MainWindow.xaml index d2c6f7f..2da5bf9 100644 --- a/Plane.FormationCreator/MainWindow.xaml +++ b/Plane.FormationCreator/MainWindow.xaml @@ -13,7 +13,7 @@ WindowTransitionsEnabled="False" FontFamily="Microsoft YaHei" WindowState="Maximized" - Title="飞行魔方--无人机编队控制系统 V2.0" + Title="飞行魔方无人机编队控制系统 V2.0" PreviewKeyDown="MetroWindow_PreviewKeyDown" PreviewKeyUp="MetroWindow_PreviewKeyUp" Style="{StaticResource VSWindowStyleKey}" diff --git a/Plane.FormationCreator/MainWindow.xaml.cs b/Plane.FormationCreator/MainWindow.xaml.cs index cf1026f..6f99c4d 100644 --- a/Plane.FormationCreator/MainWindow.xaml.cs +++ b/Plane.FormationCreator/MainWindow.xaml.cs @@ -21,6 +21,7 @@ using System.Windows.Media; using System.Windows.Media.Imaging; using System.Windows.Shapes; using Plane.CommunicationManagement; +using System.Reflection; namespace Plane.FormationCreator { @@ -34,7 +35,10 @@ namespace Plane.FormationCreator InitializeComponent(); this.DataContext = ServiceLocator.Current.GetInstance(); - + //改到设置窗口显示版本信息 + // var version = Assembly.GetExecutingAssembly().GetName().Version; + // Title = "飞行魔方无人机编队控制系统 V" + version.ToString() + "编译时间[" + System.IO.File.GetLastWriteTime(this.GetType().Assembly.Location).ToString() + "]"; + //ShowConnectDialog(); //if (_copterManager.CoptersForControlling.Count <= 0) @@ -53,7 +57,7 @@ namespace Plane.FormationCreator { loginWindow = new ConnectWindow(); } - loginWindow.Show(); + loginWindow.ShowDialog (); } private void btnLogin_Click(object sender, RoutedEventArgs e) diff --git a/Plane.FormationCreator/Plane.FormationCreator.csproj b/Plane.FormationCreator/Plane.FormationCreator.csproj index cfe3fd9..60e4950 100644 --- a/Plane.FormationCreator/Plane.FormationCreator.csproj +++ b/Plane.FormationCreator/Plane.FormationCreator.csproj @@ -450,6 +450,9 @@ + + + diff --git a/Plane.FormationCreator/Properties/AssemblyInfo.cs b/Plane.FormationCreator/Properties/AssemblyInfo.cs index 07a28c4..91b68c1 100644 --- a/Plane.FormationCreator/Properties/AssemblyInfo.cs +++ b/Plane.FormationCreator/Properties/AssemblyInfo.cs @@ -12,7 +12,7 @@ using System.Windows; [assembly: AssemblyConfiguration("")] [assembly: AssemblyCompany("")] [assembly: AssemblyProduct("GroupGCS")] -[assembly: AssemblyCopyright("Copyright © 2016")] +[assembly: AssemblyCopyright("Copyright © 2020")] [assembly: AssemblyTrademark("")] [assembly: AssemblyCulture("")] @@ -51,5 +51,5 @@ using System.Windows; // You can specify all the values or you can default the Build and Revision Numbers // by using the '*' as shown below: // [assembly: AssemblyVersion("1.0.*")] -[assembly: AssemblyVersion("2.0.0.0")] +[assembly: AssemblyVersion("2.0.*")] [assembly: AssemblyFileVersion("2.0.0.0")] diff --git a/Plane.FormationCreator/Properties/Resources.Designer.cs b/Plane.FormationCreator/Properties/Resources.Designer.cs index daba46d..29c85c9 100644 --- a/Plane.FormationCreator/Properties/Resources.Designer.cs +++ b/Plane.FormationCreator/Properties/Resources.Designer.cs @@ -59,5 +59,15 @@ namespace Plane.FormationCreator.Properties { resourceCulture = value; } } + + /// + /// 查找 System.Drawing.Bitmap 类型的本地化资源。 + /// + internal static System.Drawing.Bitmap Logo_small { + get { + object obj = ResourceManager.GetObject("Logo_small", resourceCulture); + return ((System.Drawing.Bitmap)(obj)); + } + } } } diff --git a/Plane.FormationCreator/Properties/Resources.resx b/Plane.FormationCreator/Properties/Resources.resx index af7dbeb..2bf4ce0 100644 --- a/Plane.FormationCreator/Properties/Resources.resx +++ b/Plane.FormationCreator/Properties/Resources.resx @@ -46,7 +46,7 @@ mimetype: application/x-microsoft.net.object.binary.base64 value : The object must be serialized with - : System.Serialization.Formatters.Binary.BinaryFormatter + : System.Runtime.Serialization.Formatters.Binary.BinaryFormatter : and then encoded with base64 encoding. mimetype: application/x-microsoft.net.object.soap.base64 @@ -60,6 +60,7 @@ : and then encoded with base64 encoding. --> + @@ -68,9 +69,10 @@ - + + @@ -85,9 +87,10 @@ - + + @@ -109,9 +112,13 @@ 2.0 - System.Resources.ResXResourceReader, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - System.Resources.ResXResourceWriter, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + ..\Resources\Logo_small.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a + \ No newline at end of file diff --git a/Plane.FormationCreator/Resources/Logo_small.png b/Plane.FormationCreator/Resources/Logo_small.png new file mode 100644 index 0000000..a5de718 Binary files /dev/null and b/Plane.FormationCreator/Resources/Logo_small.png differ diff --git a/Plane.FormationCreator/Views/ConnectWindow.xaml b/Plane.FormationCreator/Views/ConnectWindow.xaml index b5daa58..0a23acf 100644 --- a/Plane.FormationCreator/Views/ConnectWindow.xaml +++ b/Plane.FormationCreator/Views/ConnectWindow.xaml @@ -7,9 +7,9 @@ xmlns:c="http://metro.mahapps.com/winfx/xaml/controls" xmlns:ec="clr-namespace:Plane.Windows.Controls;assembly=Plane.Windows" mc:Ignorable="d" - Title="设置" - Width="496.634" - Height="205.942" + Title="" + Width="500" + Height="300" WindowStartupLocation="CenterScreen" FontFamily="Microsoft YaHei" @@ -23,6 +23,8 @@ + + @@ -58,6 +60,12 @@