private void xCrossWindow_FormClosing(object sender, FormClosingEventArgs e) { FormProperty formProperty = FStatic.GetForm(Forms.xCrossWindow); formProperty.Bounds = this.Bounds; formProperty.menu.Checked = false; }
private void FunctionsItemsForm_FormClosing(object sender, FormClosingEventArgs e) { FormProperty formProperty = FStatic.GetForm(Forms.FunctionList); formProperty.Bounds = this.Bounds; formProperty.menu.Checked = false; }
private void KeyBoardFormControl_FormClosing(object sender, FormClosingEventArgs e) { FormProperty formProperty = FStatic.GetForm(Forms.KeyBoard); formProperty.Bounds = this.Bounds; formProperty.menu.Checked = false; }
private void ParameterGreatScreen_FormClosing(object sender, FormClosingEventArgs e) { FormProperty formProperty = FStatic.GetForm(Forms.ParameterWindow); formProperty.Bounds = this.Bounds; formProperty.menu.Checked = false; }
private void addButton_Click(object sender, EventArgs e) { Function newFunction = new Function(mainInput.Text); if (newFunction.itsOk) { FStatic.Add(newFunction); this.Close(); } }
public KeyBoardFormControl(Main main) { InitializeComponent(); _IFstatic = main; FormProperty formProperty = FStatic.GetForm(Forms.KeyBoard); this.Bounds = formProperty.Bounds; }
public ParameterGreatScreen() { InitializeComponent(); FormProperty formProperty = FStatic.GetForm(Forms.ParameterWindow); this.Bounds = formProperty.Bounds; moveLists = false; DoRefresh(); }
public xCrossWindow(Main main) { InitializeComponent(); _IRefresh = main; FormProperty formProperty = FStatic.GetForm(Forms.xCrossWindow); this.Bounds = formProperty.Bounds; AdjustSizes(); }
public FunctionsItemsForm(Main main) { InitializeComponent(); _IRefresh = main; FormProperty formProperty = FStatic.GetForm(Forms.FunctionList); this.Bounds = formProperty.Bounds; LoadItems(); AdjustListColumnsSize(); }
public ValueOfX() { InitializeComponent(); foreach (Function f in FStatic.Functions) { mainComboBox.Items.Add(f.Text); } Function f1 = FStatic.FirstSelectedFunction(); if (f1 != null) { mainComboBox.SelectedItem = f1.Text; } }
private void calculateButton_Click(object sender, EventArgs e) { Function node = FStatic.GetFunction(mainComboBox.SelectedIndex); if (node != null) { yText.Text = ""; if (xText.Text == "") { MessageBox.Show("You didn't write in any value of x!", "Error!", MessageBoxButtons.OK, MessageBoxIcon.Error); } else { try { double x = Convert.ToDouble(xText.Text); double y = node.Y(x); NumberFormatInfo provider = new NumberFormatInfo(); provider.NaNSymbol = "-"; provider.CurrencyDecimalDigits = 6; yText.Text = Convert.ToString(y, provider); } catch { MessageBox.Show("x = ???!!!", "Error!", MessageBoxButtons.OK, MessageBoxIcon.Error); } } } else { MessageBox.Show("No function is selected!", "Error!", MessageBoxButtons.OK, MessageBoxIcon.Error); } }
public AddFunctionForm() { InitializeComponent(); label1.Text = FStatic.NextName() + " : y ="; }
private void addToolStripMenuItem_Click(object sender, EventArgs e) { FStatic.AddFunction_Form(); DoRefresh(RefreshMode.FunctionList); }
private void deleteToolStripMenuItem_Click(object sender, EventArgs e) { FStatic.RemoveSelectedFunctions(); DoRefresh(RefreshMode.FunctionList); }
private void colorToolStripMenuItem_Click(object sender, EventArgs e) { FStatic.ColorDialogOpen(); DoRefresh(RefreshMode.Color); }
private void settingsButton_Click(object sender, EventArgs e) { FStatic.FunctionSettings_Form(); DoRefresh(RefreshMode.FunctionList); }
private void selectAllToolStripMenuItem_Click(object sender, EventArgs e) { FStatic.SelectAll(); DoRefresh(RefreshMode.Select); }