private void SimpleButton61_Click(object sender, System.EventArgs e) { if (schedulerControl1.SelectedAppointments.Count > 0) { DataRowView rowView = (DataRowView)schedulerControl1.SelectedAppointments[0].GetRow(schedulerControl1.Storage); DataRow r = rowView.Row; if (r != null) { try { int nServiceSessionID = ACMS.Convert.ToInt32(r["nSessionID"]); string membershipID = r["strMembershipID"].ToString(); string serviceSessionBranchCode = r["strBranchCode"].ToString(); FormMarkService frm = new FormMarkService(mySpaBooking, nServiceSessionID, membershipID, serviceSessionBranchCode); DialogResult result = frm.ShowDialog(this); if (result == DialogResult.OK) { Init(true); } } catch (Exception ex) { MessageBox.Show(ex.Message); } } } }
private void SimpleButton61_Click(object sender, System.EventArgs e) { if (schedulerControl1.SelectedAppointments.Count > 0) { DataRowView rowView = (DataRowView) schedulerControl1.SelectedAppointments[0].GetRow(schedulerControl1.Storage); DataRow r = rowView.Row; if (r != null) { try { int nServiceSessionID = ACMS.Convert.ToInt32(r["nSessionID"]); string membershipID = r["strMembershipID"].ToString(); string serviceSessionBranchCode = r["strBranchCode"].ToString(); FormMarkService frm = new FormMarkService(mySpaBooking, nServiceSessionID, membershipID, serviceSessionBranchCode); DialogResult result = frm.ShowDialog(this); if (result == DialogResult.OK) { Init(true); } } catch (Exception ex) { MessageBox.Show(ex.Message); } } } }