Ejemplo n.º 1
0
        private void BrowseButton_Click(object sender, System.Windows.RoutedEventArgs e)
        {
            var dialog = new Ookii.Dialogs.Wpf.VistaFolderBrowserDialog
            {
                ShowNewFolderButton    = true,
                UseDescriptionForTitle = true,
                Description            = @"Choose Location",
                SelectedPath           = Path.Combine(UserFolderAPI.GetPath(KnownFolder.Downloads), "Others")
            };

            dialog.ShowDialog();
            Destination = dialog.SelectedPath;

            UpdateFolderBox();
        }
Ejemplo n.º 2
0
        public RuleCreatorPage()
        {
            InitializeComponent();

            foreach (RuleType type in Enum.GetValues(typeof(RuleType)))
            {
                var str = GetDescription(type);
                _ruleTypeDictionary.Add(str, type);
                TypeCombo.Items.Add(str);
            }

            TypeCombo.SelectedIndex = 0;
            Destination             = UserFolderAPI.GetPath(KnownFolder.Downloads) + "\\Others";
            UpdateFolderBox();
        }