Пример #1
0
        public InputPanel()
        {
            _buffer = new List <String>();

            InitializeComponent();

            this.buttonEmoticonPicker.Image = StaticMethods.LoadResourceImage("Smile.png");
            this.buttonColorPicker.Image    = StaticMethods.LoadResourceImage("color.png");

            textInput.OnCommand   += new IceInputBox.SendCommand(textInput_OnCommand);
            textBoxWide.OnCommand += new IceInputBox.SendCommand(textBoxWide_OnCommand);
        }
Пример #2
0
        public FormWindow(IceTabPage tab)
        {
            //used to hold each tab in MDI
            InitializeComponent();

            this.Controls.Add(tab);
            tab.Dock      = DockStyle.Fill;
            dockedControl = tab;

            this.menuStrip.Visible = false;

            ToolStripMenuItemTB trackBar = new ToolStripMenuItemTB();

            trackBar.ValueChanged += new EventHandler(TrackBar_ValueChanged);
            viewToolStripMenuItem.DropDownItems.Add(trackBar);

            this.Activated += new EventHandler(OnActivated);
            this.Resize    += new EventHandler(OnResize);
            this.Move      += new EventHandler(OnMove);

            this.MouseDown          += new MouseEventHandler(FormWindow_MouseDown);
            dockedControl.MouseDown += new MouseEventHandler(FormWindow_MouseDown);

            this.FormClosing += new FormClosingEventHandler(OnFormClosing);

            if (tab.WindowStyle == IceTabPage.WindowType.Console)
            {
                this.Icon = System.Drawing.Icon.FromHandle(StaticMethods.LoadResourceImage("console.png").GetHicon());
            }
            else if (tab.WindowStyle == IceTabPage.WindowType.Channel)
            {
                this.Icon = System.Drawing.Icon.FromHandle(StaticMethods.LoadResourceImage("channel.png").GetHicon());
            }
            else if (tab.WindowStyle == IceTabPage.WindowType.Query)
            {
                this.Icon = System.Drawing.Icon.FromHandle(StaticMethods.LoadResourceImage("query.png").GetHicon());
            }
            else if (tab.WindowStyle == IceTabPage.WindowType.ChannelList)
            {
                this.Icon = System.Drawing.Icon.FromHandle(StaticMethods.LoadResourceImage("channellist.png").GetHicon());
            }
            else //for the rest
            {
                this.Icon = System.Drawing.Icon.FromHandle(StaticMethods.LoadResourceImage("window-icon.ico").GetHicon());
            }
        }
Пример #3
0
        public FormSettings(IceChatOptions Options, IceChatFontSetting Fonts, IceChatEmoticon Emoticons, IceChatSounds Sounds)
        {
            InitializeComponent();

            this.iceChatOptions   = Options;
            this.iceChatFonts     = Fonts;
            this.iceChatEmoticons = Emoticons;
            this.iceChatSounds    = Sounds;

            LoadSettings();

            this.Activated += new EventHandler(OnActivated);
            this.textNickComplete.KeyDown += new KeyEventHandler(OnKeyDown);

            pictureTSHelp.Image  = StaticMethods.LoadResourceImage("help.png");
            pictureTSHelp.Click += new EventHandler(pictureTSHelp_Click);
        }
Пример #4
0
        public InputPanel()
        {
            _buffer = new List <String>();

            InitializeComponent();

            this.buttonEmoticonPicker.Image = StaticMethods.LoadResourceImage("Smile.png");
            this.buttonColorPicker.Image    = StaticMethods.LoadResourceImage("color.png");



            // searchText.KeyDown += SearchText_KeyDown;
            // buttonSearch.Click += SearchButton_Click;

            textInput.OnCommand   += new IceInputBox.SendCommand(TextInput_OnCommand);
            textBoxWide.OnCommand += new IceInputBox.SendCommand(TextBoxWide_OnCommand);

            textInput.OnHotKey   += Input_OnHotKey;
            textBoxWide.OnHotKey += Input_OnHotKey;
        }