Ejemplo n.º 1
0
        private void ColorPickerForm_FormClosed(object sender, FormClosedEventArgs e)
        {
            isAlreadyMadeFlag = false;
            instance          = null;

            binaryForm = null;
        }
Ejemplo n.º 2
0
        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();
        }
Ejemplo n.º 3
0
        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));
        }