public GreyOutWindow openGreyOutWindowLogin(bool showBorder)
 {
     if (!this.isPopupWindowCreated(this.m_greyOutWindow))
     {
         if (Program.profileLogin == null)
         {
             return null;
         }
         this.m_greyLogin = true;
         this.m_greyOutWindow = new GreyOutWindow();
         Size clientSize = Program.profileLogin.ClientSize;
         Point point = Program.profileLogin.PointToScreen(new Point(0, 0));
         this.m_greyOutWindow.Location = point;
         this.m_greyOutWindow.Size = clientSize;
         this.m_greyOutWindow.init(showBorder);
         this.m_greyOutWindow.Show(Program.profileLogin);
     }
     return this.m_greyOutWindow;
 }
 public void closeGreyOut()
 {
     this.closePopupWindow(this.m_greyOutWindow);
     this.m_greyOutWindow = null;
 }
 public GreyOutWindow openGreyOutWindow(bool showBorder, Form parent)
 {
     if (!this.isPopupWindowCreated(this.m_greyOutWindow))
     {
         this.m_greyLogin = false;
         this.m_greyOutWindow = new GreyOutWindow();
         Size clientSize = parent.ClientSize;
         Point point = parent.PointToScreen(new Point(0, 0));
         this.m_greyOutWindow.Location = point;
         this.m_greyOutWindow.Size = clientSize;
         this.m_greyOutWindow.init(showBorder);
         this.m_greyOutWindow.Show(parent);
     }
     return this.m_greyOutWindow;
 }