Example #1
0
 public void clearDateMasini()
 {
     department_textbox.Clear();
     VIN_textbox.Clear();
     marca_textbox.Clear();
     pret_textbox.Clear();
     an_textbox.Clear();
     proprietari_textbox.Clear();
     model_textbox.Clear();
     km_textbox.Clear();
 }
Example #2
0
        private void remove_car_Click_1(object sender, EventArgs e)
        {
            string attempt = RemoveRecord.removeCarByVIN(VIN_textbox.Text);

            if (attempt.Equals("Successful"))
            {
                MessageBox.Show("Car successfully deleted from database.", "Welcome", MessageBoxButtons.OK,
                                MessageBoxIcon.Information);
                VIN_textbox.Clear();

                Logs.addCarLog("admin", " RemoveCar ", "Successful ", "VIN: " + VIN_textbox.Text);
            }
            else if (attempt.Equals("Failed"))
            {
                MessageBox.Show("Could not perform operation. VIN could not be found.", "Error",
                                MessageBoxButtons.OK, MessageBoxIcon.Error);
                VIN_textbox.Clear();
                Logs.addCarLog("admin", " RemoveCar ", "Failed ", "VIN: " + VIN_textbox.Text + " could not be found");
            }
        }