Пример #1
0
 public insSeedsAndMaterial()
 {
     InitializeComponent();
     this.comboBox1.DisplayMember = "cat_name";
     this.comboBox1.ValueMember   = "cat_id";
     this.comboBox1.DataSource    = cat.getCategoriesInfo();
 }
Пример #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);
            }
        }
Пример #3
0
 private void bntAdd_Click(object sender, EventArgs e)
 {
     PL.insSeedsAndMaterial frm = new insSeedsAndMaterial();
     frm.ShowDialog();
     this.bunifuCustomDataGrid1.DataSource = cat.getCategoriesInfo();
 }
Пример #4
0
 public categoriesQue()
 {
     InitializeComponent();
     this.dataGridView1.DataSource = cats.getCategoriesInfo("1");
 }
Пример #5
0
 private void bntAdd_Click(object sender, EventArgs e)
 {
     PL.DataEntry frm = new DataEntry();
     frm.ShowDialog();
     this.bunifuCustomDataGrid1.DataSource = cat.getCategoriesInfo("1");
 }