diff --git a/GroupLine.App/App.config b/GroupLine.App/App.config new file mode 100644 index 0000000..7b6d270 --- /dev/null +++ b/GroupLine.App/App.config @@ -0,0 +1,31 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/GroupLine.App/App.xaml b/GroupLine.App/App.xaml new file mode 100644 index 0000000..9a2da40 --- /dev/null +++ b/GroupLine.App/App.xaml @@ -0,0 +1,22 @@ + + + + + + + + + + + + + diff --git a/GroupLine.App/App.xaml.cs b/GroupLine.App/App.xaml.cs new file mode 100644 index 0000000..dda2a9b --- /dev/null +++ b/GroupLine.App/App.xaml.cs @@ -0,0 +1,25 @@ +using System.Windows; + +namespace GroupLine.App +{ + /// + /// App.xaml 的交互逻辑 + /// + public partial class App : Application + { + private static System.Threading.Mutex mutex; + protected override void OnStartup(StartupEventArgs e) + { + mutex = new System.Threading.Mutex(true, "OnlyRun_CRNS"); + if (mutex.WaitOne(0, false)) + { + base.OnStartup(e); + } + else + { + MessageBox.Show("程序已经在运行!", "提示"); + this.Shutdown(); + } + } + } +} diff --git a/GroupLine.App/Assets/TextBox.xaml b/GroupLine.App/Assets/TextBox.xaml new file mode 100644 index 0000000..bd3ceed --- /dev/null +++ b/GroupLine.App/Assets/TextBox.xaml @@ -0,0 +1,104 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/GroupLine.App/View/KanBan/KanBan_Create.xaml.cs b/GroupLine.App/View/KanBan/KanBan_Create.xaml.cs new file mode 100644 index 0000000..e707231 --- /dev/null +++ b/GroupLine.App/View/KanBan/KanBan_Create.xaml.cs @@ -0,0 +1,28 @@ +using GalaSoft.MvvmLight.Messaging; +using System; +using System.Windows; + +namespace GroupLine.App.View.KanBan +{ + /// + /// KanBan_Create.xaml 的交互逻辑 + /// + public partial class KanBan_Create : Window + { + public KanBan_Create() + { + InitializeComponent(); + WindowStartupLocation = WindowStartupLocation.CenterScreen; + //InitializeComponent(); + + //消息标志token:ViewAlert,用于标识只阅读某个或者某些Sender发送的消息,并执行相应的处理,所以Sender那边的token要保持一致 + //执行方法Action:ShowReceiveInfo,用来执行接收到消息后的后续工作,注意这边是支持泛型能力的,所以传递参数很方便。 + Messenger.Default.Register(this, "CloseCurrentWindow", CloseCurrentWindow); + } + + private void CloseCurrentWindow(string obj) + { + this.Close(); + } + } +} diff --git a/GroupLine.App/View/KanBan/KanBan_PlanCountCreate.xaml b/GroupLine.App/View/KanBan/KanBan_PlanCountCreate.xaml new file mode 100644 index 0000000..065f1eb --- /dev/null +++ b/GroupLine.App/View/KanBan/KanBan_PlanCountCreate.xaml @@ -0,0 +1,126 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/GroupLine.App/View/KanBan/KanBan_PlanCountCreate.xaml.cs b/GroupLine.App/View/KanBan/KanBan_PlanCountCreate.xaml.cs new file mode 100644 index 0000000..9a27955 --- /dev/null +++ b/GroupLine.App/View/KanBan/KanBan_PlanCountCreate.xaml.cs @@ -0,0 +1,27 @@ +using GalaSoft.MvvmLight.Messaging; +using System; +using System.Windows; + +namespace GroupLine.App.View.KanBan +{ + /// + /// KanBan_PlanCountCreate.xaml 的交互逻辑 + /// + public partial class KanBan_PlanCountCreate : Window + { + public KanBan_PlanCountCreate() + { + InitializeComponent(); WindowStartupLocation = WindowStartupLocation.CenterScreen; + //InitializeComponent(); + + //消息标志token:ViewAlert,用于标识只阅读某个或者某些Sender发送的消息,并执行相应的处理,所以Sender那边的token要保持一致 + //执行方法Action:ShowReceiveInfo,用来执行接收到消息后的后续工作,注意这边是支持泛型能力的,所以传递参数很方便。 + Messenger.Default.Register(this, "CloseCurrentWindow", CloseCurrentWindow); + } + + private void CloseCurrentWindow(string obj) + { + this.Close(); + } + } +} diff --git a/GroupLine.App/View/KanBan/KanBan_PlanCountUpdate.xaml b/GroupLine.App/View/KanBan/KanBan_PlanCountUpdate.xaml new file mode 100644 index 0000000..971868f --- /dev/null +++ b/GroupLine.App/View/KanBan/KanBan_PlanCountUpdate.xaml @@ -0,0 +1,126 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/GroupLine.App/View/KanBan/KanBan_PlanCountUpdate.xaml.cs b/GroupLine.App/View/KanBan/KanBan_PlanCountUpdate.xaml.cs new file mode 100644 index 0000000..b387ede --- /dev/null +++ b/GroupLine.App/View/KanBan/KanBan_PlanCountUpdate.xaml.cs @@ -0,0 +1,28 @@ +using GalaSoft.MvvmLight.Messaging; +using System; +using System.Windows; + +namespace GroupLine.App.View.KanBan +{ + /// + /// KanBan_PlanCountUpdate.xaml 的交互逻辑 + /// + public partial class KanBan_PlanCountUpdate : Window + { + public KanBan_PlanCountUpdate() + { + InitializeComponent(); + WindowStartupLocation = WindowStartupLocation.CenterScreen; + //InitializeComponent(); + + //消息标志token:ViewAlert,用于标识只阅读某个或者某些Sender发送的消息,并执行相应的处理,所以Sender那边的token要保持一致 + //执行方法Action:ShowReceiveInfo,用来执行接收到消息后的后续工作,注意这边是支持泛型能力的,所以传递参数很方便。 + Messenger.Default.Register(this, "CloseCurrentWindow", CloseCurrentWindow); + } + + private void CloseCurrentWindow(string obj) + { + this.Close(); + } + } +} diff --git a/GroupLine.App/View/KanBan/KanBan_Update.xaml b/GroupLine.App/View/KanBan/KanBan_Update.xaml new file mode 100644 index 0000000..6e4b869 --- /dev/null +++ b/GroupLine.App/View/KanBan/KanBan_Update.xaml @@ -0,0 +1,110 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/GroupLine.App/View/KanBan/KanBan_Update.xaml.cs b/GroupLine.App/View/KanBan/KanBan_Update.xaml.cs new file mode 100644 index 0000000..fcfdbb3 --- /dev/null +++ b/GroupLine.App/View/KanBan/KanBan_Update.xaml.cs @@ -0,0 +1,28 @@ +using GalaSoft.MvvmLight.Messaging; +using System; +using System.Windows; + +namespace GroupLine.App.View.KanBan +{ + /// + /// KanBan_Update.xaml 的交互逻辑 + /// + public partial class KanBan_Update : Window + { + public KanBan_Update() + { + InitializeComponent(); + WindowStartupLocation = WindowStartupLocation.CenterScreen; + //InitializeComponent(); + + //消息标志token:ViewAlert,用于标识只阅读某个或者某些Sender发送的消息,并执行相应的处理,所以Sender那边的token要保持一致 + //执行方法Action:ShowReceiveInfo,用来执行接收到消息后的后续工作,注意这边是支持泛型能力的,所以传递参数很方便。 + Messenger.Default.Register(this, "CloseCurrentWindow", CloseCurrentWindow); + } + + private void CloseCurrentWindow(string obj) + { + this.Close(); + } + } +} diff --git a/GroupLine.App/View/MagTorque/MagTorqueView.xaml b/GroupLine.App/View/MagTorque/MagTorqueView.xaml new file mode 100644 index 0000000..8187326 --- /dev/null +++ b/GroupLine.App/View/MagTorque/MagTorqueView.xaml @@ -0,0 +1,145 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + +