示例#1
0
        private void timerScreen_Tick(object sender, EventArgs e)
        {
            FormConnection fa = new FormConnection();

            fa.Show();
            this.Hide();
            timerScreen.Enabled = false;
        }
示例#2
0
        private void constate(bool value)
        {
            Action action = () =>
            {
                switch (value)
                {
                case (true):
                    tsslCon.Text = Registry_Class.DSIP + "\\" + Registry_Class.DSSN + " - " + Registry_Class.IC;
                    break;

                case (false):
                    FormConnection conection = new FormConnection();
                    tsslCon.Text = "Подключение отсутвует!";
                    conection.Show(this);
                    break;
                }
            };

            Invoke(action);
        }