Esempio n. 1
0
        public frmNewProduct()
        {
            InitializeComponent();
            dbEntity = new DB1708FEntities();

            dataGridView1.DataSource = dbEntity.Products.ToList <Product>();
        }
Esempio n. 2
0
        public frmAddProduct(Product pd)
        {
            InitializeComponent();
            dbEntity = new DB1708FEntities();

            textBox1.Text = pd.PRO_NAME;
            textBox2.Text = pd.BRAND;
            textBox3.Text = pd.PRICE.ToString();
            textBox4.Text = pd.QUANTITY.ToString();
            //  comboBox1.SelectedItem = pd.Category.CAT_NAME.ToString();
            label6.Text  = pd.PROID.ToString();
            button1.Text = "Update";
            this.Text    = "Update Records";
        }
Esempio n. 3
0
 public frmRegesteruser()
 {
     InitializeComponent();
     dbEntity = new DB1708FEntities();
 }
Esempio n. 4
0
 public Form1()
 {
     InitializeComponent();
     dbEnty = new DB1708FEntities();
 }
Esempio n. 5
0
 public frmAddProduct()
 {
     InitializeComponent();
     dbEntity = new DB1708FEntities();
 }