Пример #1
0
        public static ExecuteArgs Parse(string[] args)
        {
            ExecuteArgs o = new ExecuteArgs();

            if (args.Length == 1)
            {
                string[] pairs = args[0].Split(new char[] { ';' });
                foreach (string pair in pairs)
                {
                    string[] item  = pair.Split(new char[] { '=' });
                    string   key   = item[0];
                    string   value = item[1];
                    o.Args.Add(key, value);
                }
            }
            return(o);
        }
Пример #2
0
 private void Run(ExecuteArgs args)
 {
     Application.Run(Form = new MainForm());
 }
Пример #3
0
        public void Run(string[] args)
        {
            Args = args;

            Run(ExecuteArgs = ExecuteArgs.Parse(args));
        }