Exemplo n.º 1
0
 public Form1()
 {
     InitializeComponent();
     store           = new Store();
     item            = new Item();
     stakeholder     = new Stakeholder();
     permission      = new Permission();
     permission_Item = new Permission_Item();
 }
Exemplo n.º 2
0
        private void SupplierDGV_CellContentClick(object sender, DataGridViewCellEventArgs e)
        {
            if (SupplierDGV.CurrentRow.Index != -1)
            {
                stakeholder.Id = Convert.ToInt32(SupplierDGV.CurrentRow.Cells["Id"].Value);
                using (WarehouseDBEntities db = new WarehouseDBEntities())
                {
                    stakeholder = db.Stakeholders.Where(s => s.Id == stakeholder.Id).FirstOrDefault();

                    StakeholderNameTB.Text  = stakeholder.Name;
                    SupplierPhoneTB.Text    = stakeholder.Phone;
                    SupplierEmailTB.Text    = stakeholder.E_Mail;
                    SupplierLandLineTB.Text = stakeholder.LandLine;
                    SupplierFaxTB.Text      = stakeholder.Fax;
                    SupplierWebsiteTB.Text  = stakeholder.WebSite;
                }
            }
        }