Beispiel #1
0
 /// <summary>
 /// Private helper to consistently generate save keys for each sound, based
 /// on this profile's currently set DisplayName.
 /// </summary>
 /// <param name="item"></param>
 /// <returns></returns>
 private string GenerateItemSaveKey(SoundItem item)
 {
    return item.Name.ToString();
    //return String.Format("{0}|{1}", this.DisplayName, item.Name.ToString());
 }
Beispiel #2
0
      /// <summary>
      /// Creator
      /// </summary>
      public SoundProfile(bool readOnly)
      {
         m_readOnly = readOnly;

         m_chatClick = new SoundItem(SoundEffect.ChatClick, "Chat Received", m_readOnly);
         m_userJoin = new SoundItem(SoundEffect.UserJoin, "User Joined", m_readOnly);
         m_userPart = new SoundItem(SoundEffect.UserPart, "User Parted", m_readOnly);
         m_pmReceived = new SoundItem(SoundEffect.PmReceived, "PM Received", m_readOnly);
         m_pmSent = new SoundItem(SoundEffect.PmSent, "PM Sent", m_readOnly);
         m_connected = new SoundItem(SoundEffect.Connected, "Connected", m_readOnly);
         m_disconnected = new SoundItem(SoundEffect.Disconnected, "Disconnected", m_readOnly);
      }