Esempio n. 1
0
        private void LoadRecentPurchases(int id)
        {
            RecentPurchasesForm form = new RecentPurchasesForm();

            form.AutoPartDetailId = id;
            form.Show();
        }
Esempio n. 2
0
 private void SelectedPartNumberTextbox_KeyUp(object sender, KeyEventArgs e)
 {
     if (this.PartNumberId != 0)
     {
         if (e.KeyCode == Keys.F11)
         {
             RecentPurchasesForm form = new RecentPurchasesForm();
             form.AutoPartDetailId = this.PartNumberId;
             form.SupplierName     = this.CustomerName;
             form.Show();
         }
         else if (e.KeyCode == Keys.F12)
         {
             RecentSalesForm form = new RecentSalesForm();
             form.AutoPartDetailId = this.PartNumberId;
             form.CustomerName     = this.CustomerName;
             form.Show();
         }
     }
 }