public EditEventTithiMasa()
        {
            InitializeComponent();

            for (int i = 0; i < 30; i++)
            {
                comboBox1.Items.Add(string.Format("{0} Tithi ({1} Paksa)", GCTithi.GetName(i), GCPaksa.GetName(i / 15)));
            }

            for (int i = 0; i < 12; i++)
            {
                comboBox2.Items.Add(string.Format("{0} Masa", GCMasa.GetName(i)));
            }
        }
Exemple #2
0
        private float DrawTithiText(Graphics g, VAISNAVADAY vd)
        {
            SizeF  textSize;
            float  tempTextHeight = 0;
            string str2           = GCTithi.GetName(vd.astrodata.sunRise.Tithi);

            textSize = g.MeasureString(str2, fontH3);
            g.DrawString(str2, fontH3, Brushes.Black, xCellAnchor1, yCellMarginTop);
            tempTextHeight = yCellMarginTop + textSize.Height;
            if (vd.HasExtraFastingNote())
            {
                str2     = vd.GetExtraFastingNote();
                textSize = g.MeasureString(str2, fontS2);
                g.DrawString(str2, fontS2, Brushes.Black, xCellAnchor1, tempTextHeight);
                tempTextHeight += textSize.Height;
            }

            return(tempTextHeight);
        }
        public StartDatePanel()
        {
            InitializeComponent();
            int i;

            for (i = 1; i <= 31; i++)
            {
                cbDay.Items.Add(i.ToString());
            }
            for (i = 1; i <= 12; i++)
            {
                cbMonth.Items.Add(GregorianDateTime.GetMonthName(i));
            }
            for (i = 0; i < 30; i++)
            {
                cbTithi.Items.Add(GCTithi.GetName(i));
            }
            for (i = 0; i <= 12; i++)
            {
                cbMasa.Items.Add(GCMasa.GetName(i));
            }
        }