示例#1
0
 private void saleManualBtn_Click(object sender, EventArgs e)
 {
     NumericInputDialog nid = new NumericInputDialog(this);
     saleValue = (int) nid.getResult();
     saleName = "Custom sale";
     this.Dispose();
 }
示例#2
0
 private void goodManualBtn_Click(object sender, EventArgs e)
 {
     NumericInputDialog nid = new NumericInputDialog(this);
     DataTypes.Good goodey = db.getItemById((int)nid.getResult());
     if (goodey != null)
     {
         // DO MAGIC HERE AS WELL
         MessageBox.Show(goodey.name);
         itemClickCallback(goodey.id);
     }
     else MessageBox.Show("Item not found!");
 }