Exemple #1
0
 private void Choose2_Click(object sender, EventArgs e)
 {
     if (OpenFolder.ShowDialog() == DialogResult.OK)
     {
         Argument2.Text = OpenFolder.SelectedPath;
     }
 }
 /// <summary>
 /// Choose GameFolder
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 private void btnChooseGameFolder_Click(object sender, EventArgs e)
 {
     OpenFolder.SelectedPath = EditorSettings.Instance.GamesFolder;
     if (OpenFolder.ShowDialog() == System.Windows.Forms.DialogResult.OK)
     {
         txtGameFolder.Text = OpenFolder.SelectedPath;
     }
 }
Exemple #3
0
 private void BTN_Folder_Click(object sender, EventArgs e)
 {
     OpenFolder.SelectedPath = string.Empty;
     TXT_Folder.Text         = string.Empty;
     if (OpenFolder.ShowDialog() == DialogResult.OK)
     {
         TXT_Folder.Text = OpenFolder.SelectedPath;
     }
 }
        /// <summary>
        /// Click sur bouton pour choisir un dossier
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void btnChooseFolder_Click(object sender, EventArgs e)
        {
            string path = EditorSettings.Instance.GamesFolder;

            if (!Directory.Exists(path))
            {
                Directory.CreateDirectory(path);
            }
            OpenFolder.SelectedPath = path;
            OpenFolder.ShowDialog();
            txtProjectFolder.Text = OpenFolder.SelectedPath;
        }
Exemple #5
0
        /// <summary>
        /// Reads the selected directory and genereates the treeview
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void ChooseDirectory_Click(object sender, EventArgs e)
        {
            //Don't interrupt my scanning!
            if (this.scanningInProgress())
            {
                return;
            }

            OpenFolder.ShowDialog();

            if ("".Equals(OpenFolder.SelectedPath))
            {
                MessageBox.Show("No Folder Selected!");
                return;
            }
            //Perform all neccessary things to build the treeview
            this.initTreeViewBuilder();

            //Perform all necessary things to scan the hd for tags
            this.initTagReaderProcess();
        }