private void History(object sender, EventArgs e) { var hisForm = new History(); foreach (var item in calc.History) { hisForm.HistoryLog += item; } hisForm.Show(); }
private void MenuItem_Click(object sender, RoutedEventArgs e) { History history = new History(); history.Show(); }
private bool OperacjeMenu(string Operation) { switch (Operation) { case "∴": { if (!parentMenuButton.Visible) { parentMenuButton.Visible = true; } else { parentMenuButton.Visible = false; } return(true); } case ",": { if (parentTextBox1.Text != "" && parentTextBox1.Text.Length < 9) { parentTextBox1.Text = parentTextBox1.Text.ToString() + ","; } return(true); } case "<x": { if (parentTextBox1.Text.Length > 0) { parentTextBox1.Text = parentTextBox1.Text.Substring(0, parentTextBox1.Text.Length - 1); } return(true); } case "C": { aktualizacja("softclear"); return(true); } case "CE": { aktualizacja("hardclear"); return(true); } case "History": { History history = new History(); history.historia = operacje.Split(' '); history.show(); history.Show(); return(true); } default: { return(false); } } }