public AddEmployee(MainWindow p, OleDbConnection c)
 {
     cn = c;
     Parent = p;
     InitializeComponent();
     aec = new AddEmployeeControl(cn);
 }
Beispiel #2
0
 public Remove(MainWindow p, OleDbConnection c)
 {
     cn = c;
     Parent = p;
     D = new Delete(cn);
     InitializeComponent();
 }
 public AddTruck(MainWindow p, OleDbConnection c, bool u)
 {
     cn = c;
     Parent = p;
     used = u;
     InitializeComponent();
 }
 public AddCustomer(MainWindow p, OleDbConnection c)
 {
     cn = c;
     Parent = p;
     InitializeComponent();
     acc = new AddCustomerControl(cn);
 }
Beispiel #5
0
        public Mod(MainWindow p, OleDbConnection c)
        {
            cn = c;
            MC = new ModClass(cn);
            InitializeComponent();
            PersonOther1Box.Visibility = Visibility.Collapsed;
            PersonOther1Label.Visibility = Visibility.Collapsed;
            PersonOther2Box.Visibility = Visibility.Collapsed;
            PersonOther2Label.Visibility = Visibility.Collapsed;
            PersonOther3Box.Visibility = Visibility.Collapsed;
            PersonOther3Label.Visibility = Visibility.Collapsed;

            VehicleOther1Box.Visibility = Visibility.Collapsed;
            VehicleOther1Label.Visibility = Visibility.Collapsed;

            PartOther1Box.Visibility = Visibility.Collapsed;
            PartOther1Label.Visibility = Visibility.Collapsed;
            PartOther2Box.Visibility = Visibility.Collapsed;
            PartOther2Label.Visibility = Visibility.Collapsed;
        }
Beispiel #6
0
        public Search(MainWindow p, OleDbConnection c, string t)
        {
            cn = c;
            Parent = p;
            type = t;
            InitializeComponent();
            ResponseBlock.Visibility = Visibility.Collapsed;
            ResponseBlock2.Visibility = Visibility.Collapsed;

            if (type.CompareTo("Person") == 0)
            {
                StatementBlock.Text = "Enter ID# to Find a Specific Person";
                Parameter1.Visibility = Visibility.Collapsed; Parameter2.Visibility = Visibility.Collapsed;
                label1.Content = ""; label2.Content = ""; label3.Content = "";
                NameCheck.Visibility = Visibility.Visible; IDCheck.Visibility = Visibility.Visible;
            }
            else if (type.CompareTo("Vehicle") == 0)
            {
                StatementBlock.Text = "Enter VIN to Find a Specific Vehicle\nVehicle History Reports are Included with Used Vehicles";
                Parameter1.Visibility = Visibility.Collapsed; Parameter2.Visibility = Visibility.Collapsed;
                label1.Content = ""; label2.Content = ""; label3.Content = "VIN";
                NameCheck.Visibility = Visibility.Collapsed; IDCheck.Visibility = Visibility.Collapsed;
            }
            else if (type.CompareTo("Part") == 0)
            {
                StatementBlock.Text = "Enter Serial# to Find a Specific Part";
                Parameter1.Visibility = Visibility.Collapsed; Parameter2.Visibility = Visibility.Collapsed;
                label1.Content = ""; label2.Content = ""; label3.Content = "Serial Number";
                NameCheck.Visibility = Visibility.Collapsed; IDCheck.Visibility = Visibility.Collapsed;
            }
            else
            {
                StatementBlock.Text = "Enter Employee and Customer ID#s and VIN to Find a Specific Sale";
                label1.Content = "Employee ID"; label2.Content = "Customer ID"; label3.Content = "VIN";
                NameCheck.Visibility = Visibility.Collapsed; IDCheck.Visibility = Visibility.Collapsed;
            }
        }
 public VehicleHistoryReport(MainWindow p, OleDbConnection c)
 {
     cn = c;
     Parent = p;
     InitializeComponent();
 }
 public AddEngine(MainWindow p, OleDbConnection c)
 {
     cn = c;
     Parent = p;
     InitializeComponent();
 }