示例#1
0
        public frmNewProduct()
        {
            InitializeComponent();
            dbEntity = new DB1708FEntities();

            dataGridView1.DataSource = dbEntity.Products.ToList <Product>();
        }
示例#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";
        }
示例#3
0
 public frmRegesteruser()
 {
     InitializeComponent();
     dbEntity = new DB1708FEntities();
 }
示例#4
0
文件: Form1.cs 项目: rizwanalvi/1708F
 public Form1()
 {
     InitializeComponent();
     dbEnty = new DB1708FEntities();
 }
示例#5
0
 public frmAddProduct()
 {
     InitializeComponent();
     dbEntity = new DB1708FEntities();
 }