示例#1
0
 public static PopUpWindow GetInstance()
 {
     if (_frmMessage == null)
     {
         _frmMessage = new PopUpWindow();
         return(_frmMessage);
     }
     return(_frmMessage);
 }
示例#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());
            }
        }