private void AddWorkFlowPomodorBtn(object sender, RoutedEventArgs e) { CurrentWorkFlow = WorkFlowClass.GetWorkFlow(TypeOfWorkFlow.Pomodor, Convert.ToInt32(Settings.PomodorSize)); Worker.StartWorking(CurrentWorkFlow); LeftTimeIndicator.DataContext = CurrentWorkFlow; KeysActivityIndicator.DataContext = CurrentWorkFlow; MouseActivityIndicator.DataContext = CurrentWorkFlow; }
public MainWindow() { InitializeComponent(); User = UserClass.GetInstance(); Settings = SettingsClass.GetInstance(); Loger = new LogerClass(); KeyboardActivity.SetLog(Loger.LogKeyItems); MouseActivity.SetLog(Loger.LogMouseItems); KeyboardHook = new KeyboardHookClass(Loger); MouseHookClass = new MouseHookClass(Loger); Statistic = new StatisticClass(Loger); Worker = new WorkerClass(User, Loger); RemoteServer = new RemoteServerClass(); CurrentWorkFlow = WorkFlowClass.GetWorkFlow(TypeOfWorkFlow.Custom, Convert.ToInt32(Settings.PomodorSize)); PrimePanel.DataContext = Statistic.CommonPrimeWindowProperty; LeftTimeIndicator.DataContext = CurrentWorkFlow; KeysActivityIndicator.DataContext = CurrentWorkFlow; MouseActivityIndicator.DataContext = CurrentWorkFlow; KeyboardHook.StartCapture(); MouseHookClass.StartCapture(); }