Ejemplo n.º 1
0
 private void AddAsapuwa(ComboBox combo)
 {
     using (Asapuwa ut = new Asapuwa(true))
     {
         ut.BindToCombo(combo);
     }
 }
Ejemplo n.º 2
0
        private void frmChangeRequest_Load(object sender, EventArgs e)
        {
            using (ChangeList cLIst = new ChangeList(true))
            {
                cLIst.BindToCombo(cmbChangeList);
            }

            using (BikkuInfo b = new BikkuInfo(true))
            {
                b.BindToComboNameSeparate(cmbName);
                cmbName.SelectedIndex = -1;
            }

            using (Asapuwa a = new Asapuwa(true))
            {
                a.BindToCombo(new ComboBox[] { requestAsapuwa1, requestAsapuwa2, requestAsapuwa3 });
            }

            finishLoadData = true;

            refreshData();
        }
Ejemplo n.º 3
0
        private void frmChangeList_Load(object sender, EventArgs e)
        {
            int maxNameLength = 0;



            using (BikkuInfo bInfo = new BikkuInfo(true))
            {
                bhikkuList = bInfo.SelectAllDictionary(ref maxNameLength);
                bInfo.BindToComboNameSeparate(nameOfAssumedAtRobinCombo);
            }



            bhikkuNamelistPanel = createBhikkuPanel();



            AddBhikkLabels((int)(maxNameLength * 11));

            using (Asapuwa asp = new Asapuwa(true))
            {
                asapuwaList = asp.SelectAllDictionary(ref maxNameLength);
                asp.BindToCombo(asapuHistrAsapu);
            }

            AddAsapuListRclick((int)(maxNameLength * 8));



            this.WindowState = FormWindowState.Maximized;
            this.nameOfAssumedAtRobinCombo.SelectedValueChanged += new System.EventHandler(this.nameOfAssumedAtRobinCombo_SelectedValueChanged);

            label5.BackColor = upasampadaountLb.BackColor = upasampadaChangeCountLbl.BackColor = upasampadaRemainCountLbl.BackColor = Utility.GetBhikkuLabelColor(DBCore.BhikkuType.Upasampada);
            label6.BackColor = samaneraCountLbl.BackColor = samaneraChangeCountLbl.BackColor = samaneraRemainCountLbl.BackColor = Utility.GetBhikkuLabelColor(DBCore.BhikkuType.Samanera);
        }
Ejemplo n.º 4
0
        private void RefreshForm()
        {
            try
            {
                // recidence
                using (Asapuwa asapuwa = new Asapuwa(true))
                {
                    asapuwa.BindToCombo(templaResidenceCombo);
                    asapuwa.BindToCombo(asapuHistrAsapu);
                }
                templaResidenceCombo.SelectedIndex = -1;
                asapuHistrAsapu.SelectedIndex      = -1;

                // robing
                using (Asapuwa asapuwa = new Asapuwa(true))
                {
                    asapuwa.BindToComboHeldUpasampada(templaRobingTookCombo);
                }
                templaRobingTookCombo.SelectedIndex = -1;


                // upasampanna
                using (Asapuwa asapuwa = new Asapuwa(true))
                {
                    asapuwa.BindToComboHeldUpasampada(upasampannaPlaceComboBoxEx);
                }
                upasampannaPlaceComboBoxEx.SelectedIndex = -1;

                // Upadya thero
                using (BikkuInfo bInfo = new BikkuInfo(true))
                {
                    bInfo.BindToComboUpadyaThero(nameofUpadyaComboBoxEx);
                }
                nameofUpadyaComboBoxEx.SelectedIndex = -1;

                // Tutor thero
                using (BikkuInfo bInfo = new BikkuInfo(true))
                {
                    bInfo.BindToComboUpadyaThero(nameOfRobingTutorCombo);
                }
                nameOfRobingTutorCombo.SelectedIndex = -1;


                // viharadhipathi thero
                using (BikkuInfo bInfo = new BikkuInfo(true))
                {
                    bInfo.BindToComboUpadyaThero(nameOfViharadhipathiCombo);
                }
                nameOfViharadhipathiCombo.SelectedIndex = -1;

                // District thero
                using (District dis = new District(true))
                {
                    dis.BindToCombo(districtcomboBox);
                }
                districtcomboBox.SelectedIndex = -1;
            }
            catch (Exception ex)
            {
                MessageView.ShowErrorMsg(ex.Message, this.Location);
            }
        }