예제 #1
0
 private void StartForm_FormClosing(object sender, FormClosingEventArgs e)
 {
     GPStrings.getSharedStrings().Save();
     GPLocationList.getShared().Save();
     GPEventList.getShared().Save();
     GPCountryList.getShared().Save();
     GPTimeZoneList.sharedTimeZones().Save();
     GPLocationProvider.SaveRecent();
 }
예제 #2
0
        public EditRelativeEventDlg()
        {
            InitializeComponent();

            comboBox1.BeginUpdate();
            List <GPEventTithi> tithiEvents = GPEventList.getShared().tithiEvents;

            for (int i = 0; i < tithiEvents.Count; i++)
            {
                comboBox1.Items.Add(tithiEvents[i]);
            }
            List <GPEventRelative> relativeEvents = GPEventList.getShared().relativeEvents;

            for (int i = 0; i < relativeEvents.Count; i++)
            {
                comboBox1.Items.Add(relativeEvents[i]);
            }
            List <GPEventSankranti> sankrantiEvents = GPEventList.getShared().sankrantiEvents;

            for (int i = 0; i < sankrantiEvents.Count; i++)
            {
                comboBox1.Items.Add(sankrantiEvents[i]);
            }
            comboBox1.SelectedIndex = 0;
            comboBox1.EndUpdate();

            for (int i = 0; i < 17; i++)
            {
                comboBox2.Items.Add(string.Format("{0}", i - 8));
            }
            comboBox2.SelectedIndex = 0;

            for (int i = 0; i < GPFastType.count(); i++)
            {
                comboBox3.Items.Add(new GPFastType(i));
            }
            comboBox3.SelectedIndex = 0;

            for (int i = 0; i < GPEventClass.count(); i++)
            {
                comboBox4.Items.Add(new GPEventClass(i));
            }
            comboBox4.SelectedIndex = 0;
        }