Exemple #1
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.ReportNhanVienWindow = ((QLVT.ReportNhanVien)(target));
                return;

            case 2:

            #line 40 "..\..\ReportNhanVien.xaml"
                ((System.Windows.Controls.Grid)(target)).Loaded += new System.Windows.RoutedEventHandler(this.DSNV_Load);

            #line default
            #line hidden
                return;

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

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

            #line default
            #line hidden
                return;

            case 4:

            #line 59 "..\..\ReportNhanVien.xaml"
                ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.ButtonPreview_Click);

            #line default
            #line hidden
                return;

            case 5:
                this.ReportViewNhanVien = ((Microsoft.Reporting.WinForms.ReportViewer)(target));
                return;
            }
            this._contentLoaded = true;
        }
        private void ButtonInDSNV_Click(object sender, RoutedEventArgs e)
        {
            ReportNhanVien reportnhanvien = new ReportNhanVien();

            reportnhanvien.ShowDialog();
        }