Пример #1
0
        private void RefreshForm()
        {
            try
            {
                //// Sanga Upasthayaka thero
                //using (BikkuInfo bInfo = new BikkuInfo(true))
                //{
                //    bInfo.BindToComboSangaUpsThero(sangaUpastayakaTheroComboBox);
                //}
                //sangaUpastayakaTheroComboBox.SelectedIndex = -1;

                // Sanga Upasthayaka thero
                using (District dis = new District(true))
                {
                    dis.BindToCombo(districtCombo);
                }
                districtCombo.SelectedIndex = -1;

                UpdateCountry();
            }
            catch (Exception ex)
            {
                MessageView.ShowErrorMsg(ex.Message, this.Location);
            }
        }
Пример #2
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);
            }
        }