예제 #1
0
 private void CleanForm()
 {
     ActionControl.ClearTextBoxes(txtName);
     cbSchedule.SelectedIndex = 0;
     cbStatus.SelectedIndex   = 0;
     numericUpDown1.Value     = 0;
     mTxtIdentification.Text  = null;
 }
예제 #2
0
        private void CleanForm()
        {
            ActionControl.ClearTextBoxes(txtDescription);
            cbStatus.SelectedIndex = 0;

            if (cbBrand.Items.Count > 0)
            {
                cbBrand.SelectedIndex = 0;
            }
            if (cbType.Items.Count > 0)
            {
                cbType.SelectedIndex = 0;
            }
        }
예제 #3
0
        private void CleanForm()
        {
            TextBox[] controls = { txtDescription, txtChassis, txtLicense, txtMotor };
            ActionControl.ClearTextBoxes(controls);
            cbStatus.SelectedIndex = 0;

            if (cbModel.Items.Count > 0)
            {
                cbModel.SelectedIndex = 0;
            }
            if (cbFuel.Items.Count > 0)
            {
                cbFuel.SelectedIndex = 0;
            }
        }
예제 #4
0
        private void CleanForm()
        {
            ActionControl.ClearTextBoxes(txtDescription);
            ActionControl.ClearTextBoxes(txtChassis);
            ActionControl.ClearTextBoxes(txtLicense);
            ActionControl.ClearTextBoxes(txtMotor);
            cbStatus.SelectedIndex = 0;

            if (cbModel.Items.Count > 0)
            {
                cbModel.SelectedIndex = 0;
            }
            if (cbFuel.Items.Count > 0)
            {
                cbFuel.SelectedIndex = 0;
            }
        }
 private void CleanForm()
 {
     ActionControl.ClearTextBoxes(commentTxt);
     cbStatus.SelectedIndex = 0;
     nPriceByDay.Value      = 0;
     nRentDays.Value        = 0;
     dpRentDate.Value       = DateTime.Today;
     if (cbCustomer.Items.Count > 0)
     {
         cbCustomer.SelectedIndex = 0;
     }
     if (cbEmployee.Items.Count > 0)
     {
         cbEmployee.SelectedIndex = 0;
     }
     if (cbVehicle.Items.Count > 0)
     {
         cbVehicle.SelectedIndex = 0;
     }
     if (cbStatus.Items.Count > 0)
     {
         cbStatus.SelectedIndex = 0;
     }
 }
예제 #6
0
 private void CleanForm()
 {
     ActionControl.ClearTextBoxes(txtDescription);
     cbStatus.SelectedIndex = 0;
 }
예제 #7
0
 private void CleanForm()
 {
     ActionControl.ClearTextBoxes(commentTxt);
     cbStatus.SelectedIndex = 0;
     dpDate.Value           = DateTime.Today;
 }