예제 #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();
                }
            }
        }
예제 #2
0
 // section choosed
 private void CharBox_SelectedIndexChanged(object sender, EventArgs e)
 {
     if (CharBox.SelectedItem == null)
     {
         return;
     }
     char [] cons = Chars.Consonents;
     //this.Width = WidthSmall;
     if (Chars.IsSoundType(CharBox.SelectedItem.ToString()))
     {
         fillMediaList(CharBox.SelectedItem.ToString());
     }
     else
     {
         fillSpecificMediaList(CharBox.SelectedItem.ToString());
     }
     CharListView.Focus();
     if (CharListView.Items.Count > 0)
     {
         CharListView.Items[0].Selected = true;
     }
     CharsStatusLabel.Text = "Тип: " + CharBox.SelectedItem.ToString();
 }