コード例 #1
0
ファイル: App.xaml.cs プロジェクト: altair961/TaskManager
 protected override void OnStartup(StartupEventArgs e)
 {
     base.OnStartup(e);
     MainWindow window = new MainWindow();
     var viewModel = new MainWindowViewModel();
     window.DataContext = viewModel;
     window.Show();
 }
コード例 #2
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.TASK = ((TaskManager.MainWindow)(target));

            #line 8 "..\..\MainWindow.xaml"
                this.TASK.Loaded += new System.Windows.RoutedEventHandler(this.Window_Loaded);

            #line default
            #line hidden

            #line 8 "..\..\MainWindow.xaml"
                this.TASK.MouseDown += new System.Windows.Input.MouseButtonEventHandler(this.Window_MouseDown);

            #line default
            #line hidden

            #line 8 "..\..\MainWindow.xaml"
                this.TASK.Closed += new System.EventHandler(this.Window_Closed);

            #line default
            #line hidden

            #line 8 "..\..\MainWindow.xaml"
                this.TASK.MouseWheel += new System.Windows.Input.MouseWheelEventHandler(this.TASK_MouseWheel);

            #line default
            #line hidden
                return;

            case 2:
                this.grid_Main = ((System.Windows.Controls.Grid)(target));
                return;

            case 3:
                this.grid_Tasks = ((System.Windows.Controls.Grid)(target));
                return;

            case 4:
                this.grid_Task_Exmaple = ((System.Windows.Controls.Grid)(target));
                return;

            case 5:
                this.btn_Setting = ((System.Windows.Controls.Button)(target));

            #line 20 "..\..\MainWindow.xaml"
                this.btn_Setting.Click += new System.Windows.RoutedEventHandler(this.btn_Setting_Click);

            #line default
            #line hidden
                return;

            case 6:
                this.lab_Date = ((System.Windows.Controls.Label)(target));
                return;

            case 7:
                this.lab_TaskName = ((System.Windows.Controls.Label)(target));

            #line 22 "..\..\MainWindow.xaml"
                this.lab_TaskName.MouseDoubleClick += new System.Windows.Input.MouseButtonEventHandler(this.lab_TaskName_MouseDoubleClick);

            #line default
            #line hidden
                return;

            case 8:
                this.grid_Title = ((System.Windows.Controls.Grid)(target));
                return;

            case 9:
                this.btn_Close = ((System.Windows.Controls.Button)(target));

            #line 33 "..\..\MainWindow.xaml"
                this.btn_Close.Click += new System.Windows.RoutedEventHandler(this.btn_Close_Click);

            #line default
            #line hidden
                return;

            case 10:
                this.btn_MiniSize = ((System.Windows.Controls.Button)(target));

            #line 34 "..\..\MainWindow.xaml"
                this.btn_MiniSize.Click += new System.Windows.RoutedEventHandler(this.btn_MiniSize_Click);

            #line default
            #line hidden
                return;

            case 11:
                this.lab_Title = ((System.Windows.Controls.Label)(target));

            #line 35 "..\..\MainWindow.xaml"
                this.lab_Title.MouseDown += new System.Windows.Input.MouseButtonEventHandler(this.lab_Title_MouseDown);

            #line default
            #line hidden
                return;

            case 12:
                this.btn_Mode_Setting = ((System.Windows.Controls.Button)(target));

            #line 36 "..\..\MainWindow.xaml"
                this.btn_Mode_Setting.Click += new System.Windows.RoutedEventHandler(this.btn_Mode_Setting_Click);

            #line default
            #line hidden
                return;
            }
            this._contentLoaded = true;
        }