コード例 #1
0
        public EditSankrantiBasedEventDlg()
        {
            InitializeComponent();

            for (int i = 0; i < GPSankranti.getCount(); i++)
            {
                comboBox1.Items.Add(GPSankranti.getName(i));
            }
            comboBox1.SelectedIndex = 0;

            for (int i = 0; i < (2 * dayOffset + 1); i++)
            {
                comboBox2.Items.Add(string.Format("{0}", i - dayOffset));
            }
            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;
        }
コード例 #2
0
ファイル: EditTithiEvent.cs プロジェクト: vijeetgv/GCAL
        public EditTithiEvent()
        {
            InitializeComponent();

            for (int i = 0; i < GPTithi.getCount(); i++)
            {
                comboBox1.Items.Add(new GPTithi(i, true));
            }
            comboBox1.SelectedIndex = 0;

            for (int i = 0; i < GPMasa.getCount(); i++)
            {
                comboBox2.Items.Add(new GPMasa(i));
            }
            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;
        }
コード例 #3
0
ファイル: EditRelativeEventDlg.cs プロジェクト: vijeetgv/GCAL
        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;
        }