コード例 #1
0
        private void btnAddStudent_Click(object sender, RoutedEventArgs e)
        {
            wpfAddStudent addStudents = new wpfAddStudent();

            addStudents.ShowDialog();
            dgLesson.ItemsSource = dataTracker.getGroupStudents(groupID.ToString());
            dgLesson.Items.Refresh();
        }
コード例 #2
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.wpfAddStudents = ((ProjectGroup2.wpfAddStudent)(target));
                return;

            case 2:
                this.lblGroup = ((System.Windows.Controls.Label)(target));
                return;

            case 3:
                this.btnClose = ((System.Windows.Controls.Button)(target));

            #line 17 "..\..\wpfAddStudent.xaml"
                this.btnClose.Click += new System.Windows.RoutedEventHandler(this.btnClose_Click);

            #line default
            #line hidden
                return;

            case 4:
                this.btnRemove = ((System.Windows.Controls.Button)(target));

            #line 18 "..\..\wpfAddStudent.xaml"
                this.btnRemove.Click += new System.Windows.RoutedEventHandler(this.btnRemove_Click);

            #line default
            #line hidden
                return;

            case 5:
                this.dgAllStudents = ((System.Windows.Controls.DataGrid)(target));

            #line 20 "..\..\wpfAddStudent.xaml"
                this.dgAllStudents.SelectionChanged += new System.Windows.Controls.SelectionChangedEventHandler(this.dgAllStudents_SelectionChanged);

            #line default
            #line hidden
                return;

            case 6:
                this.dgStudentsInGroup = ((System.Windows.Controls.DataGrid)(target));

            #line 26 "..\..\wpfAddStudent.xaml"
                this.dgStudentsInGroup.SelectionChanged += new System.Windows.Controls.SelectionChangedEventHandler(this.dgStudentsInGroup_SelectionChanged);

            #line default
            #line hidden
                return;

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

            #line 32 "..\..\wpfAddStudent.xaml"
                this.btnAdd.Click += new System.Windows.RoutedEventHandler(this.btnAdd_Click);

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