Beispiel #1
0
        /// <summary>
        /// Initialize a new <see cref="Chat"/> instance.
        /// </summary>
        public Chat()
        {
            InitializeComponent();
            Resources   = new ComponentResourceManager(typeof(Resources));
            Web         = new HtmlWeb();
            TriggerForm = new TriggerForm();
            BanForm     = new BanForm();

            Chats = new Dictionary <string, ConsoleControl.ConsoleControl>
            {
                { "All", CreateChat() },
                { "LFG", CreateChat() },
                { "PM", CreateChat() },
            };
            SelectedChat = Chats["All"];

            NotifyIcon = new NotifyIcon
            {
                Visible = true,
                Icon    = Icon,
                Text    = Text
            };
            NotifyIcon.BalloonTipClicked += NotifyIcon_BalloonTipClicked;
            NotifyIcon.Visible            = false;
        }
Beispiel #2
0
 private void BanButton_Click(object sender, EventArgs e) => BanForm.Show();