예제 #1
0
 public DeleteWindow(ServiceType serviceType, object value, LawnProMainWindow owner)
 {
     InitializeComponent();
     dataToDelete    = serviceType.Id;
     valueToDelete   = value;
     _owner          = owner;
     lblItem.Content = value + "?";
     lblData.Content = serviceType.Description;
 }
예제 #2
0
 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;
 }
예제 #3
0
 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;
 }
예제 #4
0
 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;
 }
예제 #5
0
        public MaintainUsers(LawnProMainWindow owner)
        {
            InitializeComponent();
            _owner = owner;
            txtFirstName.Focus();
            MoveButtons(btnAdd, 0);

            lblTitle.Content = "User";
            this.Title       = "Maintain User";
        }
예제 #6
0
 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";
        }
예제 #8
0
 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;
 }
예제 #9
0
 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";
 }
예제 #10
0
        public MaintainUsers(LawnProMainWindow owner, User user)
        {
            InitializeComponent();
            _owner = owner;
            MoveButtons(btnUpdate, 0);
            FillTextBoxes(user);
            userId = user.Id;

            lblTitle.Content = "User";
            this.Title       = "Maintain User";
        }
예제 #11
0
        public MaintainAppointments(LawnProMainWindow owner)
        {
            InitializeComponent();
            _owner = owner;
            MoveButtons(btnAdd, 0);
            LoadScreen();
            cboCustomer.Focus();

            lblTitle.Content = "Appointment";
            this.Title       = "Maintain Appointment";
        }
예제 #12
0
        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();
        }
예제 #13
0
 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";
        }
예제 #15
0
        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";
        }
예제 #16
0
        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";
        }
예제 #18
0
        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";
        }
예제 #19
0
        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";
        }
예제 #20
0
        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();
        }
예제 #21
0
        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";
        }