Пример #1
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:

            #line 9 "..\..\FrmQuotation.xaml"
                ((XProjectWPF.FrmQuotation)(target)).Loaded += new System.Windows.RoutedEventHandler(this.XBaseForm_Loaded);

            #line default
            #line hidden

            #line 9 "..\..\FrmQuotation.xaml"
                ((XProjectWPF.FrmQuotation)(target)).Closing += new System.ComponentModel.CancelEventHandler(this.XBaseForm_Closing);

            #line default
            #line hidden
                return;

            case 2:
                this.t_meu_Menu = ((System.Windows.Controls.Menu)(target));
                return;

            case 3:
                this.t_tsb_New = ((System.Windows.Controls.MenuItem)(target));

            #line 12 "..\..\FrmQuotation.xaml"
                this.t_tsb_New.Click += new System.Windows.RoutedEventHandler(this.t_tsb_New_Click);

            #line default
            #line hidden
                return;

            case 4:
                this.t_tsb_Copy = ((System.Windows.Controls.MenuItem)(target));

            #line 20 "..\..\FrmQuotation.xaml"
                this.t_tsb_Copy.Click += new System.Windows.RoutedEventHandler(this.t_tsb_Copy_Click);

            #line default
            #line hidden
                return;

            case 5:
                this.t_tsb_Save = ((System.Windows.Controls.MenuItem)(target));

            #line 28 "..\..\FrmQuotation.xaml"
                this.t_tsb_Save.Click += new System.Windows.RoutedEventHandler(this.t_tsb_Save_Click);

            #line default
            #line hidden
                return;

            case 6:
                this.t_tsb_Change = ((System.Windows.Controls.MenuItem)(target));

            #line 36 "..\..\FrmQuotation.xaml"
                this.t_tsb_Change.Click += new System.Windows.RoutedEventHandler(this.t_tsb_Change_Click);

            #line default
            #line hidden
                return;

            case 7:
                this.t_tsb_CreateProject = ((System.Windows.Controls.MenuItem)(target));

            #line 44 "..\..\FrmQuotation.xaml"
                this.t_tsb_CreateProject.Click += new System.Windows.RoutedEventHandler(this.t_tsb_CreateProject_Click);

            #line default
            #line hidden
                return;

            case 8:
                this.t_tsb_Close = ((System.Windows.Controls.MenuItem)(target));

            #line 52 "..\..\FrmQuotation.xaml"
                this.t_tsb_Close.Click += new System.Windows.RoutedEventHandler(this.t_tsb_Close_Click);

            #line default
            #line hidden
                return;

            case 9:
                this.t_tslStateText = ((System.Windows.Controls.TextBlock)(target));
                return;

            case 10:
                this.t_grd_Quotation = ((System.Windows.Controls.Grid)(target));
                return;

            case 11:
                this.t_txt_QuotationNo = ((RJ.XStyle.XTextBox)(target));
                return;

            case 12:
                this.t_dtp_QuotationDate = ((RJ.XStyle.XDatePicker)(target));
                return;

            case 13:
                this.t_txt_FollowMan = ((RJ.XStyle.XTextBox)(target));
                return;

            case 14:
                this.t_txt_ProjectName = ((RJ.XStyle.XTextBox)(target));
                return;

            case 15:
                this.t_txt_Price = ((RJ.XStyle.XTextBox)(target));
                return;

            case 16:
                this.t_chk_IsTax = ((RJ.XStyle.XCheckBox)(target));
                return;

            case 17:
                this.t_txt_ProductModel = ((RJ.XStyle.XTextBox)(target));
                return;

            case 18:
                this.t_rad_Safe = ((RJ.XStyle.XRadioButton)(target));
                return;

            case 19:
                this.t_rad_Chemistry = ((RJ.XStyle.XRadioButton)(target));
                return;

            case 20:
                this.t_txt_CycleTime = ((RJ.XStyle.XTextBox)(target));
                return;

            case 21:
                this.t_grd_Company = ((System.Windows.Controls.Grid)(target));
                return;

            case 22:
                this.t_txt_CompanyName = ((RJ.XStyle.XTextBox)(target));
                return;

            case 23:
                this.t_txt_CompanyAddress = ((RJ.XStyle.XTextBox)(target));
                return;

            case 24:
                this.t_txt_ContactMan = ((RJ.XStyle.XTextBox)(target));
                return;

            case 25:
                this.t_txt_Tel = ((RJ.XStyle.XTextBox)(target));
                return;

            case 26:
                this.t_txt_Email = ((RJ.XStyle.XTextBox)(target));
                return;

            case 27:
                this.t_txt_Remark = ((RJ.XStyle.XTextBox)(target));
                return;

            case 28:
                this.t_txt_Fax = ((RJ.XStyle.XTextBox)(target));
                return;

            case 29:
                this.t_dge_Project = ((RJ.XStyle.XDataGrid)(target));

            #line 105 "..\..\FrmQuotation.xaml"
                this.t_dge_Project.MouseDoubleClick += new System.Windows.Input.MouseButtonEventHandler(this.t_dge_Project_MouseDoubleClick);

            #line default
            #line hidden
                return;
            }
            this._contentLoaded = true;
        }
