public WINDOW() { InitializeComponent(); textBox1.CharacterCasing = CharacterCasing.Upper; textBox2.CharacterCasing = CharacterCasing.Upper; textBox3.CharacterCasing = CharacterCasing.Upper; textBox4.CharacterCasing = CharacterCasing.Upper; textBox5.CharacterCasing = CharacterCasing.Upper; controller = new Activate(); window = new WINDOW_MAIN(); }
public WINDOW_EDIT(WINDOW_MAIN Window) { InitializeComponent(); window = Window; db = new Database(); Customers result = db.SELECT_ONE(window.Id); ID = result.Id; ACTIVE = result.IsActive; textBox1.Text = result.Name; textBox2.Text = result.Surname; maskedTextBox1.Text = result.Phone; textBox3.Text = result.Model; dateTimePicker1.Value = result.Date; textBox4.Text = result.Description; textBox5.Text = result.Description_Long; }
public WINDOW_VIEW(WINDOW_MAIN _window) { InitializeComponent(); window = _window; db = new Database(); var result = db.SELECT_ONE(window.Id); textBox1.Text = result.Name; textBox2.Text = result.Surname; maskedTextBox1.Text = result.Phone; textBox3.Text = result.Model; dateTimePicker1.Value = result.Date; textBox4.Text = result.Description; textBox5.Text = result.Description_Long; }
public WINDOW_ADD(WINDOW_MAIN _window) { InitializeComponent(); window = _window; }