private void EditPanel_Add(object sender, EventArgs e) { try { Add_Update_Attendence a = new Add_Update_Attendence(); a.ShowDialog(); Fill_DG(); } catch { } }
private void EditPanel_Edit(object sender, EventArgs e) { try { Add_Update_Attendence a = new Add_Update_Attendence(((DataRowView)Attendence_DG.SelectedItem)[0]); a.ShowDialog(); Fill_DG(); } catch { } }