Esempio n. 1
0
        private static void Main()
        {
            var form = new EditMkvAttributesForm();

            var model = new EditMkvAttributesModel();
            model.ReadSettings();

            var argv = Environment.GetCommandLineArgs();
            if (argv.Length > 1)
            {
                if (Directory.Exists(argv[1]))
                {
                    model.FolderPath = argv[1];
                }
                else
                {
                    MessageBox.Show("Folder '{0}' not found. Opening default one.", "Arguments error",
                        MessageBoxButtons.OK, MessageBoxIcon.Error);
                }
            }

            form.Bind(model);

            Application.Run(form);
        }
Esempio n. 2
0
        private static void Main()
        {
            var form = new EditMkvAttributesForm();

            var model = new EditMkvAttributesModel();

            model.ReadSettings();

            var argv = Environment.GetCommandLineArgs();

            if (argv.Length > 1)
            {
                if (Directory.Exists(argv[1]))
                {
                    model.FolderPath = argv[1];
                }
                else
                {
                    MessageBox.Show("Folder '{0}' not found. Opening default one.", "Arguments error",
                                    MessageBoxButtons.OK, MessageBoxIcon.Error);
                }
            }

            form.Bind(model);

            Application.Run(form);
        }