Пример #1
0
        public MainWindow()
        {
            checker = new PathChecker(reg.ExecutableExtensions);

            InitializeComponent();
            ShieldIcon = UAC.GetShieldIcon();
            searchBox.SetCompleteProvider(checker.Search);

            var args = Environment.GetCommandLineArgs();
            if (args.Count() > 1)
            {
                WriteChangesFromCommandLine(args.Skip(1));
                Close();
            }
            else
                Read();
        }
Пример #2
0
        public MainWindow()
        {
            checker = new PathChecker(reg.ExecutableExtensions);

            InitializeComponent();
            ShieldIcon = UAC.GetShieldIcon();
            searchBox.SetCompleteProvider(checker.Search);

            var args = Environment.GetCommandLineArgs();

            if (args.Count() > 1)
            {
                WriteChangesFromCommandLine(args.Skip(1));
                Close();
            }
            else
            {
                Read();
            }
        }