private void Cmd_CreateNewClick(object sender, EventArgs e) { switch (eSelectionMode) { case RecordObjectSelectionMode.Event: { CS_RecordEvent oNewEvent = new CS_RecordEvent(); ((MainForm)FrmCaller).Set_ActiveRecordEvent(oNewEvent); Frm_RecordEventEdition Frm = new Frm_RecordEventEdition(oNewEvent, FrmCaller, true); Frm.Show(); } break; case RecordObjectSelectionMode.Session: { Frm_RecordSessionEdition Frm = new Frm_RecordSessionEdition(oEvent, new CS_RecordSession(), FrmCaller, true); Frm.Show(); } break; } this.Close(); }
private void Create_NewSession() { CS_RecordSession oSession = new CS_RecordSession(); Frm_RecordSessionEdition FrmSession = new Frm_RecordSessionEdition(oRecordEvent, oSession, this as Form, true); FrmSession.Show(); }
private void Edit_RecordSession() { if (!(LV_Sessions.SelectedItems == null)) { CS_RecordSession oSession = oRecordEvent.Get_RecordSession(LV_Sessions.SelectedItems[0].Text); if (!(oSession == null)) { Frm_RecordSessionEdition FrmSession = new Frm_RecordSessionEdition(oRecordEvent, oSession, this as Form, false); FrmSession.Show(); } } }