Ejemplo n.º 1
0
 /*
  * Updates the DataGridView with the replace action dictionary's contents.
  * This happens whenever the dictionary is updated.
  */
 private void UpdateDataGrid()
 {
     dgvActions.Rows.Clear();
     //foreach(KeyValuePair<string, string> action in dictReplaceActions)
     foreach (KeyValuePair <string, string> action in frmParent.dictFilterSounds[frmParent.GetSelectedFilter()])
     {
         dgvActions.Rows.Add(action.Key, action.Value);
     }
     dgvActions.Sort(dgvActions.Columns["Replace"], ListSortDirection.Ascending);
 }
Ejemplo n.º 2
0
        public frmCustomSounds(frmFilterBro owner)
        {
            InitializeComponent();

            this.frmParent     = owner;
            dictReplaceActions = new Dictionary <string, string>();
            dictDefaultSounds  = new Dictionary <string, string>();
            dictDefaultText    = new Dictionary <string, string>();
            lstDefaultSounds   = new List <string>();
            lstCustomSounds    = new List <string>();

            lblEditingFor.Text = "Editing custom sounds for " + frmParent.GetSelectedFilter();
        }