Exemple #1
0
        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));
        }
Exemple #2
0
        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);
            }
        }