Esempio n. 1
0
 private void Historia_Load(object sender, EventArgs e)
 {
     HistoryTxt.Clear();
     foreach (var item in Common.history)
     {
         HistoryTxt.Text += item + "\n";
     }
 }
Esempio n. 2
0
 private void ClearHistory_CheckedChanged(object sender, EventArgs e)
 {
     if (ClearHistory.Checked == true)
     {
         DialogResult dr = MessageBox.Show("Czy jesteś pewien że chcesz wyczyścić historię?", "Wyczyść historię", MessageBoxButtons.OKCancel, MessageBoxIcon.Question);
         {
             if (dr == DialogResult.OK)
             {
                 HistoryTxt.Clear();
                 Common.history.Clear();
             }
         }
         ClearHistory.Checked = false;
     }
 }