Beispiel #1
0
        private void CtrlDirectory_click(object sender, RoutedEventArgs e)
        {
            string ctrlPath = DirectoryManager.ChooseFileDirectory(); // Retuns path of chosen directory

            CtrlDirectory.Text = userData.CtrlDirectory = ctrlPath;   // Sets user data and textbox to ctrlPath

            if (CtrlDirectory.Text != "")
            {
                ResetApplyState();
            }
        }
Beispiel #2
0
        /* Open folder dialog box and adds user selected directory to data array */
        private void DefaultDirectory_click(object sender, RoutedEventArgs e)
        {
            string defaultPath = DirectoryManager.ChooseFileDirectory();     // Retuns path of chosen directory

            DefaultDirectory.Text = userData.DefaultDirectory = defaultPath; // Sets user data and textbox to defaultPath

            if (DefaultDirectory.Text != "")
            {
                ResetApplyState();
            }
        }