コード例 #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;
 }
コード例 #7
0
        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();
 }
コード例 #14
0
        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";
        }
コード例 #17
0
        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";
        }