Beispiel #1
0
        static void Main(string[] args)
        {
            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);
            if (args.Length == 0)
            {
                Application.Run(new CodeUtilsForm());
            }
            else
            {
                switch (args[0])
                {
                case "v3Notes":
                    //notes interface expects a unitnum as a param
                    if (args.Length > 1 && string.IsNullOrEmpty(args[1]) == false)
                    {
                        LaunchNotesInterface(args[1]);
                    }
                    break;

                case "v3ParagraphEditor":
                    //paragraph editor expects a user login as a param
                    if (args.Length > 1 && string.IsNullOrEmpty(args[1]) == false)
                    {
                        UtilityLoginForm ulf = new UtilityLoginForm();
                        ulf.userLogin = args[1];
                        Application.Run(ulf);
                    }
                    break;

                case "v3Report":
                    RiskClinicReport rcp = new RiskClinicReport();
                    rcp.ShowDialog();
                    break;

                case "v3Pedigree":
                    ////paragraph editor expects a user login as a param
                    //if (args.Length > 1 && string.IsNullOrEmpty(args[1]) == false)
                    //{
                    //    UtilityLoginForm ulf = new UtilityLoginForm();
                    //    ulf.userLogin = args[1];
                    //    Application.Run(ulf);
                    //}
                    break;

                default:
                    Application.Run(new CodeUtilsForm());
                    break;
                }
            }
        }
Beispiel #2
0
 static void Main(string[] args)
 {
     Application.EnableVisualStyles();
     Application.SetCompatibleTextRenderingDefault(false);
     if (args.Length == 0)
     {
         Application.Run(new CodeUtilsForm());
     }
     else
     {
         switch (args[0])
         {
             case "v3Notes":
                 //notes interface expects a unitnum as a param
                 if (args.Length > 1 && string.IsNullOrEmpty(args[1]) == false)
                     LaunchNotesInterface(args[1]);
                 break;
             case "v3ParagraphEditor":
                 //paragraph editor expects a user login as a param
                 if (args.Length > 1 && string.IsNullOrEmpty(args[1]) == false)
                 {
                     UtilityLoginForm ulf = new UtilityLoginForm();
                     ulf.userLogin = args[1];
                     Application.Run(ulf);
                 }
                 break;
             case "v3Report":
                 RiskClinicReport rcp = new RiskClinicReport();
                 rcp.ShowDialog();
                 break;
             case "v3Pedigree":
                 ////paragraph editor expects a user login as a param
                 //if (args.Length > 1 && string.IsNullOrEmpty(args[1]) == false)
                 //{
                 //    UtilityLoginForm ulf = new UtilityLoginForm();
                 //    ulf.userLogin = args[1];
                 //    Application.Run(ulf);
                 //}
                 break;
             default:
                 Application.Run(new CodeUtilsForm());
                 break;
         }
     }
 }