Exemplo n.º 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;
 }
Exemplo n.º 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;
 }
Exemplo n.º 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;
 }
Exemplo n.º 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;
 }
Exemplo n.º 5
0
        public MaintainUsers(LawnProMainWindow owner)
        {
            InitializeComponent();
            _owner = owner;
            txtFirstName.Focus();
            MoveButtons(btnAdd, 0);

            lblTitle.Content = "User";
            this.Title       = "Maintain User";
        }
Exemplo n.º 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";
        }
Exemplo n.º 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;
 }
Exemplo n.º 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";
 }
Exemplo n.º 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";
        }
Exemplo n.º 11
0
        public MaintainAppointments(LawnProMainWindow owner)
        {
            InitializeComponent();
            _owner = owner;
            MoveButtons(btnAdd, 0);
            LoadScreen();
            cboCustomer.Focus();

            lblTitle.Content = "Appointment";
            this.Title       = "Maintain Appointment";
        }
Exemplo n.º 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();
        }
Exemplo n.º 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";
        }
Exemplo n.º 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";
        }
Exemplo n.º 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";
        }
Exemplo n.º 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";
        }
Exemplo n.º 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";
        }
Exemplo n.º 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();
        }
Exemplo n.º 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";
        }