private void ParceAndPaint(string value) { DesignTypes designType = Utils.ParseEnum(value); actSettings.currentDesign = designType; MyPaint(DesignFactory.Create(designType)); }
private void btnReduceForm_Click(object sender, EventArgs e) { Hide(); reducedForm = new ReducedMainForm(); reducedForm.Owner = this; Rectangle res = Screen.PrimaryScreen.Bounds; reducedForm.Location = new Point(res.Width - reducedForm.Size.Width, res.Height - reducedForm.Size.Height - 50); reducedForm.MyPaint(DesignFactory.Create(actSettings.currentDesign)); reducedForm.Show(); }
private void ApplySettings() { comBoxWorkDuration.Text = actSettings.workDuration.ToString(); comBoxBreakDuration.Text = actSettings.breakDuration.ToString(); chBoxShowMessage.Checked = actSettings.showMessage; chBoxPlaySound.Checked = actSettings.playSound; chBoxDisableMouse.Checked = actSettings.disableMouse; chBoxDisableKeyboard.Checked = actSettings.disableKeyboard; trackActiveToolStripMenuItem.Checked = actSettings.trackActive; trackBlackListToolStripMenuItem.Checked = actSettings.trackBlackList; MyPaint(DesignFactory.Create(actSettings.currentDesign)); }