Ejemplo n.º 1
0
        private void Application_Startup(object sender, StartupEventArgs e)
        {
            for (int i = 0; i < e.Args.Length; i++)
            {
                if (e.Args[i].StartsWith("-") || e.Args[i].StartsWith("/"))
                {
                    if (e.Args.Length - 1 > i && !(e.Args[i + 1].StartsWith("-") || e.Args[i + 1].StartsWith("/")))
                    {
                        CommandArguments.SetArgument(e.Args[i].Substring(1), e.Args[i + 1]);
                    }
                    else
                    {
                        CommandArguments.SetArgument(e.Args[i].Substring(1));
                    }
                }
            }

            if (CommandArguments.TryGetArgument("ether"))
            {
                EtherManager.Initialize();
            }

            Editor editor = new     Editor();

            editor.Show();
        }