Пример #2
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:

            #line 10 "..\..\ManageForm.xaml"
                ((XProjectWPF.ManageForm)(target)).Loaded += new System.Windows.RoutedEventHandler(this.XBaseForm_Loaded);

            #line default
            #line hidden
                return;

            case 2:
                this.menu = ((System.Windows.Controls.Menu)(target));
                return;

            case 3:
                this.t_tsb_Query = ((System.Windows.Controls.MenuItem)(target));

            #line 13 "..\..\ManageForm.xaml"
                this.t_tsb_Query.Click += new System.Windows.RoutedEventHandler(this.t_tsb_Query_Click);

            #line default
            #line hidden
                return;

            case 4:
                this.t_btn_New = ((System.Windows.Controls.MenuItem)(target));

            #line 21 "..\..\ManageForm.xaml"
                this.t_btn_New.Click += new System.Windows.RoutedEventHandler(this.t_btn_New_Click);

            #line default
            #line hidden
                return;

            case 5:
                this.t_btn_Open = ((System.Windows.Controls.MenuItem)(target));

            #line 29 "..\..\ManageForm.xaml"
                this.t_btn_Open.Click += new System.Windows.RoutedEventHandler(this.t_btn_Open_Click);

            #line default
            #line hidden
                return;

            case 6:
                this.t_btn_Delete = ((System.Windows.Controls.MenuItem)(target));

            #line 38 "..\..\ManageForm.xaml"
                this.t_btn_Delete.Click += new System.Windows.RoutedEventHandler(this.t_btn_Delete_Click);

            #line default
            #line hidden
                return;

            case 7:
                this.t_tsm_Close = ((System.Windows.Controls.MenuItem)(target));

            #line 46 "..\..\ManageForm.xaml"
                this.t_tsm_Close.Click += new System.Windows.RoutedEventHandler(this.t_tsm_Close_Click);

            #line default
            #line hidden
                return;

            case 8:
                this.t_tvw_Module = ((RJ.XStyle.XTreeView)(target));

            #line 72 "..\..\ManageForm.xaml"
                this.t_tvw_Module.SelectedItemChanged += new System.Windows.RoutedPropertyChangedEventHandler <object>(this.t_tvw_Module_SelectedItemChanged);

            #line default
            #line hidden
                return;

            case 9:
                this.t_pgg_Bill = ((RJ.XStyle.XDataGrid)(target));

            #line 75 "..\..\ManageForm.xaml"
                this.t_pgg_Bill.MouseDoubleClick += new System.Windows.Input.MouseButtonEventHandler(this.t_pgg_Bill_MouseDoubleClick);

            #line default
            #line hidden

            #line 75 "..\..\ManageForm.xaml"
                this.t_pgg_Bill.PreviewMouseRightButtonDown += new System.Windows.Input.MouseButtonEventHandler(this.t_pgg_Bill_PreviewMouseRightButtonDown);

            #line default
            #line hidden
                return;

            case 10:
                this.SettingMenu = ((System.Windows.Controls.ContextMenu)(target));
                return;

            case 11:
                this.t_tsb_Open = ((System.Windows.Controls.MenuItem)(target));

            #line 81 "..\..\ManageForm.xaml"
                this.t_tsb_Open.Click += new System.Windows.RoutedEventHandler(this.t_tsb_Open_Click);

            #line default
            #line hidden
                return;

            case 12:
                this.t_tsb_Delete = ((System.Windows.Controls.MenuItem)(target));

            #line 86 "..\..\ManageForm.xaml"
                this.t_tsb_Delete.Click += new System.Windows.RoutedEventHandler(this.t_tsb_Delete_Click);

            #line default
            #line hidden
                return;

            case 13:
                this.t_tsb_ChangeState = ((System.Windows.Controls.MenuItem)(target));
                return;

            case 14:
                this.t_dtp_StartDate = ((RJ.XStyle.XDatePicker)(target));

            #line 101 "..\..\ManageForm.xaml"
                this.t_dtp_StartDate.ValueChanged += new System.Windows.RoutedEventHandler(this.t_dtp_StartDate_ValueChanged);

            #line default
            #line hidden
                return;

            case 15:
                this.t_dtp_EndDate = ((RJ.XStyle.XDatePicker)(target));

            #line 103 "..\..\ManageForm.xaml"
                this.t_dtp_EndDate.ValueChanged += new System.Windows.RoutedEventHandler(this.t_dtp_EndDate_ValueChanged);

            #line default
            #line hidden
                return;

            case 16:
                this.t_rdo_Today = ((RJ.XStyle.XRadioButton)(target));

            #line 104 "..\..\ManageForm.xaml"
                this.t_rdo_Today.Checked += new System.Windows.RoutedEventHandler(this.OnDateFilterCheckedChanged);

            #line default
            #line hidden
                return;

            case 17:
                this.t_rdo_Week = ((RJ.XStyle.XRadioButton)(target));

            #line 105 "..\..\ManageForm.xaml"
                this.t_rdo_Week.Checked += new System.Windows.RoutedEventHandler(this.OnDateFilterCheckedChanged);

            #line default
            #line hidden

            #line 105 "..\..\ManageForm.xaml"
                this.t_rdo_Week.Unchecked += new System.Windows.RoutedEventHandler(this.OnDateFilterCheckedChanged);

            #line default
            #line hidden
                return;

            case 18:
                this.t_rdo_Month = ((RJ.XStyle.XRadioButton)(target));

            #line 106 "..\..\ManageForm.xaml"
                this.t_rdo_Month.Checked += new System.Windows.RoutedEventHandler(this.OnDateFilterCheckedChanged);

            #line default
            #line hidden

            #line 106 "..\..\ManageForm.xaml"
                this.t_rdo_Month.Unchecked += new System.Windows.RoutedEventHandler(this.OnDateFilterCheckedChanged);

            #line default
            #line hidden
                return;

            case 19:
                this.t_rdo_All = ((RJ.XStyle.XRadioButton)(target));

            #line 107 "..\..\ManageForm.xaml"
                this.t_rdo_All.Checked += new System.Windows.RoutedEventHandler(this.OnDateFilterCheckedChanged);

            #line default
            #line hidden

            #line 107 "..\..\ManageForm.xaml"
                this.t_rdo_All.Unchecked += new System.Windows.RoutedEventHandler(this.OnDateFilterCheckedChanged);

            #line default
            #line hidden
                return;

            case 20:
                this.t_rdo_Custom = ((RJ.XStyle.XRadioButton)(target));

            #line 108 "..\..\ManageForm.xaml"
                this.t_rdo_Custom.Checked += new System.Windows.RoutedEventHandler(this.OnDateFilterCheckedChanged);

            #line default
            #line hidden

            #line 108 "..\..\ManageForm.xaml"
                this.t_rdo_Custom.Unchecked += new System.Windows.RoutedEventHandler(this.OnDateFilterCheckedChanged);

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