Exemplo n.º 1
0
        public void Load_BasicDetails()
        {
            try
            {
                cmbMaterialUnit.DataSource = objUnitDL.GetDataView();
                cmbMaterialType.DataSource = objMaterialTypeDL.GetDataView();
                cmbMaterialForm.DataSource = objFormDL.GetDataView();


                cmbFromMonth.SelectedIndex = 0;
                cmbToMonth.SelectedIndex   = 0;

                cmbMainType.SelectedIndex = 0;
            }
            catch (Exception ex)
            {
                MessageBox.Show(this, ex.Message, "Error", MessageBoxButtons.OK, MessageBoxIcon.Error);
            }
        }
Exemplo n.º 2
0
        //------------------ Form Methods ----------------------

        public void MaterialLoad()
        {
            try
            {
                cmbMaterialUnit.DataSource = objUnitDL.GetDataView();
                cmbMaterialType.DataSource = objMaterialTypeDL.GetDataView();
                cmbMaterialForm.DataSource = objFormDL.GetDataView();

                bindCategory.DataSource    = objMatCatDL.GetDataView();
                listBox1.DataSource        = bindCategory;
                cmbCatergory.DataSource    = objMatCatDL.GetDataView();
                cmbFromMonth.SelectedIndex = 0;
                cmbToMonth.SelectedIndex   = 0;
                cmbCatergory.SelectedIndex = 0;

                listBox1.SelectedIndex    = 0;
                cmbMainType.SelectedIndex = 0;
                //rbRaw.Checked = true;
            }
            catch (Exception ex)
            {
                MessageBox.Show(this, ex.Message, "Error", MessageBoxButtons.OK, MessageBoxIcon.Error);
            }
        }