示例#1
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);
            }
        }
 private void seedAndMaterialForm_Load(object sender, EventArgs e)
 {
     try
     {
         this.comboBox1.DisplayMember          = "store";
         this.comboBox1.ValueMember            = "id";
         this.comboBox1.DataSource             = StoreMng.selectStore();
         this.bunifuCustomDataGrid1.DataSource = cat.getCategoriesInfo(comboBox1.SelectedValue.ToString());
     }
     catch
     {
     }
 }
示例#3
0
        private void CompanyProfile_Load(object sender, EventArgs e)
        {
            try
            {
                this.txtOrderID.Text = comp.getIdForCompOrder().Rows[0][0].ToString();

                this.metroComboBox1.DisplayMember = "store";
                this.metroComboBox1.ValueMember   = "id";
                this.metroComboBox1.DataSource    = StoreMng.selectStore();
            }
            catch (Exception ex)
            {
                MessageBox.Show(ex.Message);
            }
        }
示例#4
0
 private void stores_Load(object sender, EventArgs e)
 {
     this.dataGridView1.DataSource = sm.selectStore();
 }