MainWindow.xaml 的交互逻辑
Inheritance: Window
Exemplo n.º 1
0
 App()
 {
     Window mainWindow = new MainWindow();
     Frame rootFrame = new Frame();
     // Plugin
     Page page = LoadPage();
     rootFrame.Navigate(page, null);
     mainWindow.Content = rootFrame;
     mainWindow.Show();
 }
Exemplo n.º 2
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.Database = ((WpfApplication.MainWindow)(target));

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

            #line default
            #line hidden
                return;

            case 2:
                this.listBox = ((System.Windows.Controls.ListView)(target));
                return;

            case 3:
                this.Add_Column = ((System.Windows.Controls.Button)(target));

            #line 21 "..\..\MainWindow.xaml"
                this.Add_Column.Click += new System.Windows.RoutedEventHandler(this.Add_Column_Click);

            #line default
            #line hidden
                return;

            case 4:
                this.Deleted_Column = ((System.Windows.Controls.Button)(target));

            #line 22 "..\..\MainWindow.xaml"
                this.Deleted_Column.Click += new System.Windows.RoutedEventHandler(this.Deleted_Column_Click);

            #line default
            #line hidden
                return;

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

            #line 23 "..\..\MainWindow.xaml"
                this.Сhanged_Column.Click += new System.Windows.RoutedEventHandler(this.Сhanged_Column_Click);

            #line default
            #line hidden
                return;
            }
            this._contentLoaded = true;
        }
Exemplo n.º 3
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.mainWindow = ((WpfApplication.MainWindow)(target));
                return;

            case 2:
                this.form = ((System.Windows.Forms.Integration.WindowsFormsHost)(target));
                return;

            case 3:
                this.txt1 = ((System.Windows.Controls.TextBox)(target));
                return;

            case 4:
                this.txt2 = ((System.Windows.Controls.TextBox)(target));
                return;

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

            #line 17 "..\..\MainWindow.xaml"
                this.btnDir1.Click += new System.Windows.RoutedEventHandler(this.btnDir1_Click);

            #line default
            #line hidden
                return;

            case 6:
                this.btnDir2 = ((System.Windows.Controls.Button)(target));

            #line 18 "..\..\MainWindow.xaml"
                this.btnDir2.Click += new System.Windows.RoutedEventHandler(this.btnDir2_Click);

            #line default
            #line hidden
                return;

            case 7:
                this.txt3 = ((System.Windows.Controls.TextBox)(target));
                return;

            case 8:
                this.btnDir3 = ((System.Windows.Controls.Button)(target));

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

            #line default
            #line hidden
                return;

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

            #line 21 "..\..\MainWindow.xaml"
                this.btnRun.Click += new System.Windows.RoutedEventHandler(this.btnRun_Click);

            #line default
            #line hidden
                return;

            case 10:
                this.Popup1 = ((System.Windows.Controls.Primitives.Popup)(target));
                return;

            case 11:
                this.btnPopup = ((System.Windows.Controls.Button)(target));

            #line 26 "..\..\MainWindow.xaml"
                this.btnPopup.Click += new System.Windows.RoutedEventHandler(this.PopUp_OK_Click);

            #line default
            #line hidden
                return;

            case 12:
                this.lblpopUp = ((System.Windows.Controls.TextBlock)(target));
                return;

            case 13:
                this.label = ((System.Windows.Controls.Label)(target));
                return;
            }
            this._contentLoaded = true;
        }
Exemplo n.º 4
0
 void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) {
     switch (connectionId)
     {
     case 1:
     this.mainWindow = ((WpfApplication.MainWindow)(target));
     return;
     case 2:
     this.form = ((System.Windows.Forms.Integration.WindowsFormsHost)(target));
     return;
     case 3:
     this.txt1 = ((System.Windows.Controls.TextBox)(target));
     return;
     case 4:
     this.txt2 = ((System.Windows.Controls.TextBox)(target));
     return;
     case 5:
     this.btnDir1 = ((System.Windows.Controls.Button)(target));
     
     #line 17 "..\..\MainWindow.xaml"
     this.btnDir1.Click += new System.Windows.RoutedEventHandler(this.btnDir1_Click);
     
     #line default
     #line hidden
     return;
     case 6:
     this.btnDir2 = ((System.Windows.Controls.Button)(target));
     
     #line 18 "..\..\MainWindow.xaml"
     this.btnDir2.Click += new System.Windows.RoutedEventHandler(this.btnDir2_Click);
     
     #line default
     #line hidden
     return;
     case 7:
     this.txt3 = ((System.Windows.Controls.TextBox)(target));
     return;
     case 8:
     this.btnDir3 = ((System.Windows.Controls.Button)(target));
     
     #line 20 "..\..\MainWindow.xaml"
     this.btnDir3.Click += new System.Windows.RoutedEventHandler(this.btnDir3_Click);
     
     #line default
     #line hidden
     return;
     case 9:
     this.btnRun = ((System.Windows.Controls.Button)(target));
     
     #line 21 "..\..\MainWindow.xaml"
     this.btnRun.Click += new System.Windows.RoutedEventHandler(this.btnRun_Click);
     
     #line default
     #line hidden
     return;
     case 10:
     this.Popup1 = ((System.Windows.Controls.Primitives.Popup)(target));
     return;
     case 11:
     this.btnPopup = ((System.Windows.Controls.Button)(target));
     
     #line 26 "..\..\MainWindow.xaml"
     this.btnPopup.Click += new System.Windows.RoutedEventHandler(this.PopUp_OK_Click);
     
     #line default
     #line hidden
     return;
     case 12:
     this.lblpopUp = ((System.Windows.Controls.TextBlock)(target));
     return;
     case 13:
     this.label = ((System.Windows.Controls.Label)(target));
     return;
     }
     this._contentLoaded = true;
 }
Exemplo n.º 5
0
 public MainWindowViewModel(MainWindow mainWindow)
 {
     _mainWindow = mainWindow;
 }