Пример #1
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.AttendanceRegisterWindow = ((FitnessCenterApplication.Window2)(target));
                return;

            case 2:
                this.Delete_ID_lesson_TextBox = ((System.Windows.Controls.TextBox)(target));
                return;

            case 3:
                this.Delete_ID_card_TextBox = ((System.Windows.Controls.TextBox)(target));
                return;

            case 4:
                this.AttendanceDataGrid = ((System.Windows.Controls.DataGrid)(target));
                return;

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

            #line 14 "..\..\Window2.xaml"
                this.AddButton.Click += new System.Windows.RoutedEventHandler(this.AddButton_Click);

            #line default
            #line hidden
                return;

            case 6:
                this.DeleteButton = ((System.Windows.Controls.Button)(target));

            #line 15 "..\..\Window2.xaml"
                this.DeleteButton.Click += new System.Windows.RoutedEventHandler(this.DeleteButton_Click);

            #line default
            #line hidden
                return;

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

            #line 16 "..\..\Window2.xaml"
                this.ChangeButton.Click += new System.Windows.RoutedEventHandler(this.ChangeButton_Click);

            #line default
            #line hidden
                return;

            case 8:
                this.ReloadButton = ((System.Windows.Controls.Button)(target));

            #line 19 "..\..\Window2.xaml"
                this.ReloadButton.Click += new System.Windows.RoutedEventHandler(this.ReloadButton_Click);

            #line default
            #line hidden
                return;

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

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

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

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

            case 13:
                this.Changed_ID_lesson_TextBox = ((System.Windows.Controls.TextBox)(target));
                return;

            case 14:
                this.Changed_ID_card_TextBox = ((System.Windows.Controls.TextBox)(target));
                return;

            case 15:
                this.Add_ID_num_TextBox = ((System.Windows.Controls.TextBox)(target));
                return;

            case 16:
                this.Delete_ID_num_TextBox = ((System.Windows.Controls.TextBox)(target));
                return;

            case 17:
                this.Original_ID_num_TextBox = ((System.Windows.Controls.TextBox)(target));
                return;

            case 18:
                this.Changed_ID_num_TextBox = ((System.Windows.Controls.TextBox)(target));
                return;

            case 19:
                this.InfoButton = ((System.Windows.Controls.Button)(target));

            #line 35 "..\..\Window2.xaml"
                this.InfoButton.Click += new System.Windows.RoutedEventHandler(this.InfoButton_Click);

            #line default
            #line hidden
                return;
            }
            this._contentLoaded = true;
        }
Пример #2
0
        private void AttendanceRegisterButton_Click(object sender, RoutedEventArgs e)
        {
            Window2 window2 = new Window2();

            window2.Show();
        }