コード例 #1
0
        private void ButtonAddNX_Click(object sender, RoutedEventArgs e)
        {
            NhapXuatKho phieunhapxuatWindow = new NhapXuatKho();

            phieunhapxuatWindow.ShowDialog();
        }
コード例 #2
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.PhieuNhapXuat = ((QLVT.NhapXuatKho)(target));

            #line 24 "..\..\NhapXuatKho.xaml"
                this.PhieuNhapXuat.Loaded += new System.Windows.RoutedEventHandler(this.PhieuNhapXuat_Loaded);

            #line default
            #line hidden
                return;

            case 2:

            #line 47 "..\..\NhapXuatKho.xaml"
                ((System.Windows.Controls.Grid)(target)).Loaded += new System.Windows.RoutedEventHandler(this.NXVT_Loaded);

            #line default
            #line hidden
                return;

            case 3:
                this.comboBoxCN = ((System.Windows.Controls.ComboBox)(target));

            #line 64 "..\..\NhapXuatKho.xaml"
                this.comboBoxCN.SelectionChanged += new System.Windows.Controls.SelectionChangedEventHandler(this.comboBoxCN_SelectionChanged);

            #line default
            #line hidden
                return;

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

            #line 70 "..\..\NhapXuatKho.xaml"
                this.BoxPHIEU.KeyUp += new System.Windows.Input.KeyEventHandler(this.SearchPHIEU);

            #line default
            #line hidden
                return;

            case 5:
                this.comboBoxMANV = ((System.Windows.Controls.ComboBox)(target));
                return;

            case 6:
                this.BoxHOTENKH = ((System.Windows.Controls.TextBox)(target));
                return;

            case 7:
                this.comboBoxPHIEU = ((System.Windows.Controls.ComboBox)(target));
                return;

            case 8:
                this.NGAYNHAP = ((System.Windows.Controls.DatePicker)(target));
                return;

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

            case 10:
                this.comboBoxMAVT = ((System.Windows.Controls.ComboBox)(target));
                return;

            case 11:
                this.BoxSOLUONG = ((System.Windows.Controls.TextBox)(target));
                return;

            case 12:
                this.BoxDONGIA = ((System.Windows.Controls.TextBox)(target));
                return;

            case 13:
                this.comboBoxMAKHO = ((System.Windows.Controls.ComboBox)(target));
                return;

            case 14:

            #line 101 "..\..\NhapXuatKho.xaml"
                ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.ButtonAdd_Click);

            #line default
            #line hidden
                return;

            case 15:

            #line 102 "..\..\NhapXuatKho.xaml"
                ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.ButtonDelete_Click);

            #line default
            #line hidden
                return;

            case 16:
                this.nHAPXUATKHODataGrid = ((System.Windows.Controls.DataGrid)(target));

            #line 110 "..\..\NhapXuatKho.xaml"
                this.nHAPXUATKHODataGrid.SelectionChanged += new System.Windows.Controls.SelectionChangedEventHandler(this.selected);

            #line default
            #line hidden
                return;

            case 17:
                this.mAPJIEUColumn = ((System.Windows.Controls.DataGridTextColumn)(target));
                return;

            case 18:
                this.mAVTColumn = ((System.Windows.Controls.DataGridTextColumn)(target));
                return;

            case 19:
                this.sOLUONGColumn = ((System.Windows.Controls.DataGridTextColumn)(target));
                return;

            case 20:
                this.dONGIAColumn = ((System.Windows.Controls.DataGridTextColumn)(target));
                return;
            }
            this._contentLoaded = true;
        }