Beispiel #1
0
 public SellItemForm(UInt32 itemID, UInt32 userID, ItemForm itemForm)
 {
     InitializeComponent();
     ItemID    = itemID;
     UserID    = userID;
     ItemForm  = itemForm;
     ConString = ConfigurationManager.ConnectionStrings["ConString"].ConnectionString;
     Con       = new MySqlConnection(ConString);
 }
Beispiel #2
0
 private void SearchInventoryData_CellContentClick(object sender, DataGridViewCellEventArgs e)
 {
     if (e.ColumnIndex == 2)
     {
         UInt32   itemID   = Convert.ToUInt32(SearchInventoryData.Rows[e.RowIndex].Cells[0].Value);
         ItemForm itemForm = new ItemForm(UserID, itemID);
         itemForm.Show();
     }
 }