private bool Set_SessionProperties() { if (!(Txt_SessionName.Text.Equals(""))) { if ((!(oEventParent.RecordSessionExists(Txt_SessionName.Text))) || (!bNewSession)) { oRecordSession.Name = Txt_SessionName.Text; } else { MessageBox.Show("A record session already exists in the record event with the same name !", Application.ProductName, MessageBoxButtons.OK, MessageBoxIcon.Exclamation); return(false); } } else { MessageBox.Show("Name of the record session cannot be empty !", Application.ProductName, MessageBoxButtons.OK, MessageBoxIcon.Exclamation); return(false); } oRecordSession.SessionDate = DP_SessionDate.Value; oRecordSession.Comment = rTxt_SessionComment.Text; oRecordSession.UserInfos = Ctrl_RecordUserInfo.Get_UserInformations(); return(true); }
private void Show_SessionProperties() { //General properties Txt_SessionName.Text = oRecordSession.Name; DP_SessionDate.Value = oRecordSession.SessionDate; rTxt_SessionComment.Text = oRecordSession.Comment; //User info Ctrl_RecordUserInfo.Set_UserInformations(oRecordSession.UserInfos); }