Esempio n. 1
0
        private void InitializeUserInterface()
        {
            AeroRenderer renderer = new AeroRenderer(ToolbarTheme.CommunicationsToolbar, true);

            this.menuMain.Renderer = renderer;

            Thread mainThread = new Thread(new ThreadStart(this.Initialize));

            mainThread.IsBackground = true;
            mainThread.Start();
        }
Esempio n. 2
0
        private void InitializeUserInterface()
        {
            AddResourceToImageList("Auxilium.Images.channel-icon.png");

            for (int i = 1; i <= 42; i++)
            {
                AddResourceToImageList("Auxilium.Images.Ranks." + i + ".png");
            }

            AeroRenderer renderer = new AeroRenderer(ToolbarTheme.Toolbar, true);

            msMenu.Renderer        = renderer;
            cmsNotifyIcon.Renderer = renderer;

            Color borderColor = VisualStyleInformation.TextControlBorder;

            splitContainerChat.Panel1.BackColor     = borderColor;
            splitContainerChat.Panel2.BackColor     = borderColor;
            splitContainerUserList.Panel2.BackColor = borderColor;

            tsmVersion.Text += Application.ProductVersion;

            if (Options.RememberFormSize)
            {
                Size = Options.FormSize;

                //The Form.StartPosition property will not ensure that the Form loads in the center
                //of the screen when we resolve the Form.Size value from preferences.
                Size screenSize = Screen.PrimaryScreen.Bounds.Size;
                Location = new Point(screenSize.Width / 2 - Width / 2, screenSize.Height / 2 - Height / 2);
            }

            if (Options.RememberFont)
            {
                rtbChat.Font    = Options.Font;
                rtbMessage.Font = Options.Font;
            }
        }
Esempio n. 3
0
        private void InitializeUserInterface()
        {
            AddResourceToImageList("Auxilium.Images.channel-icon.png");

            for (int i = 1; i <= 42; i++)
                AddResourceToImageList("Auxilium.Images.Ranks." + i + ".png");

            AeroRenderer renderer = new AeroRenderer(ToolbarTheme.Toolbar, true);
            msMenu.Renderer = renderer;
            cmsNotifyIcon.Renderer = renderer;

            Color borderColor = VisualStyleInformation.TextControlBorder;
            splitContainerChat.Panel1.BackColor = borderColor;
            splitContainerChat.Panel2.BackColor = borderColor;
            splitContainerUserList.Panel2.BackColor = borderColor;

            tsmVersion.Text += Application.ProductVersion;

            if (Options.RememberFormSize)
            {
                Size = Options.FormSize;

                //The Form.StartPosition property will not ensure that the Form loads in the center
                //of the screen when we resolve the Form.Size value from preferences.
                Size screenSize = Screen.PrimaryScreen.Bounds.Size;
                Location = new Point(screenSize.Width / 2 - Width / 2, screenSize.Height / 2 - Height / 2);
            }

            if (Options.RememberFont)
            {
                rtbChat.Font = Options.Font;
                rtbMessage.Font = Options.Font;
            }
        }