Пример #1
0
        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);
                }
            }
        }
Пример #2
0
 public void ShowRecentlyClosedDocuments(IEnumerable <SessionDocumentDto> recentlyClosedDocuments)
 {
     using (FrmSessions frm = CreateForm())
     {
         try
         {
             frm.ConfigureForRecentlyClosedDocuments(recentlyClosedDocuments);
             frm.ShowDialog();
         }
         catch (Exception ex)
         {
             _exceptionManager.HandleException(ex);
         }
     }
 }
Пример #3
0
        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);
                }
            }
        }
Пример #4
0
 public bool AskForConfirmation(string confirmationMsg, params object[] args)
 {
     return(FrmSessions.AskForConfirmation(confirmationMsg, args));
 }