public DeleteWindow(ServiceType serviceType, object value, LawnProMainWindow owner) { InitializeComponent(); dataToDelete = serviceType.Id; valueToDelete = value; _owner = owner; lblItem.Content = value + "?"; lblData.Content = serviceType.Description; }
public DeleteWindow(Appointment appointment, object value, LawnProMainWindow owner) { InitializeComponent(); dataToDelete = appointment.Id; valueToDelete = value; _owner = owner; lblItem.Content = value + "?"; lblData.Content = "For " + appointment.CustomerFullName + " on " + "\n" + appointment.FullAddress + " at " + appointment.StartDateTime; }
public DeleteWindow(Invoice invoice, object value, LawnProMainWindow owner) { InitializeComponent(); dataToDelete = invoice.Id; valueToDelete = value; _owner = owner; lblItem.Content = value + "?"; lblData.Content = "For " + invoice.CustomerFullName + " From " + "\n" + invoice.ServiceDate + ", status is " + invoice.Status; }
public DeleteWindow(User user, object value, LawnProMainWindow owner) { InitializeComponent(); dataToDelete = user.Id; valueToDelete = value; _owner = owner; lblItem.Content = value + "?"; lblData.Content = user.FullName + "With the Username of " + "\n" + user.UserName; }
public MaintainUsers(LawnProMainWindow owner) { InitializeComponent(); _owner = owner; txtFirstName.Focus(); MoveButtons(btnAdd, 0); lblTitle.Content = "User"; this.Title = "Maintain User"; }
public DeleteWindow(Employee employee, object value, LawnProMainWindow owner) { InitializeComponent(); dataToDelete = employee.Id; userIdToDelete = employee.UserId; valueToDelete = value; _owner = owner; lblItem.Content = value + "?"; lblData.Content = employee.FullName + ", " + "\n" + employee.FullAddress; }
public MaintainServiceTypes(LawnProMainWindow owner) { InitializeComponent(); _owner = owner; MoveButtons(btnAdd, 0); txtDescription.Focus(); lblTitle.Content = "Service Type"; this.Title = "Maintain Service Type"; }
public DeleteWindow(Customer customer, object value, LawnProMainWindow owner) { InitializeComponent(); dataToDelete = customer.Id; userIdToDelete = customer.UserId; valueToDelete = value; _owner = owner; lblItem.Content = value + "?"; lblData.Content = customer.FullName + ", " + "\n" + customer.FullAddress; }
public MaintainUsers(LawnProMainWindow owner, User user, bool magnify) { InitializeComponent(); _owner = owner; btnAdd.Visibility = Visibility.Hidden; btnUpdate.Visibility = Visibility.Hidden; FillTextBoxes(user); JustMagnify(); lblTitle.Content = "Lawn Pro : User"; this.Title = "Inspect User"; }
public MaintainUsers(LawnProMainWindow owner, User user) { InitializeComponent(); _owner = owner; MoveButtons(btnUpdate, 0); FillTextBoxes(user); userId = user.Id; lblTitle.Content = "User"; this.Title = "Maintain User"; }
public MaintainAppointments(LawnProMainWindow owner) { InitializeComponent(); _owner = owner; MoveButtons(btnAdd, 0); LoadScreen(); cboCustomer.Focus(); lblTitle.Content = "Appointment"; this.Title = "Maintain Appointment"; }
public MaintainCustomersEmployees(ScreenMode screenmode, LawnProMainWindow owner) { InitializeComponent(); screenMode = screenmode; _owner = owner; MoveButtons(btnAdd, 0); LoadScreen(); txtFirstName.Focus(); lblTitle.Content = screenMode.ToString(); this.Title = "Maintain " + screenMode.ToString(); }
public MaintainCustomersEmployees(ScreenMode screenmode, LawnProMainWindow owner, Customer passedcustomer) { InitializeComponent(); screenMode = screenmode; _owner = owner; LoadScreen(); MoveButtons(btnUpdate, 0); FillTextBoxes(passedcustomer); customerId = passedcustomer.Id; lblTitle.Content = screenMode.ToString(); this.Title = "Maintain " + screenMode.ToString(); }
public MaintainServiceTypes(LawnProMainWindow owner, ServiceType serviceType, bool maginfy) { InitializeComponent(); _owner = owner; btnAdd.Visibility = Visibility.Hidden; btnUpdate.Visibility = Visibility.Hidden; FillTextBoxes(serviceType); JustMagnify(); lblTitle.Content = "Service Type"; this.Title = "Inspect Service Type"; }
public MaintainAppointments(LawnProMainWindow owner, Appointment appointment, bool magnify) { InitializeComponent(); _owner = owner; btnAdd.Visibility = Visibility.Hidden; LoadScreen(); FillTextBoxes(appointment); JustMagnify(); lblTitle.Content = "Appointment"; this.Title = "Inspect Appointment"; }
public MaintainInvoices(LawnProMainWindow owner) { InitializeComponent(); _owner = owner; MoveButtons(btnAdd, 0); LoadScreen(); dpStartTime.Focus(); lblStatus.Content = ""; lblTitle.Content = "Invoice"; this.Title = "Maintain Invoice"; }
public MaintainServiceTypes(LawnProMainWindow owner, ServiceType serviceType) { InitializeComponent(); _owner = owner; update = true; MoveButtons(btnUpdate, 0); FillTextBoxes(serviceType); serviceTypeId = serviceType.Id; lblTitle.Content = "Service Type"; this.Title = "Maintain Service Type"; }
public MaintainInvoices(LawnProMainWindow owner, Invoice invoice, bool magnify) { InitializeComponent(); _owner = owner; btnAdd.Visibility = Visibility.Hidden; btnUpdate.Visibility = Visibility.Hidden; LoadScreen(); FillInformation(invoice); JustMagnify(); lblStatus.Content = ""; lblTitle.Content = "Invoice"; this.Title = "Inspect Invoice"; }
public MaintainInvoices(LawnProMainWindow owner, Invoice invoice) { InitializeComponent(); _owner = owner; MoveButtons(btnUpdate, 0); LoadScreen(); FillInformation(invoice); invoiceId = invoice.Id; customerId = invoice.CustomerId; lblStatus.Content = ""; lblTitle.Content = "Invoice"; this.Title = "Maintain Invoice"; }
public MaintainCustomersEmployees(ScreenMode screenmode, LawnProMainWindow owner, Employee employee, bool magnify) { InitializeComponent(); screenMode = screenmode; _owner = owner; btnAdd.Visibility = Visibility.Hidden; btnUpdate.Visibility = Visibility.Hidden; LoadScreen(); FillTextBoxes(employee); JustMagnify(); employeeId = employee.Id; lblTitle.Content = screenMode.ToString(); this.Title = "Inspect " + screenMode.ToString(); }
public MaintainAppointments(LawnProMainWindow owner, Appointment appointment) { InitializeComponent(); _owner = owner; MoveButtons(btnUpdate, 0); LoadScreen(); FillTextBoxes(appointment); if (appointment.EmployeeId.HasValue) { employeeId = (Guid)appointment.EmployeeId; } serviceId = appointment.ServiceId; customerId = appointment.CustomerId; appointmentId = appointment.Id; lblTitle.Content = "Appointment"; this.Title = "Maintain Appointment"; }