Exemplo n.º 1
0
        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();
        }
Exemplo n.º 2
0
        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;
        }
Exemplo n.º 3
0
        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;
        }
Exemplo n.º 4
0
 public WINDOW_ADD(WINDOW_MAIN _window)
 {
     InitializeComponent();
     window = _window;
 }