示例#1
0
 public void MaskClose( )
 {
     if (maskForm != null && !maskForm.IsDisposed && !maskForm.Disposing)
     {
         maskForm.Close( );
     }
 }
示例#2
0
        //private void UTIL_ICON_BUTTON1_Click( object sender, EventArgs e )
        //{
        //	Utility.OpenWebPage( GlobalVar.CAFE_RULE_URL, this );
        //}

        //private void UTIL_ICON_BUTTON2_Click( object sender, EventArgs e )
        //{
        //	Utility.OpenWebPage( GlobalVar.CAFE_MANAGE_HOME_URL, this );
        //}

        //private void UTIL_ICON_BUTTON4_Click( object sender, EventArgs e )
        //{
        //	Utility.OpenWebPage( GlobalVar.CAFE_MANAGE_JOINMANAGE_URL, this );
        //}

        //private void UTIL_ICON_BUTTON5_Click( object sender, EventArgs e )
        //{
        //	Utility.OpenWebPage( GlobalVar.NAVER_SPELL_CHECKER_URL, this );
        //}

        //private void UTIL_ICON_BUTTON6_Click( object sender, EventArgs e )
        //{
        //	( new CafeRankViewer( ) ).ShowDialog( );
        //}

        //private void UTIL_ICON_BUTTON7_Click( object sender, EventArgs e )
        //{
        //	( new MemberWarningForm( ) ).ShowDialog( );
        //}

        //private void UTIL_ICON_BUTTON8_Click( object sender, EventArgs e )
        //{
        //	( new MemberActivityStopListForm( ) ).ShowDialog( );
        //}

        public void MaskShow( )
        {
            if (maskForm != null && !maskForm.IsDisposed && !maskForm.Disposing)
            {
                return;
            }

            MaskForm mask = new MaskForm( );

            mask.Owner        = this;
            mask.Size         = new Size(this.Width, this.Height);
            mask.Location     = this.Location;
            this.FormClosing += (object sender2, FormClosingEventArgs e2) =>
            {
                if (mask != null && !mask.IsDisposed && !mask.Disposing)
                {
                    mask.Close( );
                }
            };
            this.LocationChanged += (object sender2, EventArgs e2) =>
            {
                mask.Location = this.Location;
            };
            mask.Show( );
            mask.Refresh( );

            this.maskForm = mask;
        }