private void MainForm_Load(object sender, EventArgs e) { bluetooth bt = new bluetooth(); bt.Show(); bt.MdiParent = this; }
private void bluetoothToolStripMenuItem_Click(object sender, EventArgs e) { if (bluetooth == null || bluetooth.Text == "") { bluetooth = new bluetooth(); bluetooth.MdiParent = this; bluetooth.Dock = DockStyle.Fill; bluetooth.Show(); } else if (CheckOpened(rijndael.Text)) { bluetooth.WindowState = FormWindowState.Normal; bluetooth.Dock = DockStyle.Fill; bluetooth.Show(); bluetooth.Focus(); } }