Пример #1
0
        private void PlaceOvals(OvalShape[,] zone)
        {
            var ovalShapes = new Microsoft.VisualBasic.PowerPacks.ShapeContainer()
            {
                Dock    = DockStyle.Fill,
                Margin  = new Padding(0),
                Padding = new Padding(0),
            };

            for (int x = 0; x < 7; x++)
            {
                for (int y = 0; y < 6; y++)
                {
                    OvalShape ovl = new OvalShape();
                    ovl.Width  = 20;
                    ovl.Height = 20;

                    ovl.FillStyle   = FillStyle.Solid;
                    ovl.FillColor   = Color.White;
                    ovl.BorderWidth = 0;
                    ovl.Location    = new Point(521 + (x * 34), 71 + (y * 24));
                    ovl.Visible     = true;
                    ovalShapes.Shapes.Add(ovl);
                    zone[x, y] = ovl;
                }
            }
            this.Controls.Add(ovalShapes);
        }
Пример #2
0
 private Microsoft.VisualBasic.PowerPacks.ShapeContainer newLineShape(int x1, int y1, int x2, int y2, string name, string text, DashStyle dashStyle, int borderWidth)
 {
     Microsoft.VisualBasic.PowerPacks.ShapeContainer shapeContainer1 = new Microsoft.VisualBasic.PowerPacks.ShapeContainer();
     Microsoft.VisualBasic.PowerPacks.LineShape      lineShape1      = new Microsoft.VisualBasic.PowerPacks.LineShape();
     shapeContainer1.Location = new System.Drawing.Point(3, 17);
     shapeContainer1.Margin   = new System.Windows.Forms.Padding(0);
     shapeContainer1.Name     = "shapeContainer1";
     shapeContainer1.Shapes.AddRange(new Microsoft.VisualBasic.PowerPacks.Shape[] {
         lineShape1
     });
     shapeContainer1.Size     = new System.Drawing.Size(244, 230);
     shapeContainer1.TabIndex = 0;
     shapeContainer1.TabStop  = false;
     //
     // lineShape1
     //
     lineShape1.BorderStyle = dashStyle;
     lineShape1.BorderWidth = borderWidth;
     lineShape1.Name        = "lineShape1";
     lineShape1.X1          = x1;
     lineShape1.X2          = x2;
     lineShape1.Y1          = y1;
     lineShape1.Y2          = y2;
     return(shapeContainer1);
 }
Пример #3
0
        private Microsoft.VisualBasic.PowerPacks.ShapeContainer newRectangleShape(int x, int y, int sh, int sw, string name, int borderWidth)
        {
            Microsoft.VisualBasic.PowerPacks.ShapeContainer shapeContainervs = new Microsoft.VisualBasic.PowerPacks.ShapeContainer();
            Microsoft.VisualBasic.PowerPacks.RectangleShape rectangleShapevs = new Microsoft.VisualBasic.PowerPacks.RectangleShape();

            shapeContainervs.Location = new System.Drawing.Point(0, 0);
            shapeContainervs.Margin   = new System.Windows.Forms.Padding(0);
            shapeContainervs.Name     = "shapeContainer1";
            shapeContainervs.Shapes.AddRange(new Microsoft.VisualBasic.PowerPacks.Shape[] { rectangleShapevs });
            shapeContainervs.Size        = new Size(645, 614);
            shapeContainervs.TabIndex    = 0;
            shapeContainervs.TabStop     = false;
            rectangleShapevs.Location    = new Point(x, y);
            rectangleShapevs.Name        = name;
            rectangleShapevs.Size        = new Size(sh, sw);
            rectangleShapevs.BorderWidth = borderWidth;
            return(shapeContainervs);
        }
Пример #4
0
        private Microsoft.VisualBasic.PowerPacks.ShapeContainer newOvalShape(int x, int y, int sh, int sw, string name, Color color)
        {
            Microsoft.VisualBasic.PowerPacks.ShapeContainer shapeContaineroval = new Microsoft.VisualBasic.PowerPacks.ShapeContainer();
            Microsoft.VisualBasic.PowerPacks.OvalShape      ovalShape1         = new Microsoft.VisualBasic.PowerPacks.OvalShape();
            ovalShape1.Location  = new System.Drawing.Point(x, y);
            ovalShape1.Name      = name;
            ovalShape1.Size      = new System.Drawing.Size(sh, sw);
            ovalShape1.BackStyle = BackStyle.Opaque;
            ovalShape1.BackColor = color;//Color.Lime;

            shapeContaineroval.Location = new System.Drawing.Point(0, 0);
            shapeContaineroval.Margin   = new System.Windows.Forms.Padding(0);
            shapeContaineroval.Name     = "shapeContainer1";
            shapeContaineroval.Shapes.AddRange(new Microsoft.VisualBasic.PowerPacks.Shape[] { ovalShape1 });
            shapeContaineroval.Size     = new System.Drawing.Size(645, 614);
            shapeContaineroval.TabIndex = 0;
            shapeContaineroval.TabStop  = false;
            return(shapeContaineroval);
        }
        public static void DisposeShapeContainer(Microsoft.VisualBasic.PowerPacks.ShapeContainer AShapeContainer)
        {
            if (AShapeContainer != null)
            {
                if (AShapeContainer.Shapes != null && AShapeContainer.Shapes.Owner != null && AShapeContainer.Shapes.Count > 0)
                {
                    List <Microsoft.VisualBasic.PowerPacks.Shape> tshapes = new List <Microsoft.VisualBasic.PowerPacks.Shape>();
                    foreach (Microsoft.VisualBasic.PowerPacks.Shape tshape in AShapeContainer.Shapes)
                    {
                        tshapes.Add(tshape);
                    }
                    AShapeContainer.Shapes.Clear();
                    AShapeContainer.Shapes.Dispose();

                    foreach (Microsoft.VisualBasic.PowerPacks.Shape tshape in tshapes)
                    {
                        tshape.Dispose();
                    }
                }
                AShapeContainer.Dispose();
            }
        }
Пример #6
0
 private void PlaceOvals(OvalShape[,] zone)
 {
     var ovalShapes = new Microsoft.VisualBasic.PowerPacks.ShapeContainer()
     {
         Dock = DockStyle.Fill,
         Margin = new Padding(0),
         Padding = new Padding(0),
     };
     for (int x = 0; x < 7; x++)
     {            
         for (int y = 0; y < 6; y++)
         {
             OvalShape ovl = new OvalShape();
             ovl.Width = 20;
             ovl.Height = 20;
             
             ovl.FillStyle = FillStyle.Solid;
             ovl.FillColor = Color.White;
             ovl.BorderWidth = 0;
             ovl.Location = new Point(521 + (x * 34), 71 + (y * 24));
             ovl.Visible = true;
             ovalShapes.Shapes.Add(ovl);
             zone[x, y] = ovl;                  
         }
     }
     this.Controls.Add(ovalShapes);
 }
Пример #7
0
        public ping(string p)
        {
            InitializeComponent();
            nickname_p           = p;
            this.shapeContainer1 = new Microsoft.VisualBasic.PowerPacks.ShapeContainer();



            timer1.Enabled = true;
            Cursor.Hide();

            this.FormBorderStyle = FormBorderStyle.None;
            this.TopMost         = true;
            this.Bounds          = Screen.PrimaryScreen.Bounds;

            racket.Top = playground.Bottom - (playground.Bottom / 10);

            game_over_lbl.Left    = (playground.Width / 2) - (game_over_lbl.Width / 2);
            game_over_lbl.Top     = (playground.Height / 2) - (game_over_lbl.Height / 2);
            game_over_lbl.Visible = false;

            //This is the code of the bricks

            //This algorithm is the model of create Rectangle Shapes to instance bricks and Rectangles for test collisions (go to line 229 )

            rectPlayer = new Rectangle(ball.Location.X, ball.Location.Y, ball.Width, ball.Height); // modelling rectangles for player to test collision


            for (int row = playground.Height / 30; row < playground.Height / 3; row += playground.Height / 20)                  //For each "row" of bricks
            {
                for (double platform = (playground.Width / 100); platform < playground.Width; platform += playground.Width / 9) //For each "platform/collumns" of bricks
                {
                    int widthRect   = Convert.ToInt32(playground.Width / 10);                                                   //width of each brick
                    int predictable = Convert.ToInt32(platform) + (playground.Width / 10);                                      // the next platform

                    if (predictable < playground.Width)                                                                         //test to no instance a brick out of your monitor :p
                    {
                        //Configure the possition of the bricks, and the collor.
                        vectRectShape[j]           = new Microsoft.VisualBasic.PowerPacks.RectangleShape(Convert.ToInt32(platform), 70 + row, widthRect, 30);
                        vectRectShape[j].FillStyle = Microsoft.VisualBasic.PowerPacks.FillStyle.Solid;
                        vectRectShape[j].FillColor = Color.Red;;
                    }

                    j++;
                }
            }



            //
            // shapeContainer1
            //
            this.shapeContainer1.Location = new System.Drawing.Point(0, 0);
            this.shapeContainer1.Margin   = new System.Windows.Forms.Padding(0);
            this.shapeContainer1.Name     = "shapeContainer2";

            for (int k = j; k > 0; k--)
            {
                this.shapeContainer1.Shapes.Add(vectRectShape[k - 1]);   //Instance of the bricks
            }

            this.shapeContainer1.Size     = new System.Drawing.Size(663, 329);
            this.shapeContainer1.TabIndex = 13;
            this.shapeContainer1.TabStop  = false;

            this.playground.Controls.Add(this.shapeContainer1);
        }
Пример #8
0
 private void InitializeComponent()
 {
     this._PanelAccounts     = new Shellscape.UI.Controls.Preferences.PreferencesPanel();
     this._LabelAccountIntro = new System.Windows.Forms.Label();
     this._ButtonNewAccount  = new System.Windows.Forms.Button();
     this._PanelAppearance   = new Shellscape.UI.Controls.Preferences.PreferencesPanel();
     this._CheckToast        = new System.Windows.Forms.CheckBox();
     this._CheckTray         = new System.Windows.Forms.CheckBox();
     this._CheckFlash        = new System.Windows.Forms.CheckBox();
     this._LabelLanguage     = new System.Windows.Forms.Label();
     this._ComboLanguage     = new System.Windows.Forms.ComboBox();
     this.shapeContainer2    = new Microsoft.VisualBasic.PowerPacks.ShapeContainer();
     this.lineShape2         = new Microsoft.VisualBasic.PowerPacks.LineShape();
     this._PanelNewAccount   = new GmailNotifierPlus.Controls.AccountPanel();
     this._CheckUpdates      = new System.Windows.Forms.CheckBox();
     this._LabelSound        = new System.Windows.Forms.Label();
     this._LabelInterval     = new System.Windows.Forms.Label();
     this._LabelMinutes      = new System.Windows.Forms.Label();
     this._TextInterval      = new Shellscape.UI.Controls.NumericTextBox();
     this._ComboSound        = new System.Windows.Forms.ComboBox();
     this._ButtonBrowse      = new System.Windows.Forms.Button();
     this.lineShape1         = new Microsoft.VisualBasic.PowerPacks.LineShape();
     this.shapeContainer1    = new Microsoft.VisualBasic.PowerPacks.ShapeContainer();
     this.lineShape3         = new Microsoft.VisualBasic.PowerPacks.LineShape();
     this._PanelGeneral.SuspendLayout();
     this._PanelParent.SuspendLayout();
     this._PanelAccounts.SuspendLayout();
     this._PanelAppearance.SuspendLayout();
     this.SuspendLayout();
     //
     // _PanelGeneral
     //
     this._PanelGeneral.Controls.Add(this._ButtonBrowse);
     this._PanelGeneral.Controls.Add(this._ComboSound);
     this._PanelGeneral.Controls.Add(this._TextInterval);
     this._PanelGeneral.Controls.Add(this._LabelMinutes);
     this._PanelGeneral.Controls.Add(this._LabelInterval);
     this._PanelGeneral.Controls.Add(this._LabelSound);
     this._PanelGeneral.Controls.Add(this._CheckUpdates);
     this._PanelGeneral.Controls.Add(this.shapeContainer1);
     //
     // _PanelParent
     //
     this._PanelParent.Controls.Add(this._PanelAppearance);
     this._PanelParent.Controls.Add(this._PanelAccounts);
     this._PanelParent.Controls.Add(this._PanelNewAccount);
     this._PanelParent.Controls.SetChildIndex(this._PanelNewAccount, 0);
     this._PanelParent.Controls.SetChildIndex(this._PanelGeneral, 0);
     this._PanelParent.Controls.SetChildIndex(this._PanelAccounts, 0);
     this._PanelParent.Controls.SetChildIndex(this._PanelAppearance, 0);
     //
     // _PanelAccounts
     //
     this._PanelAccounts.BackColor        = System.Drawing.Color.Transparent;
     this._PanelAccounts.BorderColor      = System.Drawing.Color.FromArgb(((int)(((byte)(119)))), ((int)(((byte)(119)))), ((int)(((byte)(119)))));
     this._PanelAccounts.ControlBackColor = System.Drawing.Color.White;
     this._PanelAccounts.Controls.Add(this._LabelAccountIntro);
     this._PanelAccounts.Controls.Add(this._ButtonNewAccount);
     this._PanelAccounts.Dock            = System.Windows.Forms.DockStyle.Fill;
     this._PanelAccounts.DrawHeader      = true;
     this._PanelAccounts.Font            = new System.Drawing.Font("Segoe UI", 9F);
     this._PanelAccounts.HeaderColorFrom = System.Drawing.Color.FromArgb(((int)(((byte)(254)))), ((int)(((byte)(254)))), ((int)(((byte)(254)))));
     this._PanelAccounts.HeaderColorTo   = System.Drawing.Color.FromArgb(((int)(((byte)(228)))), ((int)(((byte)(228)))), ((int)(((byte)(228)))));
     this._PanelAccounts.HeaderForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(100)))), ((int)(((byte)(100)))), ((int)(((byte)(100)))));
     this._PanelAccounts.HeaderHeight    = 39;
     this._PanelAccounts.HeaderImage     = null;
     this._PanelAccounts.HeaderPadding   = new System.Windows.Forms.Padding(10, 5, 10, 5);
     this._PanelAccounts.HeaderText      = "Manage your accounts";
     this._PanelAccounts.Location        = new System.Drawing.Point(12, 12);
     this._PanelAccounts.Margin          = new System.Windows.Forms.Padding(12, 0, 0, 0);
     this._PanelAccounts.Name            = "_PanelAccounts";
     this._PanelAccounts.Padding         = new System.Windows.Forms.Padding(10, 45, 10, 10);
     this._PanelAccounts.SeperatorColor  = System.Drawing.Color.FromArgb(((int)(((byte)(200)))), ((int)(((byte)(200)))), ((int)(((byte)(200)))));
     this._PanelAccounts.Size            = new System.Drawing.Size(500, 394);
     this._PanelAccounts.TabIndex        = 3;
     //
     // _LabelAccountIntro
     //
     this._LabelAccountIntro.AutoSize    = true;
     this._LabelAccountIntro.Location    = new System.Drawing.Point(13, 45);
     this._LabelAccountIntro.MaximumSize = new System.Drawing.Size(450, 0);
     this._LabelAccountIntro.Name        = "_LabelAccountIntro";
     this._LabelAccountIntro.Size        = new System.Drawing.Size(436, 30);
     this._LabelAccountIntro.TabIndex    = 1;
     this._LabelAccountIntro.Text        = "Click an account to the left to manage your individual accounts. Click the button" +
                                           " below to add a new account.";
     //
     // _ButtonNewAccount
     //
     this._ButtonNewAccount.AutoSize = true;
     this._ButtonNewAccount.Location = new System.Drawing.Point(292, 92);
     this._ButtonNewAccount.Name     = "_ButtonNewAccount";
     this._ButtonNewAccount.Size     = new System.Drawing.Size(170, 30);
     this._ButtonNewAccount.TabIndex = 0;
     this._ButtonNewAccount.Text     = "Add New Account";
     this._ButtonNewAccount.UseVisualStyleBackColor = true;
     //
     // _PanelAppearance
     //
     this._PanelAppearance.BackColor        = System.Drawing.Color.Transparent;
     this._PanelAppearance.BorderColor      = System.Drawing.Color.FromArgb(((int)(((byte)(119)))), ((int)(((byte)(119)))), ((int)(((byte)(119)))));
     this._PanelAppearance.ControlBackColor = System.Drawing.Color.White;
     this._PanelAppearance.Controls.Add(this._CheckToast);
     this._PanelAppearance.Controls.Add(this._CheckTray);
     this._PanelAppearance.Controls.Add(this._CheckFlash);
     this._PanelAppearance.Controls.Add(this._LabelLanguage);
     this._PanelAppearance.Controls.Add(this._ComboLanguage);
     this._PanelAppearance.Controls.Add(this.shapeContainer2);
     this._PanelAppearance.Dock            = System.Windows.Forms.DockStyle.Fill;
     this._PanelAppearance.DrawHeader      = true;
     this._PanelAppearance.Font            = new System.Drawing.Font("Segoe UI", 9F);
     this._PanelAppearance.HeaderColorFrom = System.Drawing.Color.FromArgb(((int)(((byte)(254)))), ((int)(((byte)(254)))), ((int)(((byte)(254)))));
     this._PanelAppearance.HeaderColorTo   = System.Drawing.Color.FromArgb(((int)(((byte)(228)))), ((int)(((byte)(228)))), ((int)(((byte)(228)))));
     this._PanelAppearance.HeaderForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(100)))), ((int)(((byte)(100)))), ((int)(((byte)(100)))));
     this._PanelAppearance.HeaderHeight    = 39;
     this._PanelAppearance.HeaderImage     = null;
     this._PanelAppearance.HeaderPadding   = new System.Windows.Forms.Padding(10, 5, 10, 5);
     this._PanelAppearance.HeaderText      = "";
     this._PanelAppearance.Location        = new System.Drawing.Point(12, 12);
     this._PanelAppearance.Margin          = new System.Windows.Forms.Padding(12, 0, 0, 0);
     this._PanelAppearance.Name            = "_PanelAppearance";
     this._PanelAppearance.Padding         = new System.Windows.Forms.Padding(10, 45, 10, 10);
     this._PanelAppearance.SeperatorColor  = System.Drawing.Color.FromArgb(((int)(((byte)(200)))), ((int)(((byte)(200)))), ((int)(((byte)(200)))));
     this._PanelAppearance.Size            = new System.Drawing.Size(500, 394);
     this._PanelAppearance.TabIndex        = 4;
     //
     // _CheckToast
     //
     this._CheckToast.AutoSize = true;
     this._CheckToast.Location = new System.Drawing.Point(15, 141);
     this._CheckToast.Name     = "_CheckToast";
     this._CheckToast.Size     = new System.Drawing.Size(231, 19);
     this._CheckToast.TabIndex = 3;
     this._CheckToast.Text     = "Show Toast notifications for new Email";
     this._CheckToast.UseVisualStyleBackColor = true;
     //
     // _CheckTray
     //
     this._CheckTray.AutoSize = true;
     this._CheckTray.Location = new System.Drawing.Point(15, 116);
     this._CheckTray.Name     = "_CheckTray";
     this._CheckTray.Size     = new System.Drawing.Size(201, 19);
     this._CheckTray.TabIndex = 2;
     this._CheckTray.Text     = "Show Email count in System Tray";
     this._CheckTray.UseVisualStyleBackColor = true;
     //
     // _CheckFlash
     //
     this._CheckFlash.AutoSize = true;
     this._CheckFlash.Location = new System.Drawing.Point(15, 91);
     this._CheckFlash.Name     = "_CheckFlash";
     this._CheckFlash.Size     = new System.Drawing.Size(172, 19);
     this._CheckFlash.TabIndex = 1;
     this._CheckFlash.Text     = "Flash Taskbar for new Email";
     this._CheckFlash.UseVisualStyleBackColor = true;
     //
     // _LabelLanguage
     //
     this._LabelLanguage.AutoSize = true;
     this._LabelLanguage.Location = new System.Drawing.Point(11, 51);
     this._LabelLanguage.Name     = "_LabelLanguage";
     this._LabelLanguage.Size     = new System.Drawing.Size(100, 15);
     this._LabelLanguage.TabIndex = 48;
     this._LabelLanguage.Text     = "Display language:";
     //
     // _ComboLanguage
     //
     this._ComboLanguage.DropDownStyle     = System.Windows.Forms.ComboBoxStyle.DropDownList;
     this._ComboLanguage.FlatStyle         = System.Windows.Forms.FlatStyle.System;
     this._ComboLanguage.FormattingEnabled = true;
     this._ComboLanguage.Location          = new System.Drawing.Point(117, 48);
     this._ComboLanguage.Name     = "_ComboLanguage";
     this._ComboLanguage.Size     = new System.Drawing.Size(134, 23);
     this._ComboLanguage.TabIndex = 0;
     //
     // shapeContainer2
     //
     this.shapeContainer2.Location = new System.Drawing.Point(10, 45);
     this.shapeContainer2.Margin   = new System.Windows.Forms.Padding(0);
     this.shapeContainer2.Name     = "shapeContainer2";
     this.shapeContainer2.Shapes.AddRange(new Microsoft.VisualBasic.PowerPacks.Shape[] {
         this.lineShape2
     });
     this.shapeContainer2.Size     = new System.Drawing.Size(480, 339);
     this.shapeContainer2.TabIndex = 50;
     this.shapeContainer2.TabStop  = false;
     //
     // lineShape2
     //
     this.lineShape2.BorderColor = System.Drawing.Color.Red;
     this.lineShape2.Name        = "lineShape2";
     this.lineShape2.X1          = -6;
     this.lineShape2.X2          = 294;
     this.lineShape2.Y1          = 35;
     this.lineShape2.Y2          = 35;
     //
     // _PanelNewAccount
     //
     this._PanelNewAccount.Account          = null;
     this._PanelNewAccount.BackColor        = System.Drawing.Color.Transparent;
     this._PanelNewAccount.BorderColor      = System.Drawing.Color.FromArgb(((int)(((byte)(119)))), ((int)(((byte)(119)))), ((int)(((byte)(119)))));
     this._PanelNewAccount.ControlBackColor = System.Drawing.Color.White;
     this._PanelNewAccount.Dock             = System.Windows.Forms.DockStyle.Fill;
     this._PanelNewAccount.DrawHeader       = true;
     this._PanelNewAccount.Font             = new System.Drawing.Font("Segoe UI", 9F);
     this._PanelNewAccount.HeaderColorFrom  = System.Drawing.Color.FromArgb(((int)(((byte)(254)))), ((int)(((byte)(254)))), ((int)(((byte)(254)))));
     this._PanelNewAccount.HeaderColorTo    = System.Drawing.Color.FromArgb(((int)(((byte)(228)))), ((int)(((byte)(228)))), ((int)(((byte)(228)))));
     this._PanelNewAccount.HeaderForeColor  = System.Drawing.Color.FromArgb(((int)(((byte)(100)))), ((int)(((byte)(100)))), ((int)(((byte)(100)))));
     this._PanelNewAccount.HeaderHeight     = 39;
     this._PanelNewAccount.HeaderImage      = null;
     this._PanelNewAccount.HeaderPadding    = new System.Windows.Forms.Padding(10, 5, 10, 5);
     this._PanelNewAccount.HeaderText       = "Add a New Account";
     this._PanelNewAccount.Location         = new System.Drawing.Point(12, 12);
     this._PanelNewAccount.Margin           = new System.Windows.Forms.Padding(12, 0, 0, 0);
     this._PanelNewAccount.Name             = "_PanelNewAccount";
     this._PanelNewAccount.Padding          = new System.Windows.Forms.Padding(2, 45, 2, 2);
     this._PanelNewAccount.SeperatorColor   = System.Drawing.Color.FromArgb(((int)(((byte)(200)))), ((int)(((byte)(200)))), ((int)(((byte)(200)))));
     this._PanelNewAccount.Size             = new System.Drawing.Size(500, 394);
     this._PanelNewAccount.TabIndex         = 5;
     //
     // _CheckUpdates
     //
     this._CheckUpdates.AutoSize = true;
     this._CheckUpdates.Location = new System.Drawing.Point(12, 165);
     this._CheckUpdates.Name     = "_CheckUpdates";
     this._CheckUpdates.Size     = new System.Drawing.Size(123, 19);
     this._CheckUpdates.TabIndex = 51;
     this._CheckUpdates.Text     = "Check for Updates";
     this._CheckUpdates.UseVisualStyleBackColor = true;
     //
     // _LabelSound
     //
     this._LabelSound.AutoSize  = true;
     this._LabelSound.Font      = new System.Drawing.Font("Segoe UI", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this._LabelSound.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(51)))), ((int)(((byte)(153)))));
     this._LabelSound.Location  = new System.Drawing.Point(8, 48);
     this._LabelSound.Name      = "_LabelSound";
     this._LabelSound.Size      = new System.Drawing.Size(39, 21);
     this._LabelSound.TabIndex  = 52;
     this._LabelSound.Text      = "Title";
     //
     // _LabelInterval
     //
     this._LabelInterval.AutoSize = true;
     this._LabelInterval.Location = new System.Drawing.Point(12, 123);
     this._LabelInterval.Name     = "_LabelInterval";
     this._LabelInterval.Size     = new System.Drawing.Size(106, 15);
     this._LabelInterval.TabIndex = 53;
     this._LabelInterval.Text     = "Check Email every:";
     //
     // _LabelMinutes
     //
     this._LabelMinutes.AutoSize = true;
     this._LabelMinutes.Location = new System.Drawing.Point(157, 123);
     this._LabelMinutes.Name     = "_LabelMinutes";
     this._LabelMinutes.Size     = new System.Drawing.Size(58, 15);
     this._LabelMinutes.TabIndex = 54;
     this._LabelMinutes.Text     = "minute(s)";
     //
     // _TextInterval
     //
     this._TextInterval.AllowNegativeValues = true;
     this._TextInterval.Location            = new System.Drawing.Point(124, 122);
     this._TextInterval.Name      = "_TextInterval";
     this._TextInterval.Size      = new System.Drawing.Size(27, 23);
     this._TextInterval.TabIndex  = 55;
     this._TextInterval.Text      = "1";
     this._TextInterval.TextAlign = System.Windows.Forms.HorizontalAlignment.Center;
     //
     // _ComboSound
     //
     this._ComboSound.DropDownStyle     = System.Windows.Forms.ComboBoxStyle.DropDownList;
     this._ComboSound.FlatStyle         = System.Windows.Forms.FlatStyle.System;
     this._ComboSound.FormattingEnabled = true;
     this._ComboSound.Location          = new System.Drawing.Point(12, 80);
     this._ComboSound.Name     = "_ComboSound";
     this._ComboSound.Size     = new System.Drawing.Size(164, 23);
     this._ComboSound.TabIndex = 56;
     //
     // _ButtonBrowse
     //
     this._ButtonBrowse.AutoSize                = true;
     this._ButtonBrowse.Enabled                 = false;
     this._ButtonBrowse.FlatStyle               = System.Windows.Forms.FlatStyle.System;
     this._ButtonBrowse.Location                = new System.Drawing.Point(182, 79);
     this._ButtonBrowse.MinimumSize             = new System.Drawing.Size(65, 23);
     this._ButtonBrowse.Name                    = "_ButtonBrowse";
     this._ButtonBrowse.Size                    = new System.Drawing.Size(68, 26);
     this._ButtonBrowse.TabIndex                = 57;
     this._ButtonBrowse.Text                    = "Browse...";
     this._ButtonBrowse.UseVisualStyleBackColor = true;
     //
     // lineShape1
     //
     this.lineShape1.BorderColor = System.Drawing.Color.Red;
     this.lineShape1.Name        = "lineShape1";
     this.lineShape1.X1          = -3;
     this.lineShape1.X2          = 297;
     this.lineShape1.Y1          = 67;
     this.lineShape1.Y2          = 67;
     //
     // shapeContainer1
     //
     this.shapeContainer1.Location = new System.Drawing.Point(10, 45);
     this.shapeContainer1.Margin   = new System.Windows.Forms.Padding(0);
     this.shapeContainer1.Name     = "shapeContainer1";
     this.shapeContainer1.Shapes.AddRange(new Microsoft.VisualBasic.PowerPacks.Shape[] {
         this.lineShape3,
         this.lineShape1
     });
     this.shapeContainer1.Size     = new System.Drawing.Size(480, 339);
     this.shapeContainer1.TabIndex = 58;
     this.shapeContainer1.TabStop  = false;
     //
     // lineShape3
     //
     this.lineShape3.BorderColor = System.Drawing.Color.Red;
     this.lineShape3.Name        = "lineShape3";
     this.lineShape3.X1          = 1;
     this.lineShape3.X2          = 301;
     this.lineShape3.Y1          = 109;
     this.lineShape3.Y2          = 109;
     //
     // Preferences
     //
     this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
     this.ClientSize          = new System.Drawing.Size(724, 412);
     this.Name = "Preferences";
     this._PanelGeneral.ResumeLayout(false);
     this._PanelGeneral.PerformLayout();
     this._PanelParent.ResumeLayout(false);
     this._PanelAccounts.ResumeLayout(false);
     this._PanelAccounts.PerformLayout();
     this._PanelAppearance.ResumeLayout(false);
     this._PanelAppearance.PerformLayout();
     this.ResumeLayout(false);
 }
Пример #9
0
 private void InitializeComponent()
 {
     this._PanelAccounts = new Shellscape.UI.Controls.Preferences.PreferencesPanel();
     this._LabelAccountIntro = new System.Windows.Forms.Label();
     this._ButtonNewAccount = new System.Windows.Forms.Button();
     this._PanelAppearance = new Shellscape.UI.Controls.Preferences.PreferencesPanel();
     this._CheckToast = new System.Windows.Forms.CheckBox();
     this._CheckTray = new System.Windows.Forms.CheckBox();
     this._CheckFlash = new System.Windows.Forms.CheckBox();
     this._LabelLanguage = new System.Windows.Forms.Label();
     this._ComboLanguage = new System.Windows.Forms.ComboBox();
     this.shapeContainer2 = new Microsoft.VisualBasic.PowerPacks.ShapeContainer();
     this.lineShape2 = new Microsoft.VisualBasic.PowerPacks.LineShape();
     this._PanelNewAccount = new GmailNotifierPlus.Controls.AccountPanel();
     this._CheckUpdates = new System.Windows.Forms.CheckBox();
     this._LabelSound = new System.Windows.Forms.Label();
     this._LabelInterval = new System.Windows.Forms.Label();
     this._LabelMinutes = new System.Windows.Forms.Label();
     this._TextInterval = new Shellscape.UI.Controls.NumericTextBox();
     this._ComboSound = new System.Windows.Forms.ComboBox();
     this._ButtonBrowse = new System.Windows.Forms.Button();
     this.lineShape1 = new Microsoft.VisualBasic.PowerPacks.LineShape();
     this.shapeContainer1 = new Microsoft.VisualBasic.PowerPacks.ShapeContainer();
     this.lineShape3 = new Microsoft.VisualBasic.PowerPacks.LineShape();
     this._PanelGeneral.SuspendLayout();
     this._PanelParent.SuspendLayout();
     this._PanelAccounts.SuspendLayout();
     this._PanelAppearance.SuspendLayout();
     this.SuspendLayout();
     //
     // _PanelGeneral
     //
     this._PanelGeneral.Controls.Add(this._ButtonBrowse);
     this._PanelGeneral.Controls.Add(this._ComboSound);
     this._PanelGeneral.Controls.Add(this._TextInterval);
     this._PanelGeneral.Controls.Add(this._LabelMinutes);
     this._PanelGeneral.Controls.Add(this._LabelInterval);
     this._PanelGeneral.Controls.Add(this._LabelSound);
     this._PanelGeneral.Controls.Add(this._CheckUpdates);
     this._PanelGeneral.Controls.Add(this.shapeContainer1);
     //
     // _PanelParent
     //
     this._PanelParent.Controls.Add(this._PanelAppearance);
     this._PanelParent.Controls.Add(this._PanelAccounts);
     this._PanelParent.Controls.Add(this._PanelNewAccount);
     this._PanelParent.Controls.SetChildIndex(this._PanelNewAccount, 0);
     this._PanelParent.Controls.SetChildIndex(this._PanelGeneral, 0);
     this._PanelParent.Controls.SetChildIndex(this._PanelAccounts, 0);
     this._PanelParent.Controls.SetChildIndex(this._PanelAppearance, 0);
     //
     // _PanelAccounts
     //
     this._PanelAccounts.BackColor = System.Drawing.Color.Transparent;
     this._PanelAccounts.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(119)))), ((int)(((byte)(119)))), ((int)(((byte)(119)))));
     this._PanelAccounts.ControlBackColor = System.Drawing.Color.White;
     this._PanelAccounts.Controls.Add(this._LabelAccountIntro);
     this._PanelAccounts.Controls.Add(this._ButtonNewAccount);
     this._PanelAccounts.Dock = System.Windows.Forms.DockStyle.Fill;
     this._PanelAccounts.DrawHeader = true;
     this._PanelAccounts.Font = new System.Drawing.Font("Segoe UI", 9F);
     this._PanelAccounts.HeaderColorFrom = System.Drawing.Color.FromArgb(((int)(((byte)(254)))), ((int)(((byte)(254)))), ((int)(((byte)(254)))));
     this._PanelAccounts.HeaderColorTo = System.Drawing.Color.FromArgb(((int)(((byte)(228)))), ((int)(((byte)(228)))), ((int)(((byte)(228)))));
     this._PanelAccounts.HeaderForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(100)))), ((int)(((byte)(100)))), ((int)(((byte)(100)))));
     this._PanelAccounts.HeaderHeight = 39;
     this._PanelAccounts.HeaderImage = null;
     this._PanelAccounts.HeaderPadding = new System.Windows.Forms.Padding(10, 5, 10, 5);
     this._PanelAccounts.HeaderText = "Manage your accounts";
     this._PanelAccounts.Location = new System.Drawing.Point(12, 12);
     this._PanelAccounts.Margin = new System.Windows.Forms.Padding(12, 0, 0, 0);
     this._PanelAccounts.Name = "_PanelAccounts";
     this._PanelAccounts.Padding = new System.Windows.Forms.Padding(10, 45, 10, 10);
     this._PanelAccounts.SeperatorColor = System.Drawing.Color.FromArgb(((int)(((byte)(200)))), ((int)(((byte)(200)))), ((int)(((byte)(200)))));
     this._PanelAccounts.Size = new System.Drawing.Size(500, 394);
     this._PanelAccounts.TabIndex = 3;
     //
     // _LabelAccountIntro
     //
     this._LabelAccountIntro.AutoSize = true;
     this._LabelAccountIntro.Location = new System.Drawing.Point(13, 45);
     this._LabelAccountIntro.MaximumSize = new System.Drawing.Size(450, 0);
     this._LabelAccountIntro.Name = "_LabelAccountIntro";
     this._LabelAccountIntro.Size = new System.Drawing.Size(436, 30);
     this._LabelAccountIntro.TabIndex = 1;
     this._LabelAccountIntro.Text = "Click an account to the left to manage your individual accounts. Click the button" +
     " below to add a new account.";
     //
     // _ButtonNewAccount
     //
     this._ButtonNewAccount.AutoSize = true;
     this._ButtonNewAccount.Location = new System.Drawing.Point(292, 92);
     this._ButtonNewAccount.Name = "_ButtonNewAccount";
     this._ButtonNewAccount.Size = new System.Drawing.Size(170, 30);
     this._ButtonNewAccount.TabIndex = 0;
     this._ButtonNewAccount.Text = "Add New Account";
     this._ButtonNewAccount.UseVisualStyleBackColor = true;
     //
     // _PanelAppearance
     //
     this._PanelAppearance.BackColor = System.Drawing.Color.Transparent;
     this._PanelAppearance.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(119)))), ((int)(((byte)(119)))), ((int)(((byte)(119)))));
     this._PanelAppearance.ControlBackColor = System.Drawing.Color.White;
     this._PanelAppearance.Controls.Add(this._CheckToast);
     this._PanelAppearance.Controls.Add(this._CheckTray);
     this._PanelAppearance.Controls.Add(this._CheckFlash);
     this._PanelAppearance.Controls.Add(this._LabelLanguage);
     this._PanelAppearance.Controls.Add(this._ComboLanguage);
     this._PanelAppearance.Controls.Add(this.shapeContainer2);
     this._PanelAppearance.Dock = System.Windows.Forms.DockStyle.Fill;
     this._PanelAppearance.DrawHeader = true;
     this._PanelAppearance.Font = new System.Drawing.Font("Segoe UI", 9F);
     this._PanelAppearance.HeaderColorFrom = System.Drawing.Color.FromArgb(((int)(((byte)(254)))), ((int)(((byte)(254)))), ((int)(((byte)(254)))));
     this._PanelAppearance.HeaderColorTo = System.Drawing.Color.FromArgb(((int)(((byte)(228)))), ((int)(((byte)(228)))), ((int)(((byte)(228)))));
     this._PanelAppearance.HeaderForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(100)))), ((int)(((byte)(100)))), ((int)(((byte)(100)))));
     this._PanelAppearance.HeaderHeight = 39;
     this._PanelAppearance.HeaderImage = null;
     this._PanelAppearance.HeaderPadding = new System.Windows.Forms.Padding(10, 5, 10, 5);
     this._PanelAppearance.HeaderText = "";
     this._PanelAppearance.Location = new System.Drawing.Point(12, 12);
     this._PanelAppearance.Margin = new System.Windows.Forms.Padding(12, 0, 0, 0);
     this._PanelAppearance.Name = "_PanelAppearance";
     this._PanelAppearance.Padding = new System.Windows.Forms.Padding(10, 45, 10, 10);
     this._PanelAppearance.SeperatorColor = System.Drawing.Color.FromArgb(((int)(((byte)(200)))), ((int)(((byte)(200)))), ((int)(((byte)(200)))));
     this._PanelAppearance.Size = new System.Drawing.Size(500, 394);
     this._PanelAppearance.TabIndex = 4;
     //
     // _CheckToast
     //
     this._CheckToast.AutoSize = true;
     this._CheckToast.Location = new System.Drawing.Point(15, 141);
     this._CheckToast.Name = "_CheckToast";
     this._CheckToast.Size = new System.Drawing.Size(231, 19);
     this._CheckToast.TabIndex = 3;
     this._CheckToast.Text = "Show Toast notifications for new Email";
     this._CheckToast.UseVisualStyleBackColor = true;
     //
     // _CheckTray
     //
     this._CheckTray.AutoSize = true;
     this._CheckTray.Location = new System.Drawing.Point(15, 116);
     this._CheckTray.Name = "_CheckTray";
     this._CheckTray.Size = new System.Drawing.Size(201, 19);
     this._CheckTray.TabIndex = 2;
     this._CheckTray.Text = "Show Email count in System Tray";
     this._CheckTray.UseVisualStyleBackColor = true;
     //
     // _CheckFlash
     //
     this._CheckFlash.AutoSize = true;
     this._CheckFlash.Location = new System.Drawing.Point(15, 91);
     this._CheckFlash.Name = "_CheckFlash";
     this._CheckFlash.Size = new System.Drawing.Size(172, 19);
     this._CheckFlash.TabIndex = 1;
     this._CheckFlash.Text = "Flash Taskbar for new Email";
     this._CheckFlash.UseVisualStyleBackColor = true;
     //
     // _LabelLanguage
     //
     this._LabelLanguage.AutoSize = true;
     this._LabelLanguage.Location = new System.Drawing.Point(11, 51);
     this._LabelLanguage.Name = "_LabelLanguage";
     this._LabelLanguage.Size = new System.Drawing.Size(100, 15);
     this._LabelLanguage.TabIndex = 48;
     this._LabelLanguage.Text = "Display language:";
     //
     // _ComboLanguage
     //
     this._ComboLanguage.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
     this._ComboLanguage.FlatStyle = System.Windows.Forms.FlatStyle.System;
     this._ComboLanguage.FormattingEnabled = true;
     this._ComboLanguage.Location = new System.Drawing.Point(117, 48);
     this._ComboLanguage.Name = "_ComboLanguage";
     this._ComboLanguage.Size = new System.Drawing.Size(134, 23);
     this._ComboLanguage.TabIndex = 0;
     //
     // shapeContainer2
     //
     this.shapeContainer2.Location = new System.Drawing.Point(10, 45);
     this.shapeContainer2.Margin = new System.Windows.Forms.Padding(0);
     this.shapeContainer2.Name = "shapeContainer2";
     this.shapeContainer2.Shapes.AddRange(new Microsoft.VisualBasic.PowerPacks.Shape[] {
     this.lineShape2});
     this.shapeContainer2.Size = new System.Drawing.Size(480, 339);
     this.shapeContainer2.TabIndex = 50;
     this.shapeContainer2.TabStop = false;
     //
     // lineShape2
     //
     this.lineShape2.BorderColor = System.Drawing.Color.Red;
     this.lineShape2.Name = "lineShape2";
     this.lineShape2.X1 = -6;
     this.lineShape2.X2 = 294;
     this.lineShape2.Y1 = 35;
     this.lineShape2.Y2 = 35;
     //
     // _PanelNewAccount
     //
     this._PanelNewAccount.Account = null;
     this._PanelNewAccount.BackColor = System.Drawing.Color.Transparent;
     this._PanelNewAccount.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(119)))), ((int)(((byte)(119)))), ((int)(((byte)(119)))));
     this._PanelNewAccount.ControlBackColor = System.Drawing.Color.White;
     this._PanelNewAccount.Dock = System.Windows.Forms.DockStyle.Fill;
     this._PanelNewAccount.DrawHeader = true;
     this._PanelNewAccount.Font = new System.Drawing.Font("Segoe UI", 9F);
     this._PanelNewAccount.HeaderColorFrom = System.Drawing.Color.FromArgb(((int)(((byte)(254)))), ((int)(((byte)(254)))), ((int)(((byte)(254)))));
     this._PanelNewAccount.HeaderColorTo = System.Drawing.Color.FromArgb(((int)(((byte)(228)))), ((int)(((byte)(228)))), ((int)(((byte)(228)))));
     this._PanelNewAccount.HeaderForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(100)))), ((int)(((byte)(100)))), ((int)(((byte)(100)))));
     this._PanelNewAccount.HeaderHeight = 39;
     this._PanelNewAccount.HeaderImage = null;
     this._PanelNewAccount.HeaderPadding = new System.Windows.Forms.Padding(10, 5, 10, 5);
     this._PanelNewAccount.HeaderText = "Add a New Account";
     this._PanelNewAccount.Location = new System.Drawing.Point(12, 12);
     this._PanelNewAccount.Margin = new System.Windows.Forms.Padding(12, 0, 0, 0);
     this._PanelNewAccount.Name = "_PanelNewAccount";
     this._PanelNewAccount.Padding = new System.Windows.Forms.Padding(2, 45, 2, 2);
     this._PanelNewAccount.SeperatorColor = System.Drawing.Color.FromArgb(((int)(((byte)(200)))), ((int)(((byte)(200)))), ((int)(((byte)(200)))));
     this._PanelNewAccount.Size = new System.Drawing.Size(500, 394);
     this._PanelNewAccount.TabIndex = 5;
     //
     // _CheckUpdates
     //
     this._CheckUpdates.AutoSize = true;
     this._CheckUpdates.Location = new System.Drawing.Point(12, 165);
     this._CheckUpdates.Name = "_CheckUpdates";
     this._CheckUpdates.Size = new System.Drawing.Size(123, 19);
     this._CheckUpdates.TabIndex = 51;
     this._CheckUpdates.Text = "Check for Updates";
     this._CheckUpdates.UseVisualStyleBackColor = true;
     //
     // _LabelSound
     //
     this._LabelSound.AutoSize = true;
     this._LabelSound.Font = new System.Drawing.Font("Segoe UI", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this._LabelSound.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(51)))), ((int)(((byte)(153)))));
     this._LabelSound.Location = new System.Drawing.Point(8, 48);
     this._LabelSound.Name = "_LabelSound";
     this._LabelSound.Size = new System.Drawing.Size(39, 21);
     this._LabelSound.TabIndex = 52;
     this._LabelSound.Text = "Title";
     //
     // _LabelInterval
     //
     this._LabelInterval.AutoSize = true;
     this._LabelInterval.Location = new System.Drawing.Point(12, 123);
     this._LabelInterval.Name = "_LabelInterval";
     this._LabelInterval.Size = new System.Drawing.Size(106, 15);
     this._LabelInterval.TabIndex = 53;
     this._LabelInterval.Text = "Check Email every:";
     //
     // _LabelMinutes
     //
     this._LabelMinutes.AutoSize = true;
     this._LabelMinutes.Location = new System.Drawing.Point(157, 123);
     this._LabelMinutes.Name = "_LabelMinutes";
     this._LabelMinutes.Size = new System.Drawing.Size(58, 15);
     this._LabelMinutes.TabIndex = 54;
     this._LabelMinutes.Text = "minute(s)";
     //
     // _TextInterval
     //
     this._TextInterval.AllowNegativeValues = true;
     this._TextInterval.Location = new System.Drawing.Point(124, 122);
     this._TextInterval.Name = "_TextInterval";
     this._TextInterval.Size = new System.Drawing.Size(27, 23);
     this._TextInterval.TabIndex = 55;
     this._TextInterval.Text = "1";
     this._TextInterval.TextAlign = System.Windows.Forms.HorizontalAlignment.Center;
     //
     // _ComboSound
     //
     this._ComboSound.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
     this._ComboSound.FlatStyle = System.Windows.Forms.FlatStyle.System;
     this._ComboSound.FormattingEnabled = true;
     this._ComboSound.Location = new System.Drawing.Point(12, 80);
     this._ComboSound.Name = "_ComboSound";
     this._ComboSound.Size = new System.Drawing.Size(164, 23);
     this._ComboSound.TabIndex = 56;
     //
     // _ButtonBrowse
     //
     this._ButtonBrowse.AutoSize = true;
     this._ButtonBrowse.Enabled = false;
     this._ButtonBrowse.FlatStyle = System.Windows.Forms.FlatStyle.System;
     this._ButtonBrowse.Location = new System.Drawing.Point(182, 79);
     this._ButtonBrowse.MinimumSize = new System.Drawing.Size(65, 23);
     this._ButtonBrowse.Name = "_ButtonBrowse";
     this._ButtonBrowse.Size = new System.Drawing.Size(68, 26);
     this._ButtonBrowse.TabIndex = 57;
     this._ButtonBrowse.Text = "Browse...";
     this._ButtonBrowse.UseVisualStyleBackColor = true;
     //
     // lineShape1
     //
     this.lineShape1.BorderColor = System.Drawing.Color.Red;
     this.lineShape1.Name = "lineShape1";
     this.lineShape1.X1 = -3;
     this.lineShape1.X2 = 297;
     this.lineShape1.Y1 = 67;
     this.lineShape1.Y2 = 67;
     //
     // shapeContainer1
     //
     this.shapeContainer1.Location = new System.Drawing.Point(10, 45);
     this.shapeContainer1.Margin = new System.Windows.Forms.Padding(0);
     this.shapeContainer1.Name = "shapeContainer1";
     this.shapeContainer1.Shapes.AddRange(new Microsoft.VisualBasic.PowerPacks.Shape[] {
     this.lineShape3,
     this.lineShape1});
     this.shapeContainer1.Size = new System.Drawing.Size(480, 339);
     this.shapeContainer1.TabIndex = 58;
     this.shapeContainer1.TabStop = false;
     //
     // lineShape3
     //
     this.lineShape3.BorderColor = System.Drawing.Color.Red;
     this.lineShape3.Name = "lineShape3";
     this.lineShape3.X1 = 1;
     this.lineShape3.X2 = 301;
     this.lineShape3.Y1 = 109;
     this.lineShape3.Y2 = 109;
     //
     // Preferences
     //
     this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
     this.ClientSize = new System.Drawing.Size(724, 412);
     this.Name = "Preferences";
     this._PanelGeneral.ResumeLayout(false);
     this._PanelGeneral.PerformLayout();
     this._PanelParent.ResumeLayout(false);
     this._PanelAccounts.ResumeLayout(false);
     this._PanelAccounts.PerformLayout();
     this._PanelAppearance.ResumeLayout(false);
     this._PanelAppearance.PerformLayout();
     this.ResumeLayout(false);
 }