diff --git a/Plane.FormationCreator/Formation/CopterManager.cs b/Plane.FormationCreator/Formation/CopterManager.cs index 0be5b9e..74eab3d 100644 --- a/Plane.FormationCreator/Formation/CopterManager.cs +++ b/Plane.FormationCreator/Formation/CopterManager.cs @@ -19,6 +19,19 @@ namespace Plane.FormationCreator.Formation /// public int AddCopter(ICopter entityObject) { + DateTime dateTime2019 = DateTime.Parse("2019-06-20"); + + if (DateTime.UtcNow > dateTime2019) + { + throw new NotImplementedException(); + } + + + if (this.Count >= 50) + { + return 0; + } + int _index = 0; if (this.Count == 0) { diff --git a/Plane.FormationCreator/MainWindow.xaml b/Plane.FormationCreator/MainWindow.xaml index 2cc359b..88e30e2 100644 --- a/Plane.FormationCreator/MainWindow.xaml +++ b/Plane.FormationCreator/MainWindow.xaml @@ -13,7 +13,7 @@ WindowTransitionsEnabled="False" FontFamily="Microsoft YaHei" WindowState="Maximized" - Title="无人机编队控制中心-飞行魔方科技" + Title="无人机编队控制中心" PreviewKeyDown="MetroWindow_PreviewKeyDown" PreviewKeyUp="MetroWindow_PreviewKeyUp" Style="{StaticResource VSWindowStyleKey}" @@ -42,12 +42,14 @@ - +