Esempio n. 1
0
        private void AddSoundButton_Click(object sender, EventArgs e)
        {
            string  type = CharBox.SelectedItem.ToString();
            AddForm add  = new AddForm(type + CharListView.Items.Count.ToString());

            add.ShowDialog(this);
            string name = Configer.Tmp;

            if (name != "")
            {
                _profile.AddSound(type, Configer.Tmp, null);
                if (record(name, type))
                {
                    fillSpecificMediaList(type);
                    ListViewItem item = CharListView.Items.Find(name, false)[0];
                    item.Selected    = true;
                    item.ToolTipText = item.Text;
                    CharListView.Focus();
                }
            }
        }