コード例 #1
0
        private void btRaspredelenie_Click(object sender, RoutedEventArgs e)
        {
            Distributon main = new Distributon();

            main.Show();
            Hide();
        }
コード例 #2
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.Window = ((MptHelperDisShed.Distributon)(target));

            #line 9 "..\..\Distributon.xaml"
                this.Window.Loaded += new System.Windows.RoutedEventHandler(this.Window_Loaded);

            #line default
            #line hidden

            #line 9 "..\..\Distributon.xaml"
                this.Window.Closed += new System.EventHandler(this.Window_Closed);

            #line default
            #line hidden
                return;

            case 2:
                this.dgDistribution = ((System.Windows.Controls.DataGrid)(target));

            #line 37 "..\..\Distributon.xaml"
                this.dgDistribution.AutoGeneratingColumn += new System.EventHandler <System.Windows.Controls.DataGridAutoGeneratingColumnEventArgs>(this.dgDistribution_AutoGeneratingColumn);

            #line default
            #line hidden
                return;

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

            #line 38 "..\..\Distributon.xaml"
                this.btInsert.Click += new System.Windows.RoutedEventHandler(this.btInsert_Click);

            #line default
            #line hidden
                return;

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

            #line 40 "..\..\Distributon.xaml"
                this.btUpdate.Click += new System.Windows.RoutedEventHandler(this.btUpdate_Click);

            #line default
            #line hidden
                return;

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

            #line 42 "..\..\Distributon.xaml"
                this.btDelete.Click += new System.Windows.RoutedEventHandler(this.btDelete_Click);

            #line default
            #line hidden
                return;

            case 6:
                this.cbOne = ((System.Windows.Controls.ComboBox)(target));

            #line 45 "..\..\Distributon.xaml"
                this.cbOne.SelectionChanged += new System.Windows.Controls.SelectionChangedEventHandler(this.cbInfoGroup_SelectionChanged);

            #line default
            #line hidden
                return;

            case 7:
                this.chbFilter = ((System.Windows.Controls.CheckBox)(target));
                return;

            case 8:
                this.cbTy = ((System.Windows.Controls.ComboBox)(target));

            #line 48 "..\..\Distributon.xaml"
                this.cbTy.SelectionChanged += new System.Windows.Controls.SelectionChangedEventHandler(this.cbInfoGroup_SelectionChanged1);

            #line default
            #line hidden
                return;

            case 9:
                this.tbText = ((System.Windows.Controls.TextBox)(target));
                return;

            case 10:

            #line 53 "..\..\Distributon.xaml"
                ((System.Windows.Documents.Hyperlink)(target)).Click += new System.Windows.RoutedEventHandler(this.Hyperlink_Click);

            #line default
            #line hidden
                return;

            case 11:

            #line 55 "..\..\Distributon.xaml"
                ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.Button_Click_3);

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