Ejemplo n.º 1
0
        public SecondTestForm(Stopwatch timer, DateTime? startTime, string dateTimeFormat)
        {
            InitializeComponent();
            FormBorderStyle = FormBorderStyle.None;
            WindowState = FormWindowState.Maximized;

            EventLog.Timer = timer;
            EventLog.StartTime = startTime;
            EventLog.DateTimeFormat = dateTimeFormat;

            this.FormClosing += SecondTestForm_FormClosing;

            Contact.GenerateDefaultContacts();
            TaskWizard taskWizard = new TaskWizard();
            SeededProblems.Init(taskWizard);

            EventLog.Write("Resting period over");

            var myScreen = Screen.FromControl(this);
            //var otherScreen = Screen.AllScreens.FirstOrDefault(s => !s.Equals(myScreen))
            //               ?? myScreen;

            taskWizard.StartPosition = FormStartPosition.Manual;
            //taskWizard.Left = myScreen.WorkingArea.Left + 120;
            //taskWizard.Top = myScreen.WorkingArea.Top + 120;

            taskWizard.Left = myScreen.Bounds.Right - taskWizard.Width;
            taskWizard.Top = myScreen.Bounds.Bottom - taskWizard.Height;

            taskWizard.Show();

            MakeEmails();
            LoadEmails();
        }
Ejemplo n.º 2
0
        public TaskWizard()
        {
            Me = this;
            _hookID = SetHook(_proc);
            InitializeComponent();
            btnTaskComplete.Click += BtnTaskComplete_Click;
            btnTaskIncomplete.Click += BtnTaskIncomplete_Click;

            this.ControlBox = false;

            //Disable resizing
            /*
            this.FormBorderStyle = FormBorderStyle.FixedSingle;
            this.MaximizeBox = false;
            this.MinimizeBox = false;
            */

            taskOrder = GetScrambledTaskOrder();

            currentTaskPage = GetTaskPage(Task.None);
            this.Controls.Add(currentTaskPage);
            currentTaskPage.Show();
        }
Ejemplo n.º 3
0
        public SecondTestForm(Stopwatch timer, DateTime?startTime, string dateTimeFormat)
        {
            InitializeComponent();
            FormBorderStyle = FormBorderStyle.None;
            WindowState     = FormWindowState.Maximized;

            EventLog.Timer          = timer;
            EventLog.StartTime      = startTime;
            EventLog.DateTimeFormat = dateTimeFormat;

            this.FormClosing += SecondTestForm_FormClosing;

            Contact.GenerateDefaultContacts();
            TaskWizard taskWizard = new TaskWizard();

            SeededProblems.Init(taskWizard);

            EventLog.Write("Resting period over");

            var myScreen = Screen.FromControl(this);

            //var otherScreen = Screen.AllScreens.FirstOrDefault(s => !s.Equals(myScreen))
            //               ?? myScreen;

            taskWizard.StartPosition = FormStartPosition.Manual;
            //taskWizard.Left = myScreen.WorkingArea.Left + 120;
            //taskWizard.Top = myScreen.WorkingArea.Top + 120;

            taskWizard.Left = myScreen.Bounds.Right - taskWizard.Width;
            taskWizard.Top  = myScreen.Bounds.Bottom - taskWizard.Height;

            taskWizard.Show();

            MakeEmails();
            LoadEmails();
        }
Ejemplo n.º 4
0
        public TaskWizard()
        {
            Me      = this;
            _hookID = SetHook(_proc);
            InitializeComponent();
            btnTaskComplete.Click   += BtnTaskComplete_Click;
            btnTaskIncomplete.Click += BtnTaskIncomplete_Click;

            this.ControlBox = false;

            //Disable resizing

            /*
             * this.FormBorderStyle = FormBorderStyle.FixedSingle;
             * this.MaximizeBox = false;
             * this.MinimizeBox = false;
             */

            taskOrder = GetScrambledTaskOrder();

            currentTaskPage = GetTaskPage(Task.None);
            this.Controls.Add(currentTaskPage);
            currentTaskPage.Show();
        }
Ejemplo n.º 5
0
 public static void Init(TaskWizard tw)
 {
     tw.TaskStarted += (task) => CurrentTask = task;
 }
Ejemplo n.º 6
0
 public static void Init(TaskWizard tw)
 {
     tw.TaskStarted += (task) => CurrentTask = task;
 }