private void btnCMEdit_Click(object sender, RoutedEventArgs e) { var atndStd = (ClassAttendanceList)gvClassAttendanceListView.SelectedItem; if (atndStd == null) { Message(MessageTypes.Error, "Please select date and class"); return; } var view = new ucStudentAttendanceDetailView(atndStd.StudentID, SelectedDate); OpenPopUp(view, "Student Attendance", 700, 500); }
private void btnStudentAttendance_Click(object sender, RoutedEventArgs e) { var view = new ucStudentAttendanceDetailView(0, null); OpenPopUp(view, "Student Attendance", 700, 500); }
void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) { switch (connectionId) { case 1: this.CustomeUserControl = ((ES.UI.Setups.ucStudentAttendanceDetailView)(target)); return; case 2: this.radDatePicker = ((Telerik.Windows.Controls.RadDatePicker)(target)); #line 37 "..\..\..\..\Setups\ucStudentAttendanceDetailView.xaml" this.radDatePicker.SelectionChanged += new System.Windows.Controls.SelectionChangedEventHandler(this.radDatePicker_SelectionChanged); #line default #line hidden return; case 3: #line 49 "..\..\..\..\Setups\ucStudentAttendanceDetailView.xaml" ((System.Windows.Controls.ComboBox)(target)).SelectionChanged += new System.Windows.Controls.SelectionChangedEventHandler(this.ComboBoxClass_SelectionChanged); #line default #line hidden return; case 4: #line 62 "..\..\..\..\Setups\ucStudentAttendanceDetailView.xaml" ((System.Windows.Controls.ComboBox)(target)).SelectionChanged += new System.Windows.Controls.SelectionChangedEventHandler(this.ComboBoxStudent_SelectionChanged); #line default #line hidden return; case 5: this.btnAttendanceView = ((Telerik.Windows.Controls.RadButton)(target)); #line 76 "..\..\..\..\Setups\ucStudentAttendanceDetailView.xaml" this.btnAttendanceView.Click += new System.Windows.RoutedEventHandler(this.btnAttendanceView_Click); #line default #line hidden return; case 6: this.btnAttendanceMark = ((Telerik.Windows.Controls.RadButton)(target)); #line 83 "..\..\..\..\Setups\ucStudentAttendanceDetailView.xaml" this.btnAttendanceMark.Click += new System.Windows.RoutedEventHandler(this.btnAttendanceMark_Click); #line default #line hidden return; case 7: this.gvMarkClassAttendanceView = ((Telerik.Windows.Controls.RadGridView)(target)); return; } this._contentLoaded = true; }