예제 #1
0
        /// <summary>
        /// Подключение к устр-ву
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void подключитьсяToolStripMenuItem_Click(object sender, EventArgs e)
        {
            ConnectSettingsForm connect = new ConnectSettingsForm();

            if (connect.ShowDialog() == DialogResult.OK)
            {
                KeyGPack         = new KeyGuardPacket(new KeyGuardConnect(connect.IpAddrMask, connect.PortMask));
                mSForm           = new MainSettingsForm(KeyGPack);
                mSForm.MdiParent = this;
                dZForm           = new DateZoneSettingsForm(KeyGPack);
                dZForm.MdiParent = this;
                cDForm           = new CardForm(KeyGPack);
                cDForm.MdiParent = this;
                // ---
                //KeyGPack.Subscibe(mSForm);
                KeyGPack.SubscribeOnPacket();
                KeyGPack.Start();
                // - покажем дерево
                treeView1.Enabled = true;
                treeView1.Visible = true;
                // debug Proc();
            }
        }