Пример #1
0
        private void InsertPath()
        {
            var args = new PackagePathEventArgs();

            ShowFileDialog(args);

            if (args.Cancel)
                return;

            RootLocations.Insert(RootLocations.Count, args.Path);

            RaiseCanExecuteChanged();
        }
Пример #2
0
        private void InsertPath()
        {
            var args = new PackagePathEventArgs();

            ShowFileDialog(args);

            if (args.Cancel)
            {
                return;
            }

            RootLocations.Insert(RootLocations.Count, args.Path);
            SetPackagesScheduledState(args.Path, packagePathDisabled: false);
            RaiseCanExecuteChanged();
        }