Esempio n. 1
0
        private void frmButtDebug_FormClosing(object sender, FormClosingEventArgs e)
        {
            ButtStatusTimer.Enabled = false;
            //pPlcSrv.ReleaseGroup(ButtDebugGroupName);

            MyInstance = null;
        }
Esempio n. 2
0
        private static frmButtDebug Myinstance()
        {
            if (MyInstance == null || MyInstance.IsDisposed)
            {
                MyInstance = new frmButtDebug();
                MyInstance.StartPosition = FormStartPosition.CenterScreen;
                //MyInstance.WindowState = FormWindowState.Maximized;
            }
            else
            {
                MyInstance.BringToFront();
            }

            return(MyInstance);
        }