示例#1
0
        private void Button_Command(object sender, RoutedEventArgs e)
        {
            u.Visibility = Visibility.Collapsed;
            Managers T = new Managers(ref g);

            g.Children.Add(T);
        }
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.p_Managers = ((CRM.Managers)(target));
                return;

            case 2:
                this.G1 = ((System.Windows.Controls.Grid)(target));
                return;

            case 3:

            #line 17 "..\..\..\..\Menu\Managers\Managers.xaml"
                ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.Button_Add);

            #line default
            #line hidden
                return;

            case 4:

            #line 18 "..\..\..\..\Menu\Managers\Managers.xaml"
                ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.Button_Change);

            #line default
            #line hidden
                return;

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

            #line 19 "..\..\..\..\Menu\Managers\Managers.xaml"
                this.b_s.Click += new System.Windows.RoutedEventHandler(this.Button_Save);

            #line default
            #line hidden
                return;

            case 6:

            #line 20 "..\..\..\..\Menu\Managers\Managers.xaml"
                ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.Button_Del);

            #line default
            #line hidden
                return;

            case 7:
                this.b_o = ((System.Windows.Controls.Button)(target));

            #line 21 "..\..\..\..\Menu\Managers\Managers.xaml"
                this.b_o.Click += new System.Windows.RoutedEventHandler(this.Button_Open);

            #line default
            #line hidden
                return;

            case 8:
                this.dg_Managers = ((System.Windows.Controls.DataGrid)(target));
                return;

            case 9:
                this.dgc_login = ((System.Windows.Controls.DataGridTextColumn)(target));
                return;

            case 10:
                this.dgc_address = ((System.Windows.Controls.DataGridTextColumn)(target));
                return;

            case 11:
                this.dgc_phone = ((System.Windows.Controls.DataGridTextColumn)(target));
                return;

            case 12:
                this.dgc_pass = ((System.Windows.Controls.DataGridTextColumn)(target));
                return;

            case 13:
                this.dgc_dateB = ((System.Windows.Controls.DataGridTextColumn)(target));
                return;

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