Ejemplo n.º 1
0
        public static void BuildGana()
        {
            string sc = Util.SelectedValue("ChandamNames");
            string sn = Util.GetValue("txtNumber");

            if (sc == "")
            {
            }

            int n = 0;
            int c = 0;

            try
            {
                n = int.Parse(sn);
                c = int.Parse(sc);
                if (Script.IsNaN(n) || Script.IsNaN(c))
                {
                    Window.Document.GetElementById("result").InnerHTML = "";
                    return;
                }
            }
            catch
            {
                Window.Document.GetElementById("result").InnerHTML = "";
                return;
            }
            Window.Document.GetElementById("result").InnerHTML = ChandamLab.BuildGana(c, n);
        }
Ejemplo n.º 2
0
        private static void RegisterLab()
        {
            Util.RegisterClick2(new string[] { "btnClear3", "btnClear4", "btnClear5" }, delegate(ElementEvent e)
            {
                Worker.OnClear();
            });


            Util.RegisterClick("btnGenPadyam", delegate(ElementEvent e)
            {
                ChandamLab.WriteAPadyam();
            });

            Util.RegisterClick("WhichG", delegate(ElementEvent e)
            {
                Worker.BuildGana();
            });

            Util.RegisterClick("btnWVruttam", delegate(ElementEvent e)
            {
                Worker.BuildMatraVruttam();
            });

            Util.RegisterClick("ReportPending", delegate(ElementEvent e)
            {
                Worker.PendingReport();
            });


            Util.RegisterClick("HowMany", delegate(ElementEvent e)
            {
                Worker.HowMany();
            });


            Util.RegisterClick("YCheck", delegate(ElementEvent e)
            {
                Worker.OnYatiCheck();
            });
            Util.RegisterClick("PCheck", delegate(ElementEvent e)
            {
                Worker.OnPrasaCheck();
            });
        }
Ejemplo n.º 3
0
        public static void BuildMatraVruttam()
        {
            string sn = Util.GetValue("txtVruttam");
            int    n  = 0;

            try
            {
                n = int.Parse(sn);
                if (Script.IsNaN(n))
                {
                    Window.Document.GetElementById("result").InnerHTML = "";
                    return;
                }
            }
            catch
            {
                Window.Document.GetElementById("result").InnerHTML = "";
                return;
            }
            ChandamLab.FindMatraVruttams(n);
        }
Ejemplo n.º 4
0
 internal static void OnShowLab()
 {
     Window.Document.GetElementById("result").InnerHTML = "";
     Worker.HideToolbar();
     ChandamLab.Init();
 }