private void ButtonAddTC_Click(object sender, RoutedEventArgs e)
        {
            PhieuThuChi phieuthuchiWindow = new PhieuThuChi();

            phieuthuchiWindow.ShowDialog();
        }
Ejemplo n.º 2
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.PhieuThuChiWindow = ((QLVT.PhieuThuChi)(target));

            #line 24 "..\..\PhieuThuChi.xaml"
                this.PhieuThuChiWindow.Loaded += new System.Windows.RoutedEventHandler(this.PhieuThuChiWindow_Loaded);

            #line default
            #line hidden
                return;

            case 2:

            #line 45 "..\..\PhieuThuChi.xaml"
                ((System.Windows.Controls.Grid)(target)).Loaded += new System.Windows.RoutedEventHandler(this.PHIEUTC_Loaded);

            #line default
            #line hidden
                return;

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

            #line 62 "..\..\PhieuThuChi.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 68 "..\..\PhieuThuChi.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.comboBoxMAKHO = ((System.Windows.Controls.ComboBox)(target));
                return;

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

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

            case 11:

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

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