Example #1
0
 public static PopUpWindow GetInstance()
 {
     if (_frmMessage == null)
     {
         _frmMessage = new PopUpWindow();
         return(_frmMessage);
     }
     return(_frmMessage);
 }
Example #2
0
        private void Window_Closing(object sender, System.ComponentModel.CancelEventArgs e)
        {
            try
            {
                //if (emailSettings.popupWindow != null)
                //{
                //    emailSettings.popupWindow = null;
                //}

                _frmMessage = null;
            }
            catch (Exception ex)
            {
                logger.Error("Window_Closing:" + ex.ToString());
            }
        }