private void UndoMiniZeAllForms() { if (escapedKepPressed) { return; } topFrm.WindowState = FormWindowState.Normal; bottomFrm.WindowState = FormWindowState.Normal; rightFrm.WindowState = FormWindowState.Normal; leftFrm.WindowState = FormWindowState.Normal; this.WindowState = FormWindowState.Normal; _attachedWindow.ShowAttachWindow(); topFrm.Activate(); }
private void button1_Click_1(object sender, EventArgs e) { this.Visible = false; Thread.Sleep(TimeSpan.FromSeconds(int.Parse(textBox1.Text))); if (!checkBox1.Checked || !File.Exists(filename)) { ServerDLL.ScreenCapture.CaptureScreenToFile(filename, ImageFormat.Jpeg); } var attachedWindow = new AttachedWindow((cmbProcess.SelectedItem as ComboboxItem).Value.ToString()); attachedWindow.ShowAttachWindow(); TransparentFrm frm = new TransparentFrm(attachedWindow); frm.Show(); }