public ChannelWindow(Chat zchat) : base(zchat) { WindowIconName_NoActivity = "ZChat.IRC.ico"; WindowIconName_Activity = "ZChat.IRCgreen.ico"; TrayIconName_NoActivity = "ZChat.IRC.ico"; TrayIconName_Activity = "ZChat.IRCgreen.ico"; ZChat.Options.PropertyChanged += ZChat_PropertyChanged; InitializeComponent(); ZChat.IRC.OnPart += new PartEventHandler(irc_OnPart); ZChat.IRC.OnQuit += new QuitEventHandler(irc_OnQuit); ZChat.IRC.OnChannelMessage += new IrcEventHandler(irc_OnChannelMessage); ZChat.IRC.OnJoin += new JoinEventHandler(irc_OnJoin); ZChat.IRC.OnChannelActiveSynced += new IrcEventHandler(irc_OnChannelActiveSynced); ZChat.IRC.OnConnected += new EventHandler(irc_OnConnected); ZChat.IRC.OnDisconnected += new EventHandler(irc_OnDisconnected); ZChat.IRC.OnKick += new KickEventHandler(irc_OnKick); ZChat.IRC.OnNickChange += new NickChangeEventHandler(irc_OnNickChange); ZChat.IRC.OnChannelAction += new ActionEventHandler(irc_OnChannelAction); ZChat.IRC.OnTopic += new TopicEventHandler(irc_OnTopic); ZChat.IRC.OnTopicChange += new TopicChangeEventHandler(irc_OnTopicChange); ZChat.IRC.OnChannelModeChange += new IrcEventHandler(IRC_OnChannelModeChange); ZChat.IRC.OnChannelNotice += new IrcEventHandler(IRC_OnChannelNotice); ZChat.IRC.OnNames += new NamesEventHandler(IRC_OnNames); ZChat.IRC.OnNowAway += new IrcEventHandler(IRC_SelfAwayOrUnaway); ZChat.IRC.OnUnAway += new IrcEventHandler(IRC_SelfAwayOrUnaway); ZChat.IRC.OnAway += new AwayEventHandler(IRC_OnAway); }
public Options(Chat parent) : base() { InitializeComponent(); Icon = BitmapFrame.Create(Assembly.GetExecutingAssembly().GetManifestResourceStream("ZChat.IRC.ico")); ZChat = parent; }
/// <summary> /// Call when the first message is incoming. /// </summary> /// <param name="app"></param> /// <param name="queriedUserName"></param> /// <param name="firstMessage">The IrcEventArgs that were received with the incoming message.</param> public PrivMsg(Chat zchat, string queriedUserName, IrcEventArgs firstMessage) : this(zchat, queriedUserName) { if (firstMessage.Data.Type == ReceiveType.QueryNotice) IRC_OnQueryNotice(this, firstMessage); else if (firstMessage.Data.Type == ReceiveType.QueryMessage) IRC_OnQueryMessage(this, firstMessage); else if (firstMessage.Data.Type == ReceiveType.QueryAction) IRC_OnQueryAction(this, (ActionEventArgs)firstMessage); }
public ConnectionWindow(Chat zchat) { Channel = zchat.Options.FirstChannel; Nickname = zchat.Options.InitialNickname; Server = zchat.Options.Server; ServerPort = zchat.Options.ServerPort; ChannelKey = zchat.Options.FirstChannelKey; InitializeComponent(); WindowStartupLocation = WindowStartupLocation.CenterOwner; }
public PythonConsole(Chat zchat) { InitializeComponent(); Closing += new CancelEventHandler(PythonConsole_Closing); ZChat = zchat; EntryHistory.Add(""); _pythonScope = ZChat.PythonEngine.CreateScope(); _pythonScope.SetVariable("zchat", ZChat); }
public ActivityWindow(Chat zchat) { ZChat = zchat; ZChat.Options.PropertyChanged += ZChat_PropertyChanged; notifyIcon = new System.Windows.Forms.NotifyIcon(); notifyClickHandler = new EventHandler(notifyIcon_Click); SetRestoreType(); StateChanged += Window_StateChanged; IsVisibleChanged += Window_IsVisibleChanged; Activated += Window_Activated; Closed += Window_Closed; }
protected PrivMsg(Chat zchat, string queriedUserName) : base(zchat) { WindowIconName_NoActivity = "ZChat.IRC.ico"; WindowIconName_Activity = "ZChat.IRCgreen.ico"; TrayIconName_NoActivity = "ZChat.IRC.ico"; TrayIconName_Activity = "ZChat.IRCgreen.ico"; ZChat.Options.PropertyChanged += ZChat_PropertyChanged; ZChat.IRC.OnQueryAction += new ActionEventHandler(IRC_OnQueryAction); ZChat.IRC.OnQueryMessage += new IrcEventHandler(IRC_OnQueryMessage); ZChat.IRC.OnQueryNotice += new IrcEventHandler(IRC_OnQueryNotice); ZChat.IRC.OnNickChange += new NickChangeEventHandler(IRC_OnNickChange); ZChat.IRC.OnQuit += new QuitEventHandler(IRC_OnQuit); ZChat.IRC.OnErrorMessage += new IrcEventHandler(IRC_OnErrorMessage); ZChat.IRC.OnAway += new AwayEventHandler(IRC_OnAway); InitializeComponent(); QueriedUser = queriedUserName; UpdateTitle(); }
/// <summary> /// Call when the first message is outgoing. /// </summary> /// <param name="app"></param> /// <param name="queriedUserName"></param> /// <param name="firstMessage">The initial message to send to the other user.</param> public PrivMsg(Chat zchat, string queriedUserName, string firstMessage) : this(zchat, queriedUserName) { SendMessage(firstMessage); }
public ChatWindow(Chat zchat) : base(zchat) { ZChat.Options.PropertyChanged += ZChat_PropertyChanged; HyperlinkRegex = new Regex(ZChat.Options.HyperlinkPattern, RegexOptions.Compiled); EntryHistory.Add(""); Loaded += ChatWindow_Loaded; Activated += ChatWindow_Activated; Closed += new EventHandler(ChatWindow_Closed); }
/// <summary> /// Use the App object to subscribe to events /// </summary> public virtual void Initialize(Chat zchat) { return; }