Exemplo n.º 1
0
 public insSeedsAndMaterial()
 {
     InitializeComponent();
     this.comboBox1.DisplayMember = "cat_name";
     this.comboBox1.ValueMember   = "cat_id";
     this.comboBox1.DataSource    = cat.getCategoriesInfo();
 }
Exemplo n.º 2
0
        private void DataEntry_Load(object sender, EventArgs e)
        {
            try
            {
                this.ComboBox2Store.DisplayMember = "store";
                this.ComboBox2Store.ValueMember   = "id";
                this.ComboBox2Store.DataSource    = StoreMng.selectStore();

                this.comboBox1.DisplayMember = "cat_name";
                this.comboBox1.ValueMember   = "cat_id";
                this.comboBox1.DataSource    = cat.getCategoriesInfo(ComboBox2Store.SelectedValue.ToString());

                this.ComboBoxCatStock.DisplayMember = "store";
                this.ComboBoxCatStock.ValueMember   = "id";
                this.ComboBoxCatStock.DataSource    = StoreMng.selectStore();
            }
            catch (Exception ex)
            {
                MessageBox.Show(ex.Message);
            }
        }
Exemplo n.º 3
0
 private void bntAdd_Click(object sender, EventArgs e)
 {
     PL.insSeedsAndMaterial frm = new insSeedsAndMaterial();
     frm.ShowDialog();
     this.bunifuCustomDataGrid1.DataSource = cat.getCategoriesInfo();
 }
Exemplo n.º 4
0
 public categoriesQue()
 {
     InitializeComponent();
     this.dataGridView1.DataSource = cats.getCategoriesInfo("1");
 }
Exemplo n.º 5
0
 private void bntAdd_Click(object sender, EventArgs e)
 {
     PL.DataEntry frm = new DataEntry();
     frm.ShowDialog();
     this.bunifuCustomDataGrid1.DataSource = cat.getCategoriesInfo("1");
 }