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); }
private void Run(ExecuteArgs args) { Application.Run(Form = new MainForm()); }
public void Run(string[] args) { Args = args; Run(ExecuteArgs = ExecuteArgs.Parse(args)); }