public SessionDto GetSessionForSaveAs(IEnumerable <SessionDto> currentSessions) { using (FrmSessions frm = CreateForm()) { try { frm.ConfigureForSaveAs(currentSessions); frm.ShowDialog(); if (frm.Result.Count > 0) { return(frm.Result[0]); } else { return(null); } } catch (Exception ex) { _exceptionManager.HandleException(ex); return(null); } } }
public void ShowRecentlyClosedDocuments(IEnumerable <SessionDocumentDto> recentlyClosedDocuments) { using (FrmSessions frm = CreateForm()) { try { frm.ConfigureForRecentlyClosedDocuments(recentlyClosedDocuments); frm.ShowDialog(); } catch (Exception ex) { _exceptionManager.HandleException(ex); } } }
public IList <SessionDto> GetSessionsForDelete(IEnumerable <SessionDto> currentSessions) { using (FrmSessions frm = CreateForm()) { try { frm.ConfigureForDelete(currentSessions); frm.ShowDialog(); return(frm.Result); } catch (Exception ex) { _exceptionManager.HandleException(ex); return(null); } } }
public bool AskForConfirmation(string confirmationMsg, params object[] args) { return(FrmSessions.AskForConfirmation(confirmationMsg, args)); }