示例#1
0
 private void OverLaycheck_CheckedChanged(object sender, EventArgs e)
 {
     if (overLaycheck.Checked == true)
     {
         overLay.TransparencyKey = Color.Empty;
         overLay.FormBorderStyle = FormBorderStyle.FixedDialog;
         Point z = new Point(GobleSettings.Default.OverlayX, GobleSettings.Default.OverlayY);
         overLay.Location = z;
         overLay.Text     = "Overlay place";
         if (overLay.IsDisposed)
         {
             overLay                 = new OverLay();
             overLay.Location        = z;
             overLay.Text            = "Overlay place";
             overLay.TransparencyKey = Color.Empty;
             overLay.FormBorderStyle = FormBorderStyle.FixedDialog;
         }
         overLay.ShowDialog();
         overLaycheck.Checked = false;
     }
     else
     {
         overLay.FormBorderStyle = FormBorderStyle.None;
         overLay.TransparencyKey = Color.Black;
         overLay.Dispose();
     }
 }
示例#2
0
        private void OverLayMuenu_CheckedChanged(object sender, EventArgs e)
        {
            Point z = new Point(GobleSettings.Default.OverlayX, GobleSettings.Default.OverlayY);

            over.Location = z;
            if (OverLayMuenu.Checked == true)
            {
                if (over.IsDisposed)
                {
                    over          = new OverLay();
                    over.Location = z;
                }
                over.Show();
            }
            if (OverLayMuenu.Checked == false)
            {
                over.Dispose();
            }
        }