コード例 #1
0
ファイル: Protocol.cs プロジェクト: JGunning/OpenAIM
 /// <summary>
 /// Request window to be shown
 /// </summary>
 /// <param name="name"></param>
 /// <returns></returns>
 public virtual bool ShowChat(string name)
 {
     lock (Windows)
     {
         if (Windows.ContainsKey(name))
         {
             Current = Windows[name];
             Core.SystemForm.SwitchWindow(Current);
             Current.Redraw();
             if (Current.isChannel)
             {
                 if (Core.SelectedNetwork != null)
                 {
                     Core.SelectedNetwork.RenderedChannel = Core.SelectedNetwork.getChannel(Current.WindowName);
                 }
             }
             Core.SystemForm.setChannel(name);
             if (Current.Making == false)
             {
                 Current.textbox.setFocus();
             }
             Core.SystemForm.Chat = Windows[name];
             Current.Making = false;
             Core.SystemForm.UpdateStatus();
         }
     }
     return true;
 }