Пример #1
0
        private void Button_AddFileStructure_Click(object sender, EventArgs e)
        {
            Forms.InputBoxDialog tInputBox = new Forms.InputBoxDialog();

            if (tInputBox.ShowDialog(this) != DialogResult.OK || tInputBox.TextField.Text == "")
                return;

            this.ComboBox_FileStructure.Items.Add(tInputBox.TextField.Text);
            this.ComboBox_FileStructure.SelectedItem = this.ComboBox_FileStructure.Items[this.ComboBox_FileStructure.Items.Count - 1];
        }
Пример #2
0
        private void AutoTag_Click(object sender, EventArgs e)
        {
            Forms.InputBoxDialog tInputBox = new Forms.InputBoxDialog();

            Record tRecord = _Collection.GetRecord(this.TreeView.SelectedNode.Text);

            tInputBox.TextField.Text = tRecord.Songs[0].Path.Substring(_Collection.Path.Length + 1);

            if (tInputBox.ShowDialog(this) != DialogResult.OK || tInputBox.TextField.Text == "")
                return;

            try
            {
                tRecord.AutoTagFromFileName(tInputBox.TextField.Text, _Collection.Path);

                tRecord.UpdateForeColors();
            }
            catch { MessageBox.Show("An Error occured durion AutoTag." + Environment.NewLine + "Please verify your specified File Structure", "Error"); }
        }