Example #1
0
        private bool DoClockIn(Employee employee)
        {
            PosDialogWindow        window  = EmployeeClockInControl.CreateInDefaultWindow(employee);
            EmployeeClockInControl control = window.DockedControl as EmployeeClockInControl;

            if (control.ActiveJob == null)
            {
                PosDialogWindow.ShowDialog(Types.Strings.LoginWarningJobs, Types.Strings.LoginError);
                return(false); // Block login when moved to LoginControl
            }

            window.ShowDialog(ParentWindow);
            return(!window.ClosedByUser);
        }
Example #2
0
        public static PosDialogWindow CreateInDefaultWindow(Employee employee)
        {
            EmployeeClockInControl control = new EmployeeClockInControl(employee);

            return(new PosDialogWindow(control, Strings.ClockIn, 545, 420));
        }