private void CursorComboBox_SelectedIndexChanged(object sender, EventArgs e) { // DesignClass.FORM_CURSOR = (Cursor)CursorComboBox.SelectedItem; if (CursorComboBox.SelectedIndex == 0) { DesignClass.FORM_CURSOR = Cursors.Cross; } else if (CursorComboBox.SelectedIndex == 1) { DesignClass.FORM_CURSOR = Cursors.Help; } else if (CursorComboBox.SelectedIndex == 2) { DesignClass.FORM_CURSOR = Cursors.No; } else if (CursorComboBox.SelectedIndex == 3) { DesignClass.FORM_CURSOR = Cursors.NoMoveVert; } else if (CursorComboBox.SelectedIndex == 4) { DesignClass.FORM_CURSOR = Cursors.SizeNWSE; } else if (CursorComboBox.SelectedIndex == 5) { DesignClass.FORM_CURSOR = Cursors.VSplit; } else if (CursorComboBox.SelectedIndex == 6) { DesignClass.FORM_CURSOR = Cursors.WaitCursor; } MainForm.pic(this); }
private void pictureBox1_Click(object sender, EventArgs e) { DesignClass.BUTTON_BACKGROUND_IMG = ((PictureBox)sender).BackgroundImage; this.Close(); // DesignClass.BUTTON_BACKGROUND_IMG_ADRESS = ((PictureBox)sender).Tag.ToString(); MainForm.pic(this); }
private void button2_Click(object sender, EventArgs e) { ColorDialog MyDialog = new ColorDialog(); MyDialog.ShowDialog(); DesignClass.LABEL_TEXT_COLOR = MyDialog.Color; MainForm.pic(this); }
/// <summary> /// Цвет кнопок деолтный /// </summary> private void buttonColor_Click(object sender, EventArgs e) { ColorDialog MyDialog = new ColorDialog(); MyDialog.Color = DesignClass.BUTTON_COLOR; MyDialog.ShowDialog(); DesignClass.BUTTON_COLOR = MyDialog.Color; MainForm.pic(this); }
private void buttonFont_Click(object sender, EventArgs e) { if (fontDialog1.ShowDialog() != DialogResult.Cancel) { if (fontDialog1.Font.Size > 5 && fontDialog1.Font.Size < 38) { DesignClass.BUTTON_FONT = fontDialog1.Font; MainForm.pic(this); } } }
private void FormDesignForm_Load(object sender, EventArgs e) { MainForm.pic(this); //CursorComboBox.Items.AddRange(cury); CursorComboBox.Items.Clear(); CursorComboBox.Items.Add("Крестик"); CursorComboBox.Items.Add("Знак вопроса"); CursorComboBox.Items.Add("Знак стоп"); CursorComboBox.Items.Add("Стрелки с точкой"); CursorComboBox.Items.Add("Стрелки расширения окна по диагонали"); CursorComboBox.Items.Add("Стрелки расширения по ширине"); }
private void button2_Click(object sender, EventArgs e) { PicForm form = new PicForm(); form.ShowDialog(); Size pic1Size = new Size(pictureBox1.Size.Width, 0); Size pic2Size = new Size(pictureBox2.Size.Width, 0); Size s1 = new System.Drawing.Size(DesignClass.LENGTH, 0); pictureBox2.Location = pictureBox1.Location + pic1Size + s1; pictureBox3.Location = pictureBox2.Location + pic2Size + s1; MainForm.pic(this); }
private void button3_Click(object sender, EventArgs e) { try { DesignClass.BUTTON_BACKGROUND_IMG_ADRESS = textBox1.Text; pictureBox4.Load(textBox1.Text); } catch (Exception) { DesignClass.BUTTON_BACKGROUND_IMG_ADRESS = null; pictureBox4.Image = pictureBox1.Image; } DesignClass.BUTTON_BACKGROUND_IMG = pictureBox4.Image; MainForm.pic(this); }
private void Form2_Load(object sender, EventArgs e) { MainForm.pic(this); flatStyleComboBox.Text = (DesignClass.FLAT_OF_BUTTON).ToString(); comboBoxPicAlign.Text = (DesignClass.BUTTONIMAGE_ALLINE).ToString(); if (FormUniqueForm.ASSA) { this.BackColor = Color.FromArgb(123, 234, 121); this.TransparencyKey = Color.FromArgb(123, 234, 121); } else { this.BackColor = new Color(); this.TransparencyKey = new Color(); } }
private void comboBox1_SelectedIndexChanged(object sender, EventArgs e) { if (comboBoxPicAlign.SelectedIndex == 0) { DesignClass.BUTTONIMAGE_ALLINE = System.Drawing.ContentAlignment.TopLeft; } else if (comboBoxPicAlign.SelectedIndex == 1) { DesignClass.BUTTONIMAGE_ALLINE = System.Drawing.ContentAlignment.TopCenter; } else if (comboBoxPicAlign.SelectedIndex == 2) { DesignClass.BUTTONIMAGE_ALLINE = System.Drawing.ContentAlignment.TopRight; } else if (comboBoxPicAlign.SelectedIndex == 3) { DesignClass.BUTTONIMAGE_ALLINE = System.Drawing.ContentAlignment.MiddleLeft; } else if (comboBoxPicAlign.SelectedIndex == 4) { DesignClass.BUTTONIMAGE_ALLINE = System.Drawing.ContentAlignment.MiddleCenter; } else if (comboBoxPicAlign.SelectedIndex == 5) { DesignClass.BUTTONIMAGE_ALLINE = System.Drawing.ContentAlignment.MiddleRight; } else if (comboBoxPicAlign.SelectedIndex == 6) { DesignClass.BUTTONIMAGE_ALLINE = System.Drawing.ContentAlignment.BottomLeft; } else if (comboBoxPicAlign.SelectedIndex == 7) { DesignClass.BUTTONIMAGE_ALLINE = System.Drawing.ContentAlignment.BottomCenter; } else if (comboBoxPicAlign.SelectedIndex == 8) { DesignClass.BUTTONIMAGE_ALLINE = System.Drawing.ContentAlignment.BottomRight; } MainForm.pic(this); }
private void flatStyleComboBox_SelectedIndexChanged(object sender, EventArgs e) { switch (flatStyleComboBox.Text) { case "System": DesignClass.FLAT_OF_BUTTON = FlatStyle.System; break; case "Standard": DesignClass.FLAT_OF_BUTTON = FlatStyle.Standard; break; case "Popup": DesignClass.FLAT_OF_BUTTON = FlatStyle.Popup; break; case "Flat": DesignClass.FLAT_OF_BUTTON = FlatStyle.Flat; break; } MainForm.pic(this); }
private void Form2_Load(object sender, EventArgs e) { MainForm.pic(this); }
private void FormLabel_Load(object sender, EventArgs e) { MainForm.pic(this); checkBox1.Checked = DesignClass.LABEL_AUTO_SIZE; }
public FormDefaultLabel() { InitializeComponent(); MainForm.pic(this); }