static void Main() { Application.EnableVisualStyles(); Application.SetCompatibleTextRenderingDefault(false); var args = Environment.GetCommandLineArgs(); var ctx = new ArgumentContext(args.Skip(1).ToArray()); Application.Run(new Form1(ctx)); }
public Form1(ArgumentContext context = null) { InitializeComponent(); richTextBox1.HideSelection = false; this._context = context; if (this._context != null && !string.IsNullOrEmpty(this._context.folder)) { ShowFiles(this._context.folder); } }