public static void TriggerNewUpdateEvent(bool IsBot) { if (IsBot) { BotUpdate?.Invoke(); } else { HandlerUpdate?.Invoke(); } }
public ChatPanel(int width, int height, int x, int y) { this.historyChatList = new List <ItemChat>(); this.chatFileItems = new Dictionary <string, ItemChat>(); this.width_panel = width; this.height_panel = height; this.MinimumSize = new Size(width, height); this.Location = new Point(x, y); this.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D; this.position_y = 9; this.position_x = 10; this.update += new HandlerUpdate(this.up); this.add += new HandelerADD(this.addFile); this.actionAddMessage += new HandelerADDMessage(this.onAddNewMessage); this.actionAddNewFile += new HandelerAddNewFile(this.onAddNewFile); }