Ejemplo n.º 1
0
 public static frmSettings GetForm(frmMain main)
 {
     if (inst == null || inst.IsDisposed)
     {
         inst = new frmSettings(main);
     }
     return(inst);
 }
Ejemplo n.º 2
0
 public static frmOverlay GetForm(frmSettings settings)
 {
     if (inst == null || inst.IsDisposed)
     {
         inst = new frmOverlay(settings);
     }
     return(inst);
 }
Ejemplo n.º 3
0
        public frmOverlay(frmSettings settings)
        {
            InitializeComponent();
            this.settings     = settings;
            this.MouseDown   += new MouseEventHandler(mouse_Click);
            this.MouseUp     += new MouseEventHandler(mouse_Up);
            this.MouseMove   += new MouseEventHandler(mouse_Move);
            this.KeyUp       += new KeyEventHandler(key_press);
            this.DoubleClick += new EventHandler(mouse_dClick);
            g = this.CreateGraphics();

            PrimMon = GetPrimaryMonIdx();
            showMon = PrimMon;
        }