Пример #1
0
        public void StoreChats( Controls.ChatsControl ChatsControl )
        {
            StringBuilder sb = new StringBuilder();
            for (int j = 0; j < Chats.Count; ++j) {

                var data = Chats[j].Tag as Tuple<RatChat.Core.IChatSource, string>;

                sb.AppendFormat(
                    CultureInfo.InvariantCulture,
                    "|{0}={1}={2}",
                    data.Item2,
                    data.Item1.ConfigPrefix,
                    ChatsControl.GetChatHeightByIndex(j) );
            }
            ChatConfigStorage["ChatManager.UberChatList"] = sb.ToString();
        }