private void ColorPickerForm_FormClosed(object sender, FormClosedEventArgs e) { isAlreadyMadeFlag = false; instance = null; binaryForm = null; }
private void processButton_Click(object sender, EventArgs e) { screenPictureBox.Visible = false; binaryScreenPictureBox.Visible = true; if (this.OwnedForms.Length == 0) { binaryForm = new BinaryColorPickerForm(); } binaryForm.Owner = this; binaryForm.Setup(screenPictureBox, binaryScreenPictureBox); binaryForm.Show(); }
private void Init() { hLabel.Text = ""; sLabel.Text = ""; vLabel.Text = ""; rLabel.Text = ""; gLabel.Text = ""; bLabel.Text = ""; zoom = 1; zoomComboBox.Text = "100%"; zoomComboBox.SelectedItem = 0; if (binaryForm != null) { binaryForm.Close(); } binaryForm = null; this.Location = new Point((Screen.PrimaryScreen.Bounds.Size.Width / 2) - (this.Size.Width / 2), (Screen.PrimaryScreen.Bounds.Size.Height / 2) - (this.Size.Height / 2)); }