Beispiel #1
0
 private void button3_Click(object sender, EventArgs e)
 {
     label2.Text = "";
     if (textBox1.Text != "")
     {
         long x = StockTransaction.removeEntry(Convert.ToInt32(textBox1.Text));
         if (x > 0)
         {
             label2.Text = "Transaction deleted with ID:" + x;
         }
         else
         {
             label2.Text = "Something went wrong.";
         }
     }
     else
     {
         label2.Text = "Something went wrong.";
     }
 }