public GettingStarted ()
		{
			view = new UIView ();
			label = new UILabel ();
			label.Text = "Getting Started";
			label.Frame=new  CGRect(0,0,300,30);
			//view.AddSubview (label);
			tree = new SFTreeMap ();
			tree.LeafItemSettings = new SFLeafItemSetting ();
			tree.LeafItemSettings.LabelStyle = new SFStyle () { Font = UIFont.SystemFontOfSize (12), Color = UIColor.White };
			tree.LeafItemSettings.LabelPath = (NSString)"Label";
			tree.LeafItemSettings.ShowLabels = true;
			tree.LeafItemSettings.Gap = 2;
			tree.LeafItemSettings.BorderColor=UIColor.Gray;
			tree.LeafItemSettings.BorderWidth = 1;
			NSMutableArray ranges = new NSMutableArray ();
			ranges.Add (new SFRange () {
				LegendLabel = (NSString)"1 % Growth",
				From = 0,
				To = 1,
				Color = UIColor.FromRGB (0x77, 0xD8, 0xD8)
			});
			ranges.Add (new SFRange () {
				LegendLabel = (NSString)"2 % Growth",
				From = 0,
				To = 2,
				Color = UIColor.FromRGB (0xAE, 0xD9, 0x60)
			});
			ranges.Add (new SFRange () {
				LegendLabel = (NSString)"3 % Growth",
				From = 0,
				To = 3,
				Color = UIColor.FromRGB (0xFF, 0xAF, 0x51)
			});
			ranges.Add (new SFRange () {
				LegendLabel = (NSString)"4 % Growth",
				From = 0,
				To = 4,
				Color = UIColor.FromRGB (0xF3, 0xD2, 0x40)
			});
			tree.LeafItemColorMapping = new SFRangeColorMapping () { Ranges = ranges };
			CGSize legendSize = new CGSize (this.Frame.Size.Width, 60);
			CGSize iconSize = new CGSize (17, 17);
			UIColor legendColor = UIColor.Gray;
			tree.LegendSettings = new SFLegendSetting () {
				LabelStyle = new SFStyle () {
					Font = UIFont.SystemFontOfSize (12),
					Color = legendColor
				},
				IconSize = iconSize,
				ShowLegend = true,
				Size = legendSize
			};
			GetPopulationData ();
			tree.Items = PopulationDetails;


			AddSubview (view);
			control = this;
		}
        /// <summary>
        /// Required method for Designer support - do not modify
        /// the contents of this method with the code editor.
        /// </summary>
        private void InitializeComponent()
        {
            components = new System.ComponentModel.Container();
            tmrApp = new System.Windows.Forms.Timer(components)
            {
                Interval = 2,
                Enabled = true
            };
            SuspendLayout();
            // 
            // tmrApp
            // 
            tmrApp.Tick += new System.EventHandler(tmrApp_Tick);
            // 
            // Maze_Form
            // 
            AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
            AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
            BackColor = System.Drawing.Color.FromArgb(31,31,31);
            ClientSize = new System.Drawing.Size(484, 461);
            DoubleBuffered = true;
            KeyPreview = true;
            Name = "MazeForm";
            Text = "Maze AI";
            Load += new System.EventHandler(Form1_Load);
            Paint += new System.Windows.Forms.PaintEventHandler(Form1_Paint);
            KeyDown += new System.Windows.Forms.KeyEventHandler(Form1_KeyDown);
            MouseClick += new System.Windows.Forms.MouseEventHandler(Form1_LeftClick);
            MouseMove += new System.Windows.Forms.MouseEventHandler(Form1_MouseMove);
            Resize += new System.EventHandler(Form1_Resize);
            Shown += new System.EventHandler(OnShow);
            ResumeLayout(false);

        }
        /// <summary>
        /// Required method for Designer support - do not modify
        /// the contents of this method with the code editor.
        /// </summary>
        private void InitializeComponent()
        {
            button1 = new System.Windows.Forms.Button();
            SuspendLayout();
            // 
            // button1
            // 
            button1.Location = new System.Drawing.Point(52, 36);
            button1.Name = "button1";
            button1.Size = new System.Drawing.Size(75, 23);
            button1.TabIndex = 0;
            button1.Text = "button1";
            button1.UseVisualStyleBackColor = true;
            // 
            // GameMusic
            // 
            AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
            AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
            ClientSize = new System.Drawing.Size(534, 311);
            Controls.Add(button1);
            Name = "GameMusic";
            Text = "GameMusic";
            FormClosing += new System.Windows.Forms.FormClosingEventHandler(GameMusic_FormClosing);
            ResumeLayout(false);

        }
        /// <summary>
        /// Required method for Designer support - do not modify
        /// the contents of this method with the code editor.
        /// </summary>
        private void InitializeComponent()
        {
            pictureBox1 = new System.Windows.Forms.PictureBox();
            ((System.ComponentModel.ISupportInitialize)(pictureBox1)).BeginInit();
            SuspendLayout();
            // 
            // pictureBox1
            // 
            pictureBox1.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
            pictureBox1.Location = new System.Drawing.Point(12, 12);
            pictureBox1.Name = "pictureBox1";
            pictureBox1.Size = new System.Drawing.Size(1024, 512);
            pictureBox1.TabIndex = 0;
            pictureBox1.TabStop = false;
            // 
            // Form1
            // 
            AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
            AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
            ClientSize = new System.Drawing.Size(1051, 533);
            Controls.Add(pictureBox1);
            Name = "Form1";
            Text = "Form1";
            ((System.ComponentModel.ISupportInitialize)(pictureBox1)).EndInit();
            ResumeLayout(false);

        }
Exemple #5
0
        public void Paint(System.Drawing.Graphics grfx, float width, float height)
        {
            coordinateSystem.ComputeMinMaxBox(out min, out max);

            width -= 2 * padding;
            height -= 2 * padding;
            ratio = (float)Math.Min(width / (max.X - min.X), height / (max.Y - min.Y));

            foreach (Point point in coordinateSystem.PartialMap.Points)
            {
                System.Drawing.SizeF sz = new System.Drawing.SizeF(1, 1);
                System.Drawing.PointF pt = PointToScreen(point);
                pt.X -= sz.Width / 2;
                pt.Y -= sz.Height / 2;
                System.Drawing.RectangleF rect = new System.Drawing.RectangleF(pt, sz);
                grfx.FillPie(System.Drawing.Brushes.Gray, pt.X, pt.Y, sz.Width, sz.Height, 0, 360);
            }
            foreach (Edge edge in coordinateSystem.PartialMap.Edges)
                grfx.DrawLine(System.Drawing.Pens.Black, PointToScreen(edge.P1), PointToScreen(edge.P2));
            foreach (Zeebot zeebot in zeebots)
            {
                System.Drawing.SizeF sz = new System.Drawing.SizeF(4, 4);
                System.Drawing.PointF pt = PointToScreen(zeebot.Location);
                pt.X -= sz.Width / 2;
                pt.Y -= sz.Height / 2;
                System.Drawing.RectangleF rect = new System.Drawing.RectangleF(pt, sz);
                grfx.FillPie(System.Drawing.Brushes.Green, pt.X, pt.Y, sz.Width, sz.Height, 0, 360);
            }
        }
		public LoadBuyPayoutViewController ()
		{
			Title = "Pay out buy";
			PreferredContentSize = new System.Drawing.SizeF (500, 480);
			TableView.CellIdentifier = BuyInvoiceCell.Key;
			TableView.CreateCellFunc = () => new BuyInvoiceCell ();
			TableView.BindCellAction = (cell, obj) => (cell as BuyInvoiceCell).Invoice = obj as BuyInvoice;
		}
 public override void Draw(System.Drawing.Graphics g)
 {
     System.Drawing.SolidBrush solidBrush = new System.Drawing.SolidBrush(Color);
     System.Drawing.PointF upperLeftPoint = new System.Drawing.PointF((float)(Center.X - RadiusX), (float)(Center.Y - RadiusY));
     System.Drawing.SizeF rectSize = new System.Drawing.SizeF((float)(2 * RadiusX), (float)(2 * RadiusY));
     System.Drawing.RectangleF rect = new System.Drawing.RectangleF(upperLeftPoint, rectSize);
     g.FillEllipse(solidBrush, rect);
     solidBrush.Dispose();
 }
 public override void Draw(System.Drawing.Graphics g)
 {
     System.Drawing.SolidBrush solidBrush = new System.Drawing.SolidBrush(Color);
     System.Drawing.PointF upperLeftPoint = new System.Drawing.PointF((float)(Center.X - Width / 2), (float)(Center.Y - Height / 2));
     System.Drawing.SizeF rectSize = new System.Drawing.SizeF((float)Width, (float)Height);
     System.Drawing.RectangleF rect = new System.Drawing.RectangleF(upperLeftPoint, rectSize);
     g.FillRectangle(solidBrush, rect);
     solidBrush.Dispose();
 }
        /// <summary>
        /// Required method for Designer support - do not modify
        /// the contents of this method with the code editor.
        /// </summary>
        private void InitializeComponent()
        {
            button1 = new System.Windows.Forms.Button();
            button2 = new System.Windows.Forms.Button();
            button3 = new System.Windows.Forms.Button();
            SuspendLayout();
            // 
            // button1
            // 
            button1.Enabled = false;
            button1.Font = new System.Drawing.Font("Star Jedi", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            button1.Location = new System.Drawing.Point(12, 12);
            button1.Name = "button1";
            button1.Size = new System.Drawing.Size(135, 60);
            button1.TabIndex = 0;
            button1.Text = "game music";
            button1.UseVisualStyleBackColor = true;
            button1.Click += new System.EventHandler(button1_Click);
            // 
            // button2
            // 
            button2.Font = new System.Drawing.Font("Star Jedi", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            button2.Location = new System.Drawing.Point(199, 12);
            button2.Name = "button2";
            button2.Size = new System.Drawing.Size(135, 60);
            button2.TabIndex = 1;
            button2.Text = "game art";
            button2.UseVisualStyleBackColor = true;
            button2.Click += new System.EventHandler(button2_Click);
            // 
            // button3
            // 
            button3.Enabled = false;
            button3.Font = new System.Drawing.Font("Star Jedi", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            button3.Location = new System.Drawing.Point(386, 12);
            button3.Name = "button3";
            button3.Size = new System.Drawing.Size(135, 60);
            button3.TabIndex = 2;
            button3.Text = "profession videos";
            button3.UseVisualStyleBackColor = true;
            // 
            // SWGGameArchives
            // 
            AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
            AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
            BackColor = System.Drawing.Color.DarkSlateGray;
            ClientSize = new System.Drawing.Size(534, 91);
            Controls.Add(button3);
            Controls.Add(button2);
            Controls.Add(button1);
            Name = "SWGGameArchives";
            StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen;
            Text = "SWG Game Archive Selection";
            ResumeLayout(false);

        }
Exemple #10
0
 /// <summary>
 /// Initializes a new LabelStyle
 /// </summary>
 public LabelStyle()
 {
     _Font = new System.Drawing.Font("Times New Roman", 12f);
     _Offset = new System.Drawing.PointF(0, 0);
     _CollisionDetection = false;
     _CollisionBuffer = new System.Drawing.Size(0, 0);
     _ForeColor = System.Drawing.Color.Black;
     _HorisontalAlignment = HorizontalAlignmentEnum.Center;
     _VerticalAlignment = VerticalAlignmentEnum.Middle;
 }
        public Size GetSize(object backend)
        {
            LayoutInfo li = (LayoutInfo)backend;
            if (li.Framesetter == null)
                return Size.Zero;

            NSRange unused;
            SizeF constraint = new SizeF (li.Width ?? float.MaxValue, float.MaxValue);
            return li.Framesetter.SuggestFrameSize (new NSRange (0, li.Text.Length), null, constraint, out unused).ToXwtSize ();
        }
		/// <summary>
		/// Required method for Designer support - do not modify
		/// the contents of this method with the code editor.
		/// </summary>
		void InitializeComponent() {
			treeView1 = new System.Windows.Forms.TreeView();
			richTextBox1 = new System.Windows.Forms.RichTextBox();
			tableLayoutPanel1 = new System.Windows.Forms.TableLayoutPanel();
			tableLayoutPanel1.SuspendLayout();
			SuspendLayout();
			// 
			// treeView1
			// 
			treeView1.Dock = System.Windows.Forms.DockStyle.Fill;
			treeView1.Location = new System.Drawing.Point(13, 13);
			treeView1.Name = "treeView1";
			treeView1.Size = new System.Drawing.Size(114, 391);
			treeView1.TabIndex = 0;
			// 
			// richTextBox1
			// 
			richTextBox1.Dock = System.Windows.Forms.DockStyle.Fill;
			richTextBox1.Location = new System.Drawing.Point(133, 13);
			richTextBox1.Name = "richTextBox1";
			richTextBox1.ReadOnly = true;
			richTextBox1.ShortcutsEnabled = false;
			richTextBox1.Size = new System.Drawing.Size(432, 391);
			richTextBox1.TabIndex = 1;
			richTextBox1.Text = "";
			// 
			// tableLayoutPanel1
			// 
			tableLayoutPanel1.ColumnCount = 2;
			tableLayoutPanel1.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Absolute, 120F));
			tableLayoutPanel1.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 100F));
			tableLayoutPanel1.Controls.Add(treeView1);
			tableLayoutPanel1.Controls.Add(richTextBox1, 1, 0);
			tableLayoutPanel1.Dock = System.Windows.Forms.DockStyle.Fill;
			tableLayoutPanel1.Location = new System.Drawing.Point(0, 0);
			tableLayoutPanel1.Name = "tableLayoutPanel1";
			tableLayoutPanel1.Padding = new System.Windows.Forms.Padding(10);
			tableLayoutPanel1.RowCount = 1;
			tableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 100F));
			tableLayoutPanel1.Size = new System.Drawing.Size(578, 417);
			tableLayoutPanel1.TabIndex = 2;
			// 
			// HelpForm
			// 
			AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
			AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
			ClientSize = new System.Drawing.Size(578, 417);
			Controls.Add(tableLayoutPanel1);
			Name = "HelpForm";
			Text = "HelpForm";
			tableLayoutPanel1.ResumeLayout(false);
			ResumeLayout (false);

		}
Exemple #13
0
		public static NSImageRep Resize(this NSImageRep image, CGSize newsize, ImageInterpolation interpolation = ImageInterpolation.Default, CGSize? imageSize = null)
		{
			var newrep = new NSBitmapImageRep(IntPtr.Zero, (nint)newsize.Width, (nint)newsize.Height, 8, 4, true, false, NSColorSpace.DeviceRGB, 4 * (nint)newsize.Width, 32);
			newrep.Size = imageSize ?? newsize;

			var graphics = NSGraphicsContext.FromBitmap(newrep);
			NSGraphicsContext.GlobalSaveGraphicsState();
			NSGraphicsContext.CurrentContext = graphics;
			graphics.GraphicsPort.InterpolationQuality = interpolation.ToCG();
			image.DrawInRect(new CGRect(CGPoint.Empty, newrep.Size), CGRect.Empty, NSCompositingOperation.SourceOver, 1f, true, DrawHints);
			NSGraphicsContext.GlobalRestoreGraphicsState();
			return newrep;
		}
        public CustomerSearchViewController()
        {
            this.Title = "Customer Search";
            this.EdgesForExtendedLayout = UIRectEdge.None;
            this.NavigationItem.RightBarButtonItem = new UIBarButtonItem(UIBarButtonSystemItem.Add,(s,e)=>{
                this.NavigationController.PushViewController(new CustomerInformationViewController{
                    Customer = new Customer(),
                    Popover = Popover,
                    Created = (c) =>{
                        CustomerPicked (c);
                    }
                },true);
            });
            this.NavigationItem.LeftBarButtonItem = new UIBarButtonItem ("Cash Customer", UIBarButtonItemStyle.Plain ,async (s, e) => {
                var cust = await  Database.Main.GetCashCustomer();
                CustomerPicked(cust);
            });
            PreferredContentSize = new System.Drawing.SizeF (700, 400);
            View.Add (searchBar = new UISearchBar{
                //SearchBarStyle = UISearchBarStyle.Minimal,
                BarStyle = UIBarStyle.Black,
                Translucent = true,
            });
            searchBar.SearchButtonClicked += async (object sender, EventArgs e) => {
                source.State = SearchSource.SearchState.Searching;
                tableView.ReloadData();

                var results = await WebService.Main.SearchCustomer(searchBar.Text);
                if(results == null)
                    source.State = SearchSource.SearchState.Error;
                else{
                    source.Customers = results;
                    source.State = SearchSource.SearchState.Completed;
                }
                tableView.ReloadData();

            };
            var tv = getTextField (searchBar);
            searchBar.Subviews.ForEach (x => {
                Console.WriteLine(x.GetType());
            });
            searchBar.Subviews.OfType<UITextField> ().ForEach (x => {
                x.TextColor = UIColor.White;
            });
            searchBar.SizeToFit ();
            View.Add (tableView = new UITableView{
                Source = (source = new SearchSource()),
                RowHeight = 75,
            });
        }
		public override void LayoutSubviews ()
		{
			base.LayoutSubviews ();
			CGSize size 			= new CGSize ();
			NSString labelString 	= (NSString) this.TextLabel.Text ;

			if (labelString != null) {
				UIStringAttributes attribs 			= new UIStringAttributes { Font = this.TextLabel.Font };
				size 								= labelString.GetSizeUsingAttributes (attribs);
				this.DetailTextLabel.Font 			= UIFont.FromName ("Helvetica", 10f);
				this.DetailTextLabel.Frame 			= new CGRect (size.Width + 20, 5, 60, 30);
				this.DetailTextLabel.TextAlignment 	= UITextAlignment.Left;
			}
		}
        protected override void Initialise()
        {
            lblVersion.Text = "Version " + 
                System.Reflection.Assembly.GetExecutingAssembly().GetName().Version.ToString();
            textBoxDescription.Text = GPLNotice;
            linkLabel1.Size = new System.Drawing.Size(92, 13);
            linkLabel1.Text = "Stephen Kennedy";

            AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
            ClientSize = new System.Drawing.Size(262, 207);
            Text = "AWB Server Plugin";
            ResumeLayout(false);
            PerformLayout();
        }
		/// <summary> 
		/// Required method for Designer support - do not modify 
		/// the contents of this method with the code editor.
		/// </summary>
		void InitializeComponent() {
			SuspendLayout();
			// 
			// ShapeContainer
			// 
			AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
			AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
			Name = "ShapeContainer";
			MouseMove += new System.Windows.Forms.MouseEventHandler(ShapeContainer_MouseMove);
			MouseDoubleClick += new System.Windows.Forms.MouseEventHandler(ShapeContainer_MouseDoubleClick);
			MouseDown += new System.Windows.Forms.MouseEventHandler(ShapeContainer_MouseDown);
			MouseUp += new System.Windows.Forms.MouseEventHandler(ShapeContainer_MouseUp);
			ResumeLayout (false);

		}
        public MineGridViewControllerCellLayout()
            : base()
        {
            var width = UIScreen.MainScreen.Bounds.Width;
            var height = UIScreen.MainScreen.Bounds.Height;
            var spacing = 3.0f;
            var totalMargin = width - CollectionView.Bounds.Width;
            var numberCols = 8.0f;
            var cellsize = ((width - totalMargin) / numberCols) - spacing;
            //var margin = totalMargin / 2;
            //var topMargin = 40 / 2;

            MinimumInteritemSpacing = spacing;
            MinimumLineSpacing = spacing;
            ItemSize = new System.Drawing.SizeF(cellsize, cellsize);
        }
		public override void LayoutSubviews ()
		{
			base.LayoutSubviews ();
			CGSize size 			= new CGSize ();
			NSString labelString 	= (NSString) this.TextLabel.Text ;
			if (labelString != null) {
				UIStringAttributes attribs 	= new UIStringAttributes { Font = this.TextLabel.Font };
				size 						= labelString.GetSizeUsingAttributes (attribs);
				this.DetailTextLabel.Font 	= UIFont.FromName ("Helvetica", 10f);
				this.DetailTextLabel.Frame 	= new CGRect (size.Width + 66f, 10f, 49.5f, 30f);

				if (UIDevice.CurrentDevice.UserInterfaceIdiom == UIUserInterfaceIdiom.Pad) {
					this.DetailTextLabel.Frame = new CGRect (size.Width + 70, 10, 49.5f, 30f);
				}
			}
		}
   /// <summary>
   /// Required method for Designer support - do not modify
   /// the contents of this method with the code editor.
   /// </summary>
   private void InitializeComponent()
   {
      System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(MakeMonitor));
      SuspendLayout();
      // 
      // MakeMonitor
      // 
      AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
      AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
      ClientSize = new System.Drawing.Size(284, 262);
      Icon = ((System.Drawing.Icon)(resources.GetObject("$Icon")));
      Name = "MakeMonitor";
      Text = "Make Monitor";
      Load += new System.EventHandler(MakeMonitor_Load);
      Resize += new System.EventHandler(MakeMonitor_Resize);
      ResumeLayout(false);

   }
 /// <summary>
 /// Required method for Designer support - do not modify
 /// the contents of this method with the code editor.
 /// </summary>
 private void InitializeComponent()
 {
   tabControl1 = new System.Windows.Forms.TabControl();
   SuspendLayout();
   tabControl1.Dock = System.Windows.Forms.DockStyle.Fill;
   tabControl1.Location = new System.Drawing.Point(0, 0);
   tabControl1.Name = "tabControl1";
   tabControl1.SelectedIndex = 0;
   tabControl1.Size = new System.Drawing.Size(341, 225);
   tabControl1.SizeMode = System.Windows.Forms.TabSizeMode.FillToRight;
   tabControl1.TabIndex = 1;
   AutoScaleDimensions = new System.Drawing.SizeF(7.0F, 11.0F);
   AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
   ClientSize = new System.Drawing.Size(341, 225);
   Controls.Add(tabControl1);
   Font = new System.Drawing.Font("Lucida Console", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, 0);
   Name = "ElementInformation";
   TabText = "ElementInformation";
   Text = "ElementInformation";
   ResumeLayout(false);
 }
 public override void ViewDidLoad ()
 {
     base.ViewDidLoad ();
     
     whiteButton.TouchUpInside += delegate {
         NSUserDefaults.StandardUserDefaults["TableColor"] = NSNumber.FromInt32 (1);
         Popover.Dismiss (true);
     };
     
     grayButton.TouchUpInside += delegate { 
         NSUserDefaults.StandardUserDefaults["TableColor"] = NSNumber.FromInt32 (2); 
         Popover.Dismiss (true);
     };
     
     redButton.TouchUpInside += delegate { 
         NSUserDefaults.StandardUserDefaults["TableColor"] = NSNumber.FromInt32 (3); 
         Popover.Dismiss (true);
     };
     
     ContentSizeForViewInPopover = new System.Drawing.SizeF( 320, 180);
 }
        /// <summary> 
        /// Required method for Designer support - do not modify 
        /// the contents of this method with the code editor.
        /// </summary>
        private void InitializeComponent()
        {
           components = new System.ComponentModel.Container();
           toolTip1 = new System.Windows.Forms.ToolTip(this.components);
           SuspendLayout();
            // 
            // QuickMouseMenuUC
            // 
           AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
           AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
           BackColor = System.Drawing.SystemColors.ActiveCaption;
           ClientSize = new System.Drawing.Size(184, 164);
           FormBorderStyle = System.Windows.Forms.FormBorderStyle.None;
           Name = "QuickMouseMenuUC";
           ShowInTaskbar = false;
           StartPosition = System.Windows.Forms.FormStartPosition.Manual;
           TopMost = true;
           TransparencyKey = System.Drawing.SystemColors.ActiveCaption;
           MouseLeave += new System.EventHandler(this.QuickMouseMenuUC_MouseLeave);
           ResumeLayout(false);

        }
        /// <summary>
        /// Required method for Designer support - do not modify
        /// the contents of this method with the code editor.
        /// </summary>
        private void InitializeComponent()
        {
            this.components = new System.ComponentModel.Container();
            this.tmrMenu = new System.Windows.Forms.Timer(this.components);
            this.imgDisplay = new System.Windows.Forms.PictureBox();
            ((System.ComponentModel.ISupportInitialize)(this.imgDisplay)).BeginInit();
            //this.SuspendLayout();
            // 
            // tmrMenu
            // 
            this.tmrMenu.Interval = 1;
            this.tmrMenu.Tick += new System.EventHandler(tmrMenu_Tick);
            // 
            // imgDisplay
            // 
            this.imgDisplay.Location = new System.Drawing.Point(51, 31);
            this.imgDisplay.Name = "imgDisplay";
            this.imgDisplay.Size = new System.Drawing.Size(100, 50);
            this.imgDisplay.TabIndex = 0;
            this.imgDisplay.TabStop = false;
            this.imgDisplay.Click += new System.EventHandler(this.imgDisplay_Click);
            this.imgDisplay.MouseEnter += new System.EventHandler(this.imgDisplay_MouseEnter);
            this.imgDisplay.MouseLeave += new System.EventHandler(this.imgDisplay_MouseLeave);
            this.imgDisplay.MouseMove += new System.Windows.Forms.MouseEventHandler(this.imgDisplay_MouseMove);
            // 
            // frmMenu
            // 
            AutoScaleDimensions = new System.Drawing.SizeF(8F, 16F);
            this.AutoScaleMode = global::System.Windows.Forms.AutoScaleMode.Font;
            this.ClientSize = new System.Drawing.Size(723, 451);
            this.Controls.Add(this.imgDisplay);
            this.Name = "FrmMenu";
            this.Text = "frmMenu";
            this.Load += new System.EventHandler(this.frmMenu_Load);
            ((System.ComponentModel.ISupportInitialize)(this.imgDisplay)).EndInit();
            this.ResumeLayout(false);

        }
Exemple #25
0
        //Does it work with column name?
        public static int AutoSizeCol(System.Windows.Forms.DataGrid dataGrid, System.Windows.Forms.DataGridColumnStyle columnStyle, int aNumRows)
        {
            float width = 0;
            int numRows = aNumRows;
            System.Windows.Forms.DataGridTableStyle dgStyle = columnStyle.DataGridTableStyle;
            int col = dgStyle.GridColumnStyles.IndexOf(columnStyle);

            System.Drawing.Graphics g = System.Drawing.Graphics.FromHwnd(dataGrid.Handle);
            System.Drawing.StringFormat sf = new System.Drawing.StringFormat(System.Drawing.StringFormat.GenericTypographic);
            System.Drawing.SizeF size = new System.Drawing.SizeF(0,0);

            //Calculate the largest width in the column and set the column width to that value
            for(int i = 0; i < numRows; ++ i)
            {
                try
                {
                    size = g.MeasureString(dataGrid[i, col].ToString(), dataGrid.Font, 500, sf);
                }
                catch
                {
                    Debug.WriteLine("AutoSizeCol: Exception thrown");
                }

                if(size.Width > width)
                    width = size.Width;
            }

            //Measure the header text as well
            size = g.MeasureString(columnStyle.HeaderText, dataGrid.HeaderFont, 500, sf);

            if(size.Width > width)
                width = size.Width;

            g.Dispose();
            columnStyle.Width = (int) width + 12; // 8 is for leading and trailing padding

            return columnStyle.Width;
        }
        /// <summary> 
        /// Required method for Designer support - do not modify 
        /// the contents of this method with the code editor.
        /// </summary>
        private void InitializeComponent()
        {
            txtSiteMapUrl = new System.Windows.Forms.TextBox();
            lblSiteMapUrl = new System.Windows.Forms.Label();
            SuspendLayout();
            // 
            // txtSiteMapUrl
            // 
            txtSiteMapUrl.Font = new System.Drawing.Font("Segoe UI", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            txtSiteMapUrl.Location = new System.Drawing.Point(210, 3);
            txtSiteMapUrl.Name = "txtSiteMapUrl";
            txtSiteMapUrl.Size = new System.Drawing.Size(280, 22);
            txtSiteMapUrl.TabIndex = 8;
            // 
            // lblSiteMapUrl
            // 
            lblSiteMapUrl.AutoSize = true;
            lblSiteMapUrl.Font = new System.Drawing.Font("Segoe UI", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            lblSiteMapUrl.Location = new System.Drawing.Point(3, 6);
            lblSiteMapUrl.Name = "lblSiteMapUrl";
            lblSiteMapUrl.Size = new System.Drawing.Size(22, 13);
            lblSiteMapUrl.TabIndex = 7;
            lblSiteMapUrl.Text = "Url";
            // 
            // SiteMapControl
            // 
            AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
            AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
            Controls.Add(txtSiteMapUrl);
            Controls.Add(lblSiteMapUrl);
            Name = "SiteMapControl";
            Size = new System.Drawing.Size(500, 400);
            Leave += new System.EventHandler(SiteMapControl_Leave);
            ResumeLayout(false);
            PerformLayout();

        }
		/// <summary> 
		/// Required method for Designer support - do not modify 
		/// the contents of this method with the code editor.
		/// </summary>
		public void InitializeComponent()
		{
			System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(HostControl));

			if (Interface == null)
			{
				Interface = new SecureDeleteWinForms.MainForm();
				// 
				// Interface
				// 
				Interface.Dock = System.Windows.Forms.DockStyle.Fill;
				Interface.Location = new System.Drawing.Point(0, 0);
				Interface.Minimal = true;
				Interface.Name = "Interface";
				Interface.Size = new System.Drawing.Size(666, 484);
				Interface.TabIndex = 0;
			}

			// 
			// HostControl
			// 
			SuspendLayout();
			AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
			AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;

			if (Interface.Parent != null)
			{
				Interface.Parent.Controls.Clear();
			}

			Controls.Add(Interface);

			Name = "HostControl";
			Size = new System.Drawing.Size(666, 484);
			ResumeLayout(false);
		}
Exemple #28
0
 public static System.Drawing.SizeF Add(System.Drawing.SizeF sz1, System.Drawing.SizeF sz2)
 {
     throw null;
 }
Exemple #29
0
 /// <summary>
 /// Creates a new D2dBitmapGraphics with specified DIP size for use during intermediate offscreen drawing
 /// that is compatible with the current D2dGraphics and has the same DPI, and pixel format
 /// as the current D2dGraphics and with the specified options</summary>        
 /// <param name="size">The desired size of the new D2dGraphics in pixels</param>
 /// <param name="options">Whether the new D2dBitmapGraphics must be compatible with GDI</param> 
 /// <returns>D2dBitmapGraphics with specified DIP size for use during intermediate offscreen drawing</returns>
 public D2dBitmapGraphics CreateCompatibleGraphics(SizeF size, D2dCompatibleGraphicsOptions options)
 {
     var rt = new BitmapRenderTarget(m_renderTarget, (CompatibleRenderTargetOptions)options, size.ToSharpDX(), null, null);
     return new D2dBitmapGraphics(this, rt);
 }
Exemple #30
0
 public static System.Drawing.PointF Subtract(System.Drawing.PointF pt, System.Drawing.SizeF sz)
 {
     throw null;
 }
Exemple #31
0
 public static System.Drawing.PointF Add(System.Drawing.PointF pt, System.Drawing.SizeF sz)
 {
     throw null;
 }
Exemple #32
0
 protected System.Drawing.RectangleF DrawYAxisTitle(System.Drawing.Graphics graphics, System.Drawing.RectangleF rectangle, string yAxisTitle, System.Drawing.Font axisFont, System.Drawing.SizeF yAxisTitleSize, float y, System.Drawing.Brush axisForeColorBrush)
 {
     graphics.TranslateTransform(rectangle.Left, rectangle.Top + ((rectangle.Height - y) / 2) + (yAxisTitleSize.Width / 2));
     graphics.RotateTransform(-90.0f);
     DrawString(graphics, yAxisTitle, axisFont, axisForeColorBrush, 0.0f, 0.0f);
     graphics.ResetTransform();
     return(new System.Drawing.RectangleF(rectangle.Left + yAxisTitleSize.Height, rectangle.Top, rectangle.Width - yAxisTitleSize.Height, rectangle.Height));
 }
Exemple #33
0
        private void printDocument1_PrintPage(object sender, System.Drawing.Printing.PrintPageEventArgs e)
        {
            RectangleF printable = e.MarginBounds;

            // Since PrintDocument.OriginAtMargins = True, sets top-Left corner to (0,0)
            printable.X = 0;
            printable.Y = 0;

            // Draws the logo
            int logoSize = 70;

            e.Graphics.DrawImage(Properties.Resources.logo, printable.Right - logoSize, printable.Y, logoSize, logoSize);

            //////////////
            // Draws the main title and some text
            //////////////

            string title = "Advanced Printing sample";

            Font titleFont = new Font(Font.FontFamily, 30, System.Drawing.FontStyle.Regular);

            System.Drawing.SizeF stringSize = e.Graphics.MeasureString(title, titleFont);

            float nextY = printable.Top + logoSize / 2;

            e.Graphics.DrawString(title, titleFont, System.Drawing.Brushes.Blue, printable.Left + printable.Width / 2 - stringSize.Width / 2, nextY);

            int verticalOffset = 60;

            nextY += stringSize.Height + 20;

            Font textFont = new Font(Font.FontFamily, 12, System.Drawing.FontStyle.Regular);

            string text = "This sample demonstrates how to draw different views of the same model in the proper page area.";

            stringSize = e.Graphics.MeasureString(text, textFont);

            e.Graphics.DrawString(text, textFont, System.Drawing.Brushes.Black, new RectangleF(printable.X, nextY, printable.Width, printable.Height));

            nextY += stringSize.Height + verticalOffset;

            // Defines a margin
            int marginFromBorder = 5;

            // Draw the views
            if (comboBoxPrintMode.SelectedIndex == 0) // Vector
            {
                PrintPageVector(sender, e, ref nextY, verticalOffset, printable, marginFromBorder);
            }
            else // Raster
            {
                PrintPageRaster(sender, e, ref nextY, verticalOffset, printable, marginFromBorder);
            }

            //////////////
            // Draws some other text
            //////////////

            Font   titleFont2 = new Font(Font.FontFamily, 20, System.Drawing.FontStyle.Bold);
            string title2     = "Window opening details";

            System.Drawing.SizeF title2Size = e.Graphics.MeasureString(title2, titleFont2);

            e.Graphics.DrawString(title2, titleFont2, System.Drawing.Brushes.Blue, printable.Left + printable.Width / 2 - title2Size.Width / 2, nextY + verticalOffset);

            nextY += 2 * (marginFromBorder + verticalOffset);

            text = "Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.";

            e.Graphics.DrawString(text, textFont, System.Drawing.Brushes.Black, new RectangleF(printable.Left, nextY, printable.Width / 2 - 20, printable.Height - nextY));
        }
Exemple #34
0
        public void FillSeries(WpfGraphDataSeries dataSeries, IEnumerable <System.Drawing.PointF> points, System.Drawing.SizeF size)
        {
            if (dataSeries.UseFill)
            {
                Geometry pathGeometry = CreatePath(points, closePath: false);

                Pen   pen   = GetPen(dataSeries);
                Brush brush = new SolidColorBrush(dataSeries.Fill);

                // TODO: scale transform the gradient (brush)
                //    gradient.ResetTransform();
                //    gradient.ScaleTransform(size.Width / gradient.Rectangle.Width, size.Height / gradient.Rectangle.Height);

                this.context.DrawGeometry(brush, pen, pathGeometry);
            }
        }
Exemple #35
0
        private async Task <Stream> GetImageStreamInternal(SignatureImageFormat format, System.Drawing.SizeF scale, System.Drawing.RectangleF signatureBounds, System.Drawing.SizeF imageSize, float strokeWidth, Color strokeColor, Color backgroundColor)
        {
            Bitmap.CompressFormat bcf;
            if (format == SignatureImageFormat.Jpeg)
            {
                bcf = Bitmap.CompressFormat.Jpeg;
            }
            else if (format == SignatureImageFormat.Png)
            {
                bcf = Bitmap.CompressFormat.Png;
            }
            else
            {
                return(null);
            }

            var image = GetImageInternal(scale, signatureBounds, imageSize, strokeWidth, strokeColor, backgroundColor);

            if (image != null)
            {
                using (image)
                {
                    var stream = new MemoryStream();
                    var result = await image.CompressAsync(bcf, 100, stream);

                    image.Recycle();

                    if (result)
                    {
                        stream.Position = 0;
                        return(stream);
                    }
                }
            }

            return(null);
        }
Exemple #36
0
        // System.Drawing.Size*

        public static SKSize ToSKSize(this System.Drawing.SizeF size)
        {
            return(new SKSize(size.Width, size.Height));
        }
Exemple #37
0
 public static PixelFarm.Drawing.SizeF ToSizeF(this System.Drawing.SizeF size)
 {
     return(new PixelFarm.Drawing.SizeF(size.Width, size.Height));
 }
Exemple #38
0
 protected virtual void MeasureBorder(SizeF totalSize)
 {
     // Used in subclasses to measure border elements
 }
 public void Scale(System.Drawing.SizeF factor)
 {
 }
 /// <summary>
 /// Required method for Designer support - do not modify
 /// the contents of this method with the code editor.
 /// </summary>
 private void InitializeComponent()
 {
     components = new System.ComponentModel.Container();
     System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(MainWindow));
     menuStrip1                      = new System.Windows.Forms.MenuStrip();
     fileToolStripMenuItem           = new System.Windows.Forms.ToolStripMenuItem();
     preferencesToolStripMenuItem    = new System.Windows.Forms.ToolStripMenuItem();
     exitToolStripMenuItem           = new System.Windows.Forms.ToolStripMenuItem();
     helpToolStripMenuItem           = new System.Windows.Forms.ToolStripMenuItem();
     aboutToolStripMenuItem          = new System.Windows.Forms.ToolStripMenuItem();
     buildsListView                  = new System.Windows.Forms.ListView();
     serverColumnHeader              = ((System.Windows.Forms.ColumnHeader)(new System.Windows.Forms.ColumnHeader()));
     projectColumnHeader             = ((System.Windows.Forms.ColumnHeader)(new System.Windows.Forms.ColumnHeader()));
     planColumnHeader                = ((System.Windows.Forms.ColumnHeader)(new System.Windows.Forms.ColumnHeader()));
     buildActivityColumnHeader       = ((System.Windows.Forms.ColumnHeader)(new System.Windows.Forms.ColumnHeader()));
     buildStatusColumnHeader         = ((System.Windows.Forms.ColumnHeader)(new System.Windows.Forms.ColumnHeader()));
     lastBuildTimeColumnHeader       = ((System.Windows.Forms.ColumnHeader)(new System.Windows.Forms.ColumnHeader()));
     lastBuildDurationColumnHeader   = ((System.Windows.Forms.ColumnHeader)(new System.Windows.Forms.ColumnHeader()));
     lastBuildNumberColumnHeader     = ((System.Windows.Forms.ColumnHeader)(new System.Windows.Forms.ColumnHeader()));
     lastVcsRevisionColumnHeader     = ((System.Windows.Forms.ColumnHeader)(new System.Windows.Forms.ColumnHeader()));
     successfulTestCountColumnHeader = ((System.Windows.Forms.ColumnHeader)(new System.Windows.Forms.ColumnHeader()));
     failedTestCountColumnHeader     = ((System.Windows.Forms.ColumnHeader)(new System.Windows.Forms.ColumnHeader()));
     notifyIcon                      = new System.Windows.Forms.NotifyIcon(components);
     updateTimer                     = new System.Windows.Forms.Timer(components);
     iconTimer = new System.Windows.Forms.Timer(components);
     mainViewModelBindingSource = new System.Windows.Forms.BindingSource(components);
     menuStrip1.SuspendLayout();
     ((System.ComponentModel.ISupportInitialize)(mainViewModelBindingSource)).BeginInit();
     SuspendLayout();
     //
     // menuStrip1
     //
     menuStrip1.Items.AddRange(new System.Windows.Forms.ToolStripItem[] {
         fileToolStripMenuItem,
         helpToolStripMenuItem
     });
     menuStrip1.Location = new System.Drawing.Point(0, 0);
     menuStrip1.Name     = "menuStrip1";
     menuStrip1.Size     = new System.Drawing.Size(896, 24);
     menuStrip1.TabIndex = 2;
     menuStrip1.Text     = "menuStrip1";
     //
     // fileToolStripMenuItem
     //
     fileToolStripMenuItem.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] {
         preferencesToolStripMenuItem,
         exitToolStripMenuItem
     });
     fileToolStripMenuItem.Name = "fileToolStripMenuItem";
     fileToolStripMenuItem.Size = new System.Drawing.Size(37, 20);
     fileToolStripMenuItem.Text = "&File";
     //
     // preferencesToolStripMenuItem
     //
     preferencesToolStripMenuItem.Name         = "preferencesToolStripMenuItem";
     preferencesToolStripMenuItem.ShortcutKeys = ((System.Windows.Forms.Keys)((System.Windows.Forms.Keys.Control | System.Windows.Forms.Keys.P)));
     preferencesToolStripMenuItem.Size         = new System.Drawing.Size(185, 22);
     preferencesToolStripMenuItem.Text         = "&Preferences...";
     preferencesToolStripMenuItem.Click       += new System.EventHandler(PreferencesToolStripMenuItemClick);
     //
     // exitToolStripMenuItem
     //
     exitToolStripMenuItem.Name         = "exitToolStripMenuItem";
     exitToolStripMenuItem.ShortcutKeys = ((System.Windows.Forms.Keys)((System.Windows.Forms.Keys.Alt | System.Windows.Forms.Keys.F4)));
     exitToolStripMenuItem.Size         = new System.Drawing.Size(185, 22);
     exitToolStripMenuItem.Text         = "E&xit";
     exitToolStripMenuItem.Click       += new System.EventHandler(ExitToolStripMenuItemClick);
     //
     // helpToolStripMenuItem
     //
     helpToolStripMenuItem.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] {
         aboutToolStripMenuItem
     });
     helpToolStripMenuItem.Name = "helpToolStripMenuItem";
     helpToolStripMenuItem.Size = new System.Drawing.Size(44, 20);
     helpToolStripMenuItem.Text = "&Help";
     //
     // aboutToolStripMenuItem
     //
     aboutToolStripMenuItem.Name   = "aboutToolStripMenuItem";
     aboutToolStripMenuItem.Size   = new System.Drawing.Size(107, 22);
     aboutToolStripMenuItem.Text   = "&About";
     aboutToolStripMenuItem.Click += new System.EventHandler(AboutToolStripMenuItemClick);
     //
     // buildsListView
     //
     buildsListView.Columns.AddRange(new System.Windows.Forms.ColumnHeader[] {
         serverColumnHeader,
         projectColumnHeader,
         planColumnHeader,
         buildActivityColumnHeader,
         buildStatusColumnHeader,
         lastBuildTimeColumnHeader,
         lastBuildDurationColumnHeader,
         lastBuildNumberColumnHeader,
         lastVcsRevisionColumnHeader,
         successfulTestCountColumnHeader,
         failedTestCountColumnHeader
     });
     buildsListView.Dock          = System.Windows.Forms.DockStyle.Fill;
     buildsListView.FullRowSelect = true;
     buildsListView.Location      = new System.Drawing.Point(0, 24);
     buildsListView.Name          = "buildsListView";
     buildsListView.Size          = new System.Drawing.Size(896, 200);
     buildsListView.TabIndex      = 3;
     buildsListView.UseCompatibleStateImageBehavior = false;
     buildsListView.View = System.Windows.Forms.View.Details;
     //
     // serverColumnHeader
     //
     serverColumnHeader.Text  = "Server";
     serverColumnHeader.Width = 100;
     //
     // projectColumnHeader
     //
     projectColumnHeader.Text  = "Project";
     projectColumnHeader.Width = 100;
     //
     // planColumnHeader
     //
     planColumnHeader.Text = "Plan";
     //
     // buildActivityColumnHeader
     //
     buildActivityColumnHeader.Text = "Activity";
     //
     // buildStatusColumnHeader
     //
     buildStatusColumnHeader.Text  = "Status";
     buildStatusColumnHeader.Width = 70;
     //
     // lastBuildTimeColumnHeader
     //
     lastBuildTimeColumnHeader.Text  = "Last Build";
     lastBuildTimeColumnHeader.Width = 85;
     //
     // lastBuildDurationColumnHeader
     //
     lastBuildDurationColumnHeader.Text  = "Duration";
     lastBuildDurationColumnHeader.Width = 80;
     //
     // lastBuildNumberColumnHeader
     //
     lastBuildNumberColumnHeader.Text  = "Build Number";
     lastBuildNumberColumnHeader.Width = 80;
     //
     // lastVcsRevisionColumnHeader
     //
     lastVcsRevisionColumnHeader.Text  = "VCS Revision";
     lastVcsRevisionColumnHeader.Width = 80;
     //
     // successfulTestCountColumnHeader
     //
     successfulTestCountColumnHeader.Text  = "Passing Tests";
     successfulTestCountColumnHeader.Width = 80;
     //
     // failedTestCountColumnHeader
     //
     failedTestCountColumnHeader.Text  = "Failing Tests";
     failedTestCountColumnHeader.Width = 80;
     //
     // notifyIcon
     //
     notifyIcon.Icon    = ((System.Drawing.Icon)(resources.GetObject("notifyIcon.Icon")));
     notifyIcon.Text    = "Bamboo Tray";
     notifyIcon.Visible = true;
     notifyIcon.Click  += new System.EventHandler(NotifyIconClick);
     //
     // updateTimer
     //
     updateTimer.Enabled  = true;
     updateTimer.Interval = 20000;
     updateTimer.Tick    += new System.EventHandler(UpdateTimerTick);
     //
     // iconTimer
     //
     iconTimer.Interval = 200;
     iconTimer.Tick    += new System.EventHandler(BuildIconTimerTick);
     //
     // mainViewModelBindingSource
     //
     mainViewModelBindingSource.DataSource = typeof(MainViewModel);
     //
     // MainWindow
     //
     AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
     AutoScaleMode       = System.Windows.Forms.AutoScaleMode.Font;
     ClientSize          = new System.Drawing.Size(896, 224);
     Controls.Add(buildsListView);
     Controls.Add(menuStrip1);
     Icon          = ((System.Drawing.Icon)(resources.GetObject("$Icon")));
     MainMenuStrip = menuStrip1;
     MaximizeBox   = false;
     MinimizeBox   = false;
     Name          = "MainWindow";
     Text          = "Bamboo Tray";
     FormClosing  += new System.Windows.Forms.FormClosingEventHandler(MainFormClosing);
     menuStrip1.ResumeLayout(false);
     menuStrip1.PerformLayout();
     ((System.ComponentModel.ISupportInitialize)(mainViewModelBindingSource)).EndInit();
     ResumeLayout(false);
     PerformLayout();
 }
Exemple #41
0
 public static Size ToXwtSize(this SizeF s)
 {
     return(new Size(s.Width, s.Height));
 }
Exemple #42
0
 public SizeF(System.Drawing.SizeF size)
 {
     throw null;
 }
Exemple #43
0
        private Bitmap GetImageInternal(System.Drawing.SizeF scale, System.Drawing.RectangleF signatureBounds, System.Drawing.SizeF imageSize, float strokeWidth, Color strokeColor, Color backgroundColor)
        {
            // create bitmap and set the desired options
            var image = Bitmap.CreateBitmap((int)imageSize.Width, (int)imageSize.Height, Bitmap.Config.Argb8888);

            using (var canvas = new Canvas(image))
            {
                // background
                canvas.DrawColor(backgroundColor);

                // cropping / scaling
                canvas.Scale(scale.Width, scale.Height);
                canvas.Translate(-signatureBounds.Left, -signatureBounds.Top);

                // strokes
                using (var paint = new Paint())
                {
                    paint.Color       = strokeColor;
                    paint.StrokeWidth = strokeWidth * InkPresenter.ScreenDensity;
                    paint.StrokeJoin  = Paint.Join.Round;
                    paint.StrokeCap   = Paint.Cap.Round;
                    paint.AntiAlias   = true;
                    paint.SetStyle(Paint.Style.Stroke);

                    foreach (var path in inkPresenter.GetStrokes())
                    {
                        canvas.DrawPath(path.Path, paint);
                    }
                }
            }

            // get the image
            return(image);
        }
Exemple #44
0
        protected void Render(System.Drawing.Graphics graphics, Palette palette, Bamboo.Css.StyleStack styleStack, List <Cell[]> cells, System.Drawing.RectangleF rectangle)
        {
            string borderColor = (string)styleStack["BorderColor"];
            int    borderWidth = (int)styleStack["BorderWidth"];

            Bamboo.Css.Font font             = (Bamboo.Css.Font)styleStack["Font"];
            bool            horizontalBorder = (bool)styleStack["HorizontalBorder"];
            bool            outerBorder      = (bool)styleStack["OuterBorder"];
            int             padding          = (int)styleStack["Padding"];
            int             precision        = (int)styleStack["Precision"];
            bool            verticalBorder   = (bool)styleStack["VerticalBorder"];

            System.Drawing.Pen borderColorPen = palette.Pen(borderColor);



            int columns = (cells.Count == 0) ? 0 : cells[0].Length;
            int rows    = cells.Count;

            bool  tooBig       = true;
            float excessWidth  = 0;
            float excessHeight = 0;

            Bamboo.Css.Font gridFont = new Bamboo.Css.Font(font.Name, font.Size, font.Bold);
//TODO DELETE			float gridFontSize = font.Size;
            while (tooBig && gridFont.Size > 0)
            {
                //
                // Prepare the grid for painting.
                //
                int cellLeft = (int)Math.Ceiling(rectangle.Left);
                int cellTop  = (int)Math.Ceiling(rectangle.Top);

                if (outerBorder)
                {
                    cellLeft += borderWidth;
                    cellTop  += borderWidth;
                }

                for (int y = 0; y < rows; y++)
                {
                    for (int x = 0; x < columns; x++)
                    {
                        object value           = cells[y][x].Value;
                        int    colspan         = cells[y][x].Colspan;
                        int    rowspan         = cells[y][x].Rowspan;
                        int    colspanMinusOne = colspan - 1;
                        int    rowspanMinusOne = rowspan - 1;



                        //
                        // Read:  Value
                        //
                        // Write: Text
                        //
                        if (value == null)
                        {
                            cells[y][x].Text = String.Empty;
                        }
                        else if (value is double ||
                                 value is decimal ||
                                 value is float ||
                                 value is int ||
                                 value is long)
                        {
                            double d = System.Convert.ToDouble(value);
                            //TODO
                            //						if(this._show_parentheses && n < 0)
                            //						{
                            //							return "(" + Math.Abs(d).ToString() + ")";
                            //						}
                            //						else
                            {
                                cells[y][x].Text = d.ToString("N" + precision);
                            }
                        }
                        else
                        {
                            cells[y][x].Text = value.ToString();
                        }



                        //
                        // Read:  HasValue
                        //        Text
                        //        Style
                        //        Rowspan
                        //        Colspan
                        //
                        // Write: MeasuredWidth
                        //        MeasuredHeight
                        //        BorderColspan (forward)
                        //        BorderRowspan (forward)
                        //        BackgroundColspan (forward)
                        //        BackgroundRowspan (forward)
                        //
                        if (cells[y][x].HasValue)
                        {
                            int backgroundColorArgb = palette.Color(cells[y][x].BackgroundColor).ToArgb();

                            // Measure the text in the cell.
                            System.Drawing.SizeF size = MeasureString(palette.Graphics, cells[y][x].Text, palette.Font(gridFont.Name, gridFont.Size));
                            size.Width  += padding + padding;
                            size.Height += padding + padding;
                            cells[y][x].MeasuredWidth  = size.Width;
                            cells[y][x].MeasuredHeight = size.Height;

                            for (int xx = 0; xx < colspan; xx++)
                            {
                                if (y + rowspanMinusOne < (rows - 1))
                                {
                                    if (horizontalBorder)
                                    {
                                        cells[y + rowspanMinusOne][x + xx].BorderColspan = 1;
                                    }
                                }
                            }

                            for (int yy = 0; yy < rowspan; yy++)
                            {
                                if (x + colspanMinusOne < (columns - 1))
                                {
                                    if (verticalBorder)
                                    {
                                        cells[y + yy][x + colspanMinusOne].BorderRowspan = 1;
                                    }
                                }
                            }

                            for (int xx = 0; xx < colspan; xx++)
                            {
                                for (int yy = 0; yy < rowspan; yy++)
                                {
                                    cells[y + yy][x + xx].BackgroundColspan   = 1;
                                    cells[y + yy][x + xx].BackgroundRowspan   = 1;
                                    cells[y + yy][x + xx].BackgroundColorArgb = backgroundColorArgb;
                                }
                            }
                        }
                    }
                }



                //
                // Make all the cells in the same column the same width.
                //
                // Read:  Colspan
                //        MeasuredWidth
                //
                // Write: ColumnWidth (x-forward)
                //        Left
                //        Colspan (x-forward)
                //
                for (int x = 0; x < columns; x++)
                {
                    int columnWidth = 0;

                    //
                    // Get greatest width.
                    //
                    for (int y = 0; y < rows; y++)
                    {
                        if (cells[y][x].Colspan == 1)
                        {
                            int w2 = (int)Math.Ceiling(cells[y][x].MeasuredWidth);
                            if (w2 > columnWidth)
                            {
                                columnWidth = w2;
                            }
                        }
                    }

                    for (int y = 0; y < rows; y++)
                    {
                        //
                        // Set width.
                        //
                        cells[y][x].ColumnWidth = columnWidth;
                        cells[y][x].Left        = cellLeft;

                        int colspan = cells[y][x].Colspan;
                        if (colspan > 1)
                        {
                            //
                            // Shift right.
                            //
                            cells[y][x + 1].Colspan       = colspan - 1;
                            cells[y][x + 1].MeasuredWidth = cells[y][x].MeasuredWidth - columnWidth;                             //TODO I'm not sure about this.
                        }
                    }

                    cellLeft += columnWidth;
                    if (verticalBorder && x < (columns - 1))
                    {
                        cellLeft += borderWidth;
                    }
                }



                //
                // Make all the cells in the same row the same height.
                //
                // Read:  Rowspan
                //        MeasuredHeight
                //
                // Write: RowHeight (y-forward)
                //        Top
                //        Rowspan (y-forward)
                //
                for (int y = 0; y < rows; y++)
                {
                    int rowHeight = 0;

                    //
                    // Get greatest height.
                    //
                    for (int x = 0; x < columns; x++)
                    {
                        if (cells[y][x].Rowspan == 1)
                        {
                            int h2 = (int)Math.Ceiling(cells[y][x].MeasuredHeight);
                            if (h2 > rowHeight)
                            {
                                rowHeight = h2;
                            }
                        }
                    }

                    for (int x = 0; x < columns; x++)
                    {
                        //
                        // Set height.
                        //
                        cells[y][x].RowHeight = rowHeight;
                        cells[y][x].Top       = cellTop;

                        int rowspan = cells[y][x].Rowspan;
                        if (rowspan > 1)
                        {
                            //
                            // Shift down.
                            //
                            cells[y + 1][x].Rowspan        = rowspan - 1;
                            cells[y + 1][x].MeasuredHeight = cells[y][x].MeasuredHeight - rowHeight;                             //TODO I'm not sure about this.
                        }
                    }

                    cellTop += rowHeight;
                    if (horizontalBorder && y < (rows - 1))
                    {
                        cellTop += borderWidth;
                    }
                }



                for (int y = 0; y < rows; y++)
                {
                    for (int x = 0; x < columns; x++)
                    {
                        int colspan             = cells[y][x].Colspan;
                        int colspanMinusOne     = colspan - 1;
                        int rowspan             = cells[y][x].Rowspan;
                        int rowspanMinusOne     = rowspan - 1;
                        int borderColspan       = cells[y][x].BorderColspan;
                        int borderRowspan       = cells[y][x].BorderRowspan;
                        int backgroundColspan   = cells[y][x].BackgroundColspan;
                        int backgroundRowspan   = cells[y][x].BackgroundRowspan;
                        int backgroundColorArgb = cells[y][x].BackgroundColorArgb;



                        //
                        // Read:  Colspan
                        //        Left (x-forward)
                        //        ColumnWidth (x-forward)
                        //
                        // Write: Width
                        //
                        if (colspan > 1)
                        {
                            cells[y][x].Width = cells[y][x + colspanMinusOne].Left + cells[y][x + colspanMinusOne].ColumnWidth - cells[y][x].Left;
                        }
                        else
                        {
                            cells[y][x].Width = cells[y][x].ColumnWidth;
                        }



                        //
                        // Read:  Rowspan
                        //        Top (y-forward)
                        //        RowHeight (y-forward)
                        //
                        // Write: Height
                        //
                        if (rowspan > 1)
                        {
                            cells[y][x].Height = cells[y + rowspanMinusOne][x].Top + cells[y + rowspanMinusOne][x].RowHeight - cells[y][x].Top;
                        }
                        else
                        {
                            cells[y][x].Height = cells[y][x].RowHeight;
                        }



                        //
                        // Read:  BorderColspan (x-forward)
                        //
                        // Write: BorderColspan
                        //
                        if (borderColspan > 0)
                        {
                            int length = borderColspan;
                            for (int xx = (x + 1); xx < columns; xx++)
                            {
                                if (cells[y][xx].BorderColspan > 0)
                                {
                                    length += cells[y][xx].BorderColspan;
                                    cells[y][xx].BorderColspan = 0;
                                }
                                else
                                {
                                    break;
                                }
                            }
                            cells[y][x].BorderColspan = length;
                        }



                        //
                        // Read:  BorderRowspan (y-forward)
                        //
                        // Write: BorderRowspan
                        //
                        if (borderRowspan > 0)
                        {
                            int length = borderRowspan;
                            for (int yy = (y + 1); yy < rows; yy++)
                            {
                                if (cells[yy][x].BorderRowspan > 0)
                                {
                                    length += cells[yy][x].BorderRowspan;
                                    cells[yy][x].BorderRowspan = 0;
                                }
                                else
                                {
                                    break;
                                }
                            }
                            cells[y][x].BorderRowspan = length;
                        }



                        if (backgroundColspan > 0)
                        {
                            //
                            // Read:  BackgroundColspan (x-forward)
                            //        BackgroundColor (x-forward)
                            //
                            // Write: BackgroundColspan (x-forward)
                            //
                            int length = backgroundColspan;
                            for (int xx = (x + 1); xx < columns; xx++)
                            {
                                if (cells[y][xx].BackgroundColspan > 0 &&
                                    backgroundColorArgb == cells[y][xx].BackgroundColorArgb)
                                {
                                    length += cells[y][xx].BackgroundColspan;
                                    cells[y][xx].BackgroundColspan = 0;
                                }
                                else
                                {
                                    break;
                                }
                            }
                            backgroundColspan             = length;
                            cells[y][x].BackgroundColspan = length;
                        }



                        if (backgroundRowspan > 0)
                        {
                            //
                            // Read:  BackgroundRowspan (y-forward)
                            //        BackgroundColor (y-forward)
                            //
                            // Write: BackgroundRowspan (y-forward)
                            //
                            int length = backgroundRowspan;
                            for (int yy = (y + 1); yy < rows; yy++)
                            {
                                if (cells[yy][x].BackgroundRowspan > 0 &&
                                    backgroundColorArgb == cells[yy][x].BackgroundColorArgb)
                                {
                                    length += cells[yy][x].BackgroundRowspan;
                                    cells[yy][x].BackgroundRowspan = 0;
                                }
                                else
                                {
                                    break;
                                }
                            }
                            backgroundRowspan             = length;
                            cells[y][x].BackgroundRowspan = length;
                        }



                        if (backgroundColspan == 0 || backgroundRowspan == 0)
                        {
                            //
                            // Read:  BackgroundColspan
                            //        BackgroundRowspan
                            //
                            // Write: BackgroundColspan
                            //        BackgroundRowspan
                            //
                            cells[y][x].BackgroundColspan = 0;
                            cells[y][x].BackgroundRowspan = 0;
                        }
                    }
                }



                //
                // Set outer border.
                //
                if (outerBorder)
                {
                    cellLeft += borderWidth;
                    cellTop  += borderWidth;
                }

                if (!_shrinkToFit)
                {
                    tooBig       = false;
                    excessWidth  = 0;
                    excessHeight = 0;
                    this.Width   = cellLeft - this.Left;
                    this.Height  = cellTop - this.Top;
                }
                else if (cellLeft < (rectangle.Left + rectangle.Width) && cellTop < (rectangle.Top + rectangle.Height))
                {
                    tooBig       = false;
                    excessWidth  = rectangle.Left + rectangle.Width - cellLeft;
                    excessHeight = rectangle.Top + rectangle.Height - cellTop;
                }
                else
                {
                    gridFont.Size -= 1;
                }
            }

            //TODO test for no data.
            //if (cells == null)
            //{
            //    //TODO paint it white.
            //    return;
            //}

            if (!tooBig)
            {
                columns = (cells.Count == 0) ? 0 : cells[0].Length;
                rows    = cells.Count;

                float x_padding = excessWidth / columns;
                float y_padding = excessHeight / rows;
                for (int y = 0; y < rows; y++)
                {
                    for (int x = 0; x < columns; x++)
                    {
                        cells[y][x].Left   += (int)Math.Ceiling(x * x_padding);
                        cells[y][x].Top    += (int)Math.Ceiling(y * y_padding);
                        cells[y][x].Width  += (int)Math.Ceiling(x_padding);
                        cells[y][x].Height += (int)Math.Ceiling(y_padding);
                    }
                    cells[y][columns - 1].Width = (int)Math.Ceiling(rectangle.Left) + (int)Math.Ceiling(rectangle.Width) - cells[y][columns - 1].Left;
                }
                for (int x = 0; x < columns; x++)
                {
                    cells[rows - 1][x].Height = (int)Math.Ceiling(rectangle.Top) + (int)Math.Ceiling(rectangle.Height) - cells[rows - 1][x].Top;
                }

                int halfBorderWidth = (borderWidth / 2);

                for (int y = 0; y < rows; y++)
                {
                    for (int x = 0; x < columns; x++)
                    {
                        int backgroundColspan = cells[y][x].BackgroundColspan;
                        int backgroundRowspan = cells[y][x].BackgroundRowspan;

                        // Background
                        if (backgroundColspan > 0 && backgroundRowspan > 0)
                        {
                            int backgroundColspanMinusOne = backgroundColspan - 1;
                            int backgroundRowspanMinusOne = backgroundRowspan - 1;
                            graphics.FillRectangle(palette.Brush(cells[y][x].BackgroundColor), cells[y][x].Left, cells[y][x].Top, cells[y][x + backgroundColspanMinusOne].Left + cells[y][x + backgroundColspanMinusOne].Width + borderWidth - cells[y][x].Left, cells[y + backgroundRowspanMinusOne][x].Top + cells[y + backgroundRowspanMinusOne][x].Height + borderWidth - cells[y][x].Top);
                        }
                    }
                }

                for (int y = 0; y < rows; y++)
                {
                    for (int x = 0; x < columns; x++)
                    {
                        //Borders
                        if (horizontalBorder && cells[y][x].BorderColspan > 0)
                        {
                            // Bottom border
                            float bottom = cells[y][x].Top + cells[y][x].Height + halfBorderWidth;
                            int   borderColspanMinusOne = cells[y][x].BorderColspan - 1;
                            graphics.DrawLine(borderColorPen, cells[y][x].Left, bottom, cells[y][x + borderColspanMinusOne].Left + cells[y][x + borderColspanMinusOne].Width + borderWidth - 1, bottom);
                        }
                        if (verticalBorder && cells[y][x].BorderRowspan > 0)
                        {
                            // Right border
                            float right = cells[y][x].Left + cells[y][x].Width + halfBorderWidth;
                            int   borderRowspanMinusOne = cells[y][x].BorderRowspan - 1;
                            graphics.DrawLine(borderColorPen, right, cells[y][x].Top, right, cells[y + borderRowspanMinusOne][x].Top + cells[y + borderRowspanMinusOne][x].Height + borderWidth - 1);
                        }

                        if (cells[y][x].Value != null && gridFont.Size > 0)
                        {
                            // Text
                            string text = cells[y][x].Text;
                            System.Drawing.Brush foregroundColorBrush = palette.Brush(cells[y][x].ForegroundColor);
                            System.Drawing.Font  textFont             = (gridFont.Bold) ? new System.Drawing.Font(gridFont.Name, gridFont.Size, System.Drawing.FontStyle.Bold) : new System.Drawing.Font(gridFont.Name, gridFont.Size);
                            float left;
                            float top;
                            switch (cells[y][x].TextAlign)
                            {
                            case System.Drawing.ContentAlignment.BottomCenter:
                            {
                                left = cells[y][x].Left + padding + ((cells[y][x].Width - cells[y][x].MeasuredWidth) / 2);
                                top  = cells[y][x].Top + padding + (cells[y][x].Height - cells[y][x].MeasuredHeight);
                                break;
                            }

                            case System.Drawing.ContentAlignment.BottomLeft:
                            {
                                left = cells[y][x].Left + padding;
                                top  = cells[y][x].Top + padding + (cells[y][x].Height - cells[y][x].MeasuredHeight);
                                break;
                            }

                            case System.Drawing.ContentAlignment.BottomRight:
                            {
                                left = cells[y][x].Left + padding + (cells[y][x].Width - cells[y][x].MeasuredWidth);
                                top  = cells[y][x].Top + padding + (cells[y][x].Height - cells[y][x].MeasuredHeight);
                                break;
                            }

                            case System.Drawing.ContentAlignment.MiddleCenter:
                            {
                                left = cells[y][x].Left + padding + ((cells[y][x].Width - cells[y][x].MeasuredWidth) / 2);
                                top  = cells[y][x].Top + padding + ((cells[y][x].Height - cells[y][x].MeasuredHeight) / 2);
                                break;
                            }

                            case System.Drawing.ContentAlignment.MiddleLeft:
                            {
                                left = cells[y][x].Left + padding;
                                top  = cells[y][x].Top + padding + ((cells[y][x].Height - cells[y][x].MeasuredHeight) / 2);
                                break;
                            }

                            case System.Drawing.ContentAlignment.MiddleRight:
                            {
                                left = cells[y][x].Left + padding + (cells[y][x].Width - cells[y][x].MeasuredWidth);
                                top  = cells[y][x].Top + padding + ((cells[y][x].Height - cells[y][x].MeasuredHeight) / 2);
                                break;
                            }

                            case System.Drawing.ContentAlignment.TopLeft:
                            {
                                left = cells[y][x].Left + padding;
                                top  = cells[y][x].Top + padding;
                                break;
                            }

                            case System.Drawing.ContentAlignment.TopCenter:
                            {
                                left = cells[y][x].Left + padding + ((cells[y][x].Width - cells[y][x].MeasuredWidth) / 2);
                                top  = cells[y][x].Top + padding;
                                break;
                            }

                            case System.Drawing.ContentAlignment.TopRight:
                            {
                                left = cells[y][x].Left + padding + (cells[y][x].Width - cells[y][x].MeasuredWidth);
                                top  = cells[y][x].Top + padding;
                                break;
                            }

                            default:
                            {
                                throw new System.Exception("Unknown ContentAlignment.");
                            }
                            }
                            DrawString(graphics, text, textFont, foregroundColorBrush, left, top);
                        }
                    }
                }



                if (outerBorder)
                {
                    // Left border
                    graphics.DrawLine(borderColorPen, rectangle.Left, rectangle.Top, rectangle.Left, rectangle.Top + rectangle.Height);

                    // Top border
                    graphics.DrawLine(borderColorPen, rectangle.Left, rectangle.Top, rectangle.Left + rectangle.Width, rectangle.Top);

                    // Right border
                    graphics.DrawLine(borderColorPen, rectangle.Left + rectangle.Width, rectangle.Top, rectangle.Left + rectangle.Width, rectangle.Top + rectangle.Height);

                    // Bottom border
                    graphics.DrawLine(borderColorPen, rectangle.Left, rectangle.Top + rectangle.Height, rectangle.Left + rectangle.Width, rectangle.Top + rectangle.Height);
                }
            }
        }
Exemple #45
0
 protected System.Drawing.RectangleF DrawXAxisTitle(System.Drawing.Graphics graphics, System.Drawing.RectangleF rectangle, string xAxisTitle, System.Drawing.Font axisFont, System.Drawing.SizeF xAxisTitleSize, float x, System.Drawing.Brush axisForeColorBrush)
 {
     DrawString(graphics, xAxisTitle, axisFont, axisForeColorBrush, rectangle.Left + x + ((rectangle.Width - x) / 2) - (xAxisTitleSize.Width / 2), rectangle.Top + rectangle.Height - xAxisTitleSize.Height);
     return(new System.Drawing.RectangleF(rectangle.Left, rectangle.Top, rectangle.Width, rectangle.Height - xAxisTitleSize.Height));
 }
Exemple #46
0
 public static System.Drawing.Size Round(System.Drawing.SizeF value)
 {
     throw null;
 }
Exemple #47
0
        protected void buttonCreatePdf_Click(object sender, EventArgs e)
        {
            // create a PDF document
            PdfDocument document = new PdfDocument();

            // set a demo serial number
            document.SerialNumber = "YCgJMTAE-BiwJAhIB-EhlWTlBA-UEBRQFBA-U1FOUVJO-WVlZWQ==";

            // create a page in document
            PdfPage page1 = document.AddPage();

            // create the true type fonts that can be used in document text
            System.Drawing.Font sysFont      = new System.Drawing.Font("Times New Roman", 10, System.Drawing.GraphicsUnit.Point);
            PdfFont             pdfFont      = document.CreateFont(sysFont);
            PdfFont             pdfFontEmbed = document.CreateFont(sysFont, true);

            System.Drawing.Font sysFontBold = new System.Drawing.Font("Times New Roman", 10, System.Drawing.FontStyle.Bold,
                                                                      System.Drawing.GraphicsUnit.Point);
            PdfFont pdfFontBold      = document.CreateFont(sysFontBold);
            PdfFont pdfFontBoldEmbed = document.CreateFont(sysFontBold, true);

            // create a standard Helvetica Type 1 font that can be used in document text
            PdfFont helveticaStdFont = document.CreateStandardFont(PdfStandardFont.Helvetica);

            helveticaStdFont.Size = 10;

            float crtYPos = 20;
            float crtXPos = 5;

            PdfLayoutInfo textLayoutInfo = null;

            string dummyText = @"Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.";

            #region Layout a text that expands to the right edge of the PDF page

            PdfText titleTextAtLocation = new PdfText(crtXPos, crtYPos,
                                                      "The text below extends from the layout position to the right edge of the PDF page:", pdfFontBoldEmbed);
            titleTextAtLocation.ForeColor = System.Drawing.Color.Navy;
            textLayoutInfo = page1.Layout(titleTextAtLocation);

            // advance the Y position in the PDF page
            crtYPos += textLayoutInfo.LastPageRectangle.Height + 10;

            PdfText textExpandsToRightEdge = new PdfText(crtXPos + 50, crtYPos, dummyText, pdfFont);
            textExpandsToRightEdge.BackColor = System.Drawing.Color.WhiteSmoke;
            textLayoutInfo = page1.Layout(textExpandsToRightEdge);

            // draw a rectangle around the text
            PdfRectangle borderPdfRectangle = new PdfRectangle(textLayoutInfo.LastPageRectangle);
            borderPdfRectangle.LineStyle.LineWidth = 0.5f;
            page1.Layout(borderPdfRectangle);

            // advance the Y position in the PDF page
            crtYPos += textLayoutInfo.LastPageRectangle.Height + 10;

            #endregion

            #region Layout a text with width limit

            PdfText titleTextWithWidth = new PdfText(crtXPos, crtYPos,
                                                     "The text below is limited by a given width and has a free height:", pdfFontBoldEmbed);
            titleTextWithWidth.ForeColor = System.Drawing.Color.Navy;
            textLayoutInfo = page1.Layout(titleTextWithWidth);

            // advance the Y position in the PDF page
            crtYPos += textLayoutInfo.LastPageRectangle.Height + 10;

            PdfText textWithWidthLimit = new PdfText(crtXPos + 50, crtYPos, 300, dummyText, pdfFont);
            textWithWidthLimit.BackColor = System.Drawing.Color.WhiteSmoke;
            textLayoutInfo = page1.Layout(textWithWidthLimit);

            // draw a rectangle around the text
            borderPdfRectangle = new PdfRectangle(textLayoutInfo.LastPageRectangle);
            borderPdfRectangle.LineStyle.LineWidth = 0.5f;
            page1.Layout(borderPdfRectangle);

            // advance the Y position in the PDF page
            crtYPos += textLayoutInfo.LastPageRectangle.Height + 10;

            #endregion

            #region Layout a text with width and height limits

            PdfText titleTextWithWidthAndHeight = new PdfText(crtXPos, crtYPos,
                                                              "The text below is limited by a given width and height and is trimmed:", pdfFontBoldEmbed);
            titleTextWithWidthAndHeight.ForeColor = System.Drawing.Color.Navy;
            textLayoutInfo = page1.Layout(titleTextWithWidthAndHeight);

            // advance the Y position in the PDF page
            crtYPos += textLayoutInfo.LastPageRectangle.Height + 10;

            PdfText textWithWidthAndHeightLimit = new PdfText(crtXPos + 50, crtYPos, 300, 50, dummyText, pdfFont);
            textWithWidthAndHeightLimit.BackColor = System.Drawing.Color.WhiteSmoke;
            textLayoutInfo = page1.Layout(textWithWidthAndHeightLimit);

            // draw a rectangle around the text
            borderPdfRectangle = new PdfRectangle(textLayoutInfo.LastPageRectangle);
            borderPdfRectangle.LineStyle.LineWidth = 0.5f;
            page1.Layout(borderPdfRectangle);

            // advance the Y position in the PDF page
            crtYPos += textLayoutInfo.LastPageRectangle.Height + 10;

            #endregion

            #region Layout a text with standard font

            PdfText textWithStandardFont = new PdfText(crtXPos, crtYPos, "This green text is written with a Helvetica Standard Type 1 font", helveticaStdFont);
            textWithStandardFont.BackColor = System.Drawing.Color.WhiteSmoke;
            textWithStandardFont.ForeColor = System.Drawing.Color.Green;
            textLayoutInfo = page1.Layout(textWithStandardFont);

            // advance the Y position in the PDF page
            crtYPos += textLayoutInfo.LastPageRectangle.Height + 10;

            #endregion

            #region Layout a rotated text

            PdfText titleRotatedText = new PdfText(crtXPos, crtYPos, "The text below is rotated:", pdfFontBoldEmbed);
            titleRotatedText.ForeColor = System.Drawing.Color.Navy;
            textLayoutInfo             = page1.Layout(titleRotatedText);

            // advance the Y position in the PDF page
            crtYPos += textLayoutInfo.LastPageRectangle.Height + 10;

            // create a reference Graphics used for measuring
            System.Drawing.Bitmap   refBmp      = new System.Drawing.Bitmap(1, 1);
            System.Drawing.Graphics refGraphics = System.Drawing.Graphics.FromImage(refBmp);
            refGraphics.PageUnit = System.Drawing.GraphicsUnit.Point;

            string counterRotatedText = "This text is rotated 45 degrees counter clockwise";

            // measure the rotated text size
            System.Drawing.SizeF counterRotatedTextSize = refGraphics.MeasureString(counterRotatedText, sysFont);

            // advance the Y position in the PDF page
            crtYPos += counterRotatedTextSize.Width / (float)Math.Sqrt(2) + 10;

            string clockwiseRotatedText = "This text is rotated 45 degrees clockwise";

            PdfText rotatedCounterClockwiseText = new PdfText(crtXPos + 100, crtYPos, counterRotatedText, pdfFontEmbed);
            rotatedCounterClockwiseText.RotationAngle = 45;
            textLayoutInfo = page1.Layout(rotatedCounterClockwiseText);

            PdfText rotatedClockwiseText = new PdfText(crtXPos + 100, crtYPos, clockwiseRotatedText, pdfFontEmbed);
            rotatedClockwiseText.RotationAngle = -45;
            textLayoutInfo = page1.Layout(rotatedClockwiseText);

            // measure the rotated text size
            System.Drawing.SizeF clockwiseRotatedTextSize = refGraphics.MeasureString(clockwiseRotatedText, sysFont);

            // advance the Y position in the PDF page
            crtYPos += clockwiseRotatedTextSize.Width / (float)Math.Sqrt(2) + 10;

            // dispose the graphics used for measuring
            refGraphics.Dispose();
            refBmp.Dispose();

            #endregion

            #region Layout an automatically paginated text

            string dummyBigText = System.IO.File.ReadAllText(Server.MapPath("~") + @"\DemoFiles\Text\DummyBigText.txt");

            PdfText titleTextPaginated = new PdfText(crtXPos, crtYPos,
                                                     "The text below is automatically paginated when it gets to the bottom of this page:", pdfFontBoldEmbed);
            titleTextPaginated.ForeColor = System.Drawing.Color.Navy;
            textLayoutInfo = page1.Layout(titleTextPaginated);

            // advance the Y position in the PDF page
            crtYPos += textLayoutInfo.LastPageRectangle.Height + 10;

            PdfText paginatedText = new PdfText(crtXPos + 50, crtYPos, 300, dummyBigText, pdfFont);
            paginatedText.BackColor = System.Drawing.Color.WhiteSmoke;
            paginatedText.Cropping  = false;
            textLayoutInfo          = page1.Layout(paginatedText);

            // get the last page where the text was rendered
            PdfPage crtPage = document.Pages[textLayoutInfo.LastPageIndex];

            // draw a line at the bottom of the text on the second page
            System.Drawing.PointF leftPoint  = new System.Drawing.PointF(textLayoutInfo.LastPageRectangle.Left, textLayoutInfo.LastPageRectangle.Bottom);
            System.Drawing.PointF rightPoint = new System.Drawing.PointF(textLayoutInfo.LastPageRectangle.Right, textLayoutInfo.LastPageRectangle.Bottom);
            PdfLine borderLine = new PdfLine(leftPoint, rightPoint);
            borderLine.LineStyle.LineWidth = 0.5f;
            crtPage.Layout(borderLine);

            // advance the Y position in the second PDF page
            crtYPos += textLayoutInfo.LastPageRectangle.Height + 10;

            #endregion

            try
            {
                // write the PDF document to a memory buffer
                byte[] pdfBuffer = document.WriteToMemory();

                // inform the browser about the binary data format
                HttpContext.Current.Response.AddHeader("Content-Type", "application/pdf");

                // let the browser know how to open the PDF document and the file name
                HttpContext.Current.Response.AddHeader("Content-Disposition", String.Format("attachment; filename=PdfText.pdf; size={0}",
                                                                                            pdfBuffer.Length.ToString()));

                // write the PDF buffer to HTTP response
                HttpContext.Current.Response.BinaryWrite(pdfBuffer);

                // call End() method of HTTP response to stop ASP.NET page processing
                HttpContext.Current.Response.End();
            }
            finally
            {
                document.Close();
            }
        }
Exemple #48
0
 public static System.Drawing.Size Ceiling(System.Drawing.SizeF value)
 {
     throw null;
 }
Exemple #49
0
 /// <summary>
 /// Required method for Designer support - do not modify
 /// the contents of this method with the code editor.
 /// </summary>
 private void InitializeComponent()
 {
     progressBar1 = new System.Windows.Forms.ProgressBar();
     btCancel     = new System.Windows.Forms.Button();
     txtInfo      = new System.Windows.Forms.TextBox();
     btClose      = new System.Windows.Forms.Button();
     SuspendLayout();
     //
     // progressBar1
     //
     progressBar1.ForeColor = System.Drawing.Color.Blue;
     progressBar1.Location  = new System.Drawing.Point(7, 7);
     progressBar1.Name      = "progressBar1";
     progressBar1.Size      = new System.Drawing.Size(334, 20);
     progressBar1.Step      = 1;
     progressBar1.Style     = System.Windows.Forms.ProgressBarStyle.Continuous;
     progressBar1.TabIndex  = 0;
     //
     // btCancel
     //
     btCancel.Location = new System.Drawing.Point(81, 194);
     btCancel.Name     = "btCancel";
     btCancel.Size     = new System.Drawing.Size(90, 25);
     btCancel.TabIndex = 0;
     btCancel.Text     = "Cancel";
     btCancel.UseVisualStyleBackColor = true;
     btCancel.Click += new System.EventHandler(btCancel_Click);
     //
     // txtInfo
     //
     txtInfo.AcceptsReturn    = true;
     txtInfo.AcceptsTab       = true;
     txtInfo.CausesValidation = false;
     txtInfo.Location         = new System.Drawing.Point(7, 33);
     txtInfo.Multiline        = true;
     txtInfo.Name             = "txtInfo";
     txtInfo.ReadOnly         = true;
     txtInfo.ScrollBars       = System.Windows.Forms.ScrollBars.Both;
     txtInfo.Size             = new System.Drawing.Size(334, 155);
     txtInfo.TabIndex         = 3;
     txtInfo.TabStop          = false;
     txtInfo.WordWrap         = false;
     //
     // btClose
     //
     btClose.Enabled  = false;
     btClose.Location = new System.Drawing.Point(177, 194);
     btClose.Name     = "btClose";
     btClose.Size     = new System.Drawing.Size(90, 25);
     btClose.TabIndex = 1;
     btClose.Text     = "Close";
     btClose.UseVisualStyleBackColor = true;
     btClose.Click += new System.EventHandler(btClose_Click);
     //
     // FrmRunner
     //
     AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
     AutoScaleMode       = System.Windows.Forms.AutoScaleMode.Font;
     ClientSize          = new System.Drawing.Size(349, 224);
     Controls.Add(btClose);
     Controls.Add(txtInfo);
     Controls.Add(btCancel);
     Controls.Add(progressBar1);
     FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedDialog;
     MaximizeBox     = false;
     MinimizeBox     = false;
     Name            = "FrmRunner";
     ShowIcon        = false;
     ShowInTaskbar   = false;
     StartPosition   = System.Windows.Forms.FormStartPosition.CenterScreen;
     Text            = "Progress";
     FormClosing    += new System.Windows.Forms.FormClosingEventHandler(FormProgress_FormClosing);
     Load           += new System.EventHandler(FrmProgress_Load);
     ResumeLayout(false);
     PerformLayout();
 }
Exemple #50
0
 public void Inflate(System.Drawing.SizeF size)
 {
 }
 private void EstablecerFuente()
 {
     mFuente        = new System.Drawing.Font(mFuenteNombre, mFuenteTamaño, mFuenteEstilo);
     sz             = ge.Graphics.MeasureString(" ", mFuente);
     mFuenteEspacio = sz.Width;
 }
Exemple #52
0
 public RectangleF(System.Drawing.PointF location, System.Drawing.SizeF size)
 {
     throw null;
 }
Exemple #53
0
 public static System.Drawing.SizeF Subtract(System.Drawing.SizeF sz1, System.Drawing.SizeF sz2)
 {
     throw null;
 }
Exemple #54
0
 /// <summary>
 /// Required method for Designer support - do not modify
 /// the contents of this method with the code editor.
 /// </summary>
 private void InitializeComponent()
 {
     cmdCancel  = new Nevron.UI.WinForm.Controls.NButton();
     cmdOK      = new Nevron.UI.WinForm.Controls.NButton();
     Label1     = new System.Windows.Forms.Label();
     cboPattern = new Nevron.UI.WinForm.Controls.NComboBox();
     SuspendLayout();
     //
     // cmdCancel
     //
     cmdCancel.DialogResult            = System.Windows.Forms.DialogResult.Cancel;
     cmdCancel.Location                = new System.Drawing.Point(316, 64);
     cmdCancel.Name                    = "cmdCancel";
     cmdCancel.Size                    = new System.Drawing.Size(63, 23);
     cmdCancel.TabIndex                = 66;
     cmdCancel.Text                    = "&Cancel";
     cmdCancel.UseVisualStyleBackColor = false;
     cmdCancel.Click                  += new System.EventHandler(cmdCancel_Click);
     //
     // cmdOK
     //
     cmdOK.Location = new System.Drawing.Point(241, 64);
     cmdOK.Name     = "cmdOK";
     cmdOK.Size     = new System.Drawing.Size(63, 23);
     cmdOK.TabIndex = 65;
     cmdOK.Text     = "&OK";
     cmdOK.UseVisualStyleBackColor = false;
     cmdOK.Click += new System.EventHandler(cmdOK_Click);
     //
     // Label1
     //
     Label1.AutoSize  = true;
     Label1.BackColor = System.Drawing.Color.Transparent;
     Label1.Location  = new System.Drawing.Point(21, 23);
     Label1.Name      = "Label1";
     Label1.Size      = new System.Drawing.Size(88, 13);
     Label1.TabIndex  = 67;
     Label1.Text      = "Pattern Definition\r\n";
     //
     // cboPattern
     //
     cboPattern.ListProperties.ColumnOnLeft = false;
     cboPattern.Location              = new System.Drawing.Point(119, 19);
     cboPattern.Name                  = "cboPattern";
     cboPattern.Size                  = new System.Drawing.Size(260, 22);
     cboPattern.TabIndex              = 64;
     cboPattern.SelectedIndexChanged += new System.EventHandler(cboPattern_SelectedIndexChanged);
     //
     // frmPatternRecognition
     //
     AcceptButton        = cmdOK;
     AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
     AutoScaleMode       = System.Windows.Forms.AutoScaleMode.Font;
     CancelButton        = cmdCancel;
     ClientSize          = new System.Drawing.Size(401, 107);
     Controls.Add(cmdCancel);
     Controls.Add(cmdOK);
     Controls.Add(Label1);
     Controls.Add(cboPattern);
     FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedDialog;
     MaximizeBox     = false;
     MinimizeBox     = false;
     Name            = "frmPatternRecognition";
     ShowInTaskbar   = false;
     StartPosition   = System.Windows.Forms.FormStartPosition.CenterParent;
     Text            = "Advanced Pattern Recognition";
     Load           += new System.EventHandler(frmPatternRecognition_Load);
     ResumeLayout(false);
     PerformLayout();
 }
        /// <summary> 
        /// Required method for Designer support - do not modify 
        /// the contents of this method with the code editor.
        /// </summary>
        private void InitializeComponent()
        {
            chkAreaShowGroups = new System.Windows.Forms.CheckBox();
            txtAreaId = new System.Windows.Forms.TextBox();
            txtAreaUrl = new System.Windows.Forms.TextBox();
            txtAreaIcon = new System.Windows.Forms.TextBox();
            lblAreaId = new System.Windows.Forms.Label();
            lblAreaUrl = new System.Windows.Forms.Label();
            lblAreaShowGroups = new System.Windows.Forms.Label();
            lblAreaIcon = new System.Windows.Forms.Label();
            txtAreaResourceId = new System.Windows.Forms.TextBox();
            txtAreaDescriptionResourceId = new System.Windows.Forms.TextBox();
            lblAreaResourceId = new System.Windows.Forms.Label();
            lblAreaDescriptionResourceId = new System.Windows.Forms.Label();
            lblRequired = new System.Windows.Forms.Label();
            btnBrowsIcon = new System.Windows.Forms.Button();
            buttonBrowseUrl = new System.Windows.Forms.Button();
            label1 = new System.Windows.Forms.Label();
            label2 = new System.Windows.Forms.Label();
            label3 = new System.Windows.Forms.Label();
            txtAreaTitle = new System.Windows.Forms.TextBox();
            txtAreaDescription = new System.Windows.Forms.TextBox();
            panel1 = new System.Windows.Forms.Panel();
            SuspendLayout();
            // 
            // chkAreaShowGroups
            // 
            chkAreaShowGroups.AutoSize = true;
            chkAreaShowGroups.Font = new System.Drawing.Font("Segoe UI", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            chkAreaShowGroups.Location = new System.Drawing.Point(211, 83);
            chkAreaShowGroups.Name = "chkAreaShowGroups";
            chkAreaShowGroups.Size = new System.Drawing.Size(15, 14);
            chkAreaShowGroups.TabIndex = 15;
            chkAreaShowGroups.UseVisualStyleBackColor = true;
            // 
            // txtAreaId
            // 
            txtAreaId.Font = new System.Drawing.Font("Segoe UI", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            txtAreaId.Location = new System.Drawing.Point(210, 3);
            txtAreaId.Name = "txtAreaId";
            txtAreaId.Size = new System.Drawing.Size(280, 22);
            txtAreaId.TabIndex = 14;
            // 
            // txtAreaUrl
            // 
            txtAreaUrl.Font = new System.Drawing.Font("Segoe UI", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            txtAreaUrl.Location = new System.Drawing.Point(210, 55);
            txtAreaUrl.Name = "txtAreaUrl";
            txtAreaUrl.Size = new System.Drawing.Size(234, 22);
            txtAreaUrl.TabIndex = 13;
            // 
            // txtAreaIcon
            // 
            txtAreaIcon.Font = new System.Drawing.Font("Segoe UI", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            txtAreaIcon.Location = new System.Drawing.Point(210, 29);
            txtAreaIcon.Name = "txtAreaIcon";
            txtAreaIcon.Size = new System.Drawing.Size(234, 22);
            txtAreaIcon.TabIndex = 12;
            // 
            // lblAreaId
            // 
            lblAreaId.AutoSize = true;
            lblAreaId.Font = new System.Drawing.Font("Segoe UI", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            lblAreaId.ForeColor = System.Drawing.Color.Black;
            lblAreaId.Location = new System.Drawing.Point(3, 6);
            lblAreaId.Name = "lblAreaId";
            lblAreaId.Size = new System.Drawing.Size(17, 13);
            lblAreaId.TabIndex = 11;
            lblAreaId.Text = "Id";
            // 
            // lblAreaUrl
            // 
            lblAreaUrl.AutoSize = true;
            lblAreaUrl.Font = new System.Drawing.Font("Segoe UI", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            lblAreaUrl.Location = new System.Drawing.Point(3, 58);
            lblAreaUrl.Name = "lblAreaUrl";
            lblAreaUrl.Size = new System.Drawing.Size(22, 13);
            lblAreaUrl.TabIndex = 10;
            lblAreaUrl.Text = "Url";
            // 
            // lblAreaShowGroups
            // 
            lblAreaShowGroups.AutoSize = true;
            lblAreaShowGroups.Font = new System.Drawing.Font("Segoe UI", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            lblAreaShowGroups.Location = new System.Drawing.Point(3, 83);
            lblAreaShowGroups.Name = "lblAreaShowGroups";
            lblAreaShowGroups.Size = new System.Drawing.Size(77, 13);
            lblAreaShowGroups.TabIndex = 9;
            lblAreaShowGroups.Text = "Show Groups";
            // 
            // lblAreaIcon
            // 
            lblAreaIcon.AutoSize = true;
            lblAreaIcon.Font = new System.Drawing.Font("Segoe UI", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            lblAreaIcon.Location = new System.Drawing.Point(3, 32);
            lblAreaIcon.Name = "lblAreaIcon";
            lblAreaIcon.Size = new System.Drawing.Size(29, 13);
            lblAreaIcon.TabIndex = 8;
            lblAreaIcon.Text = "Icon";
            // 
            // txtAreaResourceId
            // 
            txtAreaResourceId.Font = new System.Drawing.Font("Segoe UI", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            txtAreaResourceId.Location = new System.Drawing.Point(210, 102);
            txtAreaResourceId.Name = "txtAreaResourceId";
            txtAreaResourceId.ReadOnly = true;
            txtAreaResourceId.Size = new System.Drawing.Size(280, 22);
            txtAreaResourceId.TabIndex = 21;
            // 
            // txtAreaDescriptionResourceId
            // 
            txtAreaDescriptionResourceId.Font = new System.Drawing.Font("Segoe UI", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            txtAreaDescriptionResourceId.Location = new System.Drawing.Point(210, 128);
            txtAreaDescriptionResourceId.Name = "txtAreaDescriptionResourceId";
            txtAreaDescriptionResourceId.ReadOnly = true;
            txtAreaDescriptionResourceId.Size = new System.Drawing.Size(280, 22);
            txtAreaDescriptionResourceId.TabIndex = 20;
            // 
            // lblAreaResourceId
            // 
            lblAreaResourceId.AutoSize = true;
            lblAreaResourceId.Font = new System.Drawing.Font("Segoe UI", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            lblAreaResourceId.Location = new System.Drawing.Point(3, 105);
            lblAreaResourceId.Name = "lblAreaResourceId";
            lblAreaResourceId.Size = new System.Drawing.Size(67, 13);
            lblAreaResourceId.TabIndex = 19;
            lblAreaResourceId.Text = "Resource Id";
            // 
            // lblAreaDescriptionResourceId
            // 
            lblAreaDescriptionResourceId.AutoSize = true;
            lblAreaDescriptionResourceId.Font = new System.Drawing.Font("Segoe UI", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            lblAreaDescriptionResourceId.Location = new System.Drawing.Point(3, 131);
            lblAreaDescriptionResourceId.Name = "lblAreaDescriptionResourceId";
            lblAreaDescriptionResourceId.Size = new System.Drawing.Size(129, 13);
            lblAreaDescriptionResourceId.TabIndex = 18;
            lblAreaDescriptionResourceId.Text = "Description Resource Id";
            // 
            // lblRequired
            // 
            lblRequired.AutoSize = true;
            lblRequired.Font = new System.Drawing.Font("Segoe UI", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            lblRequired.ForeColor = System.Drawing.Color.Red;
            lblRequired.Location = new System.Drawing.Point(18, 6);
            lblRequired.Name = "lblRequired";
            lblRequired.Size = new System.Drawing.Size(12, 13);
            lblRequired.TabIndex = 22;
            lblRequired.Text = "*";
            // 
            // btnBrowsIcon
            // 
            btnBrowsIcon.Font = new System.Drawing.Font("Segoe UI", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            btnBrowsIcon.Location = new System.Drawing.Point(450, 29);
            btnBrowsIcon.Name = "btnBrowsIcon";
            btnBrowsIcon.Size = new System.Drawing.Size(40, 23);
            btnBrowsIcon.TabIndex = 78;
            btnBrowsIcon.Text = "...";
            btnBrowsIcon.UseVisualStyleBackColor = true;
            btnBrowsIcon.Click += new System.EventHandler(btnBrowsIcon_Click);
            // 
            // buttonBrowseUrl
            // 
            buttonBrowseUrl.Font = new System.Drawing.Font("Segoe UI", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            buttonBrowseUrl.Location = new System.Drawing.Point(450, 53);
            buttonBrowseUrl.Name = "buttonBrowseUrl";
            buttonBrowseUrl.Size = new System.Drawing.Size(40, 23);
            buttonBrowseUrl.TabIndex = 79;
            buttonBrowseUrl.Text = "...";
            buttonBrowseUrl.UseVisualStyleBackColor = true;
            buttonBrowseUrl.Click += new System.EventHandler(buttonBrowseUrl_Click);
            // 
            // label1
            // 
            label1.AutoSize = true;
            label1.Font = new System.Drawing.Font("Segoe UI", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            label1.Location = new System.Drawing.Point(3, 159);
            label1.Name = "label1";
            label1.Size = new System.Drawing.Size(119, 13);
            label1.TabIndex = 80;
            label1.Text = "Deprecated attributes";
            // 
            // label2
            // 
            label2.AutoSize = true;
            label2.Font = new System.Drawing.Font("Segoe UI", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            label2.Location = new System.Drawing.Point(3, 185);
            label2.Name = "label2";
            label2.Size = new System.Drawing.Size(28, 13);
            label2.TabIndex = 81;
            label2.Text = "Title";
            // 
            // label3
            // 
            label3.AutoSize = true;
            label3.Font = new System.Drawing.Font("Segoe UI", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            label3.Location = new System.Drawing.Point(3, 211);
            label3.Name = "label3";
            label3.Size = new System.Drawing.Size(66, 13);
            label3.TabIndex = 82;
            label3.Text = "Description";
            // 
            // txtAreaTitle
            // 
            txtAreaTitle.Font = new System.Drawing.Font("Segoe UI", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            txtAreaTitle.Location = new System.Drawing.Point(211, 182);
            txtAreaTitle.Name = "txtAreaTitle";
            txtAreaTitle.Size = new System.Drawing.Size(279, 22);
            txtAreaTitle.TabIndex = 83;
            // 
            // txtAreaDescription
            // 
            txtAreaDescription.Font = new System.Drawing.Font("Segoe UI", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            txtAreaDescription.Location = new System.Drawing.Point(210, 208);
            txtAreaDescription.Name = "txtAreaDescription";
            txtAreaDescription.Size = new System.Drawing.Size(280, 22);
            txtAreaDescription.TabIndex = 84;
            // 
            // panel1
            // 
            panel1.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
            panel1.Font = new System.Drawing.Font("Segoe UI", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            panel1.Location = new System.Drawing.Point(6, 174);
            panel1.Name = "panel1";
            panel1.Size = new System.Drawing.Size(490, 1);
            panel1.TabIndex = 85;
            // 
            // AreaControl
            // 
            AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
            AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
            Controls.Add(panel1);
            Controls.Add(txtAreaDescription);
            Controls.Add(txtAreaTitle);
            Controls.Add(label3);
            Controls.Add(label2);
            Controls.Add(label1);
            Controls.Add(buttonBrowseUrl);
            Controls.Add(btnBrowsIcon);
            Controls.Add(lblRequired);
            Controls.Add(txtAreaResourceId);
            Controls.Add(txtAreaDescriptionResourceId);
            Controls.Add(lblAreaResourceId);
            Controls.Add(lblAreaDescriptionResourceId);
            Controls.Add(chkAreaShowGroups);
            Controls.Add(txtAreaId);
            Controls.Add(txtAreaUrl);
            Controls.Add(txtAreaIcon);
            Controls.Add(lblAreaId);
            Controls.Add(lblAreaUrl);
            Controls.Add(lblAreaShowGroups);
            Controls.Add(lblAreaIcon);
            Name = "AreaControl";
            Size = new System.Drawing.Size(500, 400);
            Leave += new System.EventHandler(SiteMapControl_Leave);
            ResumeLayout(false);
            PerformLayout();

        }
 /// <summary>
 /// Required method for Designer support - do not modify
 /// the contents of this method with the code editor.
 /// </summary>
 private void InitializeComponent()
 {
     System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(Defender));
     lostPanel1            = new ReaLTaiizor.Controls.LostPanel();
     pictureBox6           = new System.Windows.Forms.PictureBox();
     pictureBox5           = new System.Windows.Forms.PictureBox();
     pictureBox4           = new System.Windows.Forms.PictureBox();
     pictureBox3           = new System.Windows.Forms.PictureBox();
     pictureBox2           = new System.Windows.Forms.PictureBox();
     panel1                = new ReaLTaiizor.Controls.Panel();
     lostPanel2            = new ReaLTaiizor.Controls.LostPanel();
     labelEdit5            = new ReaLTaiizor.Controls.LabelEdit();
     labelEdit4            = new ReaLTaiizor.Controls.LabelEdit();
     labelEdit3            = new ReaLTaiizor.Controls.LabelEdit();
     labelEdit2            = new ReaLTaiizor.Controls.LabelEdit();
     lostButton4           = new ReaLTaiizor.Controls.LostButton();
     lostButton3           = new ReaLTaiizor.Controls.LostButton();
     lostButton2           = new ReaLTaiizor.Controls.LostButton();
     lostButton1           = new ReaLTaiizor.Controls.LostButton();
     hopePictureBox1       = new ReaLTaiizor.Controls.HopePictureBox();
     labelEdit1            = new ReaLTaiizor.Controls.LabelEdit();
     pictureBox1           = new System.Windows.Forms.PictureBox();
     hopeRoundProgressBar1 = new ReaLTaiizor.Controls.HopeRoundProgressBar();
     hopeSwitch1           = new ReaLTaiizor.Controls.HopeSwitch();
     hopeSwitch2           = new ReaLTaiizor.Controls.HopeSwitch();
     hopeRoundProgressBar2 = new ReaLTaiizor.Controls.HopeRoundProgressBar();
     labelEdit6            = new ReaLTaiizor.Controls.LabelEdit();
     labelEdit7            = new ReaLTaiizor.Controls.LabelEdit();
     lostPanel1.SuspendLayout();
     ((System.ComponentModel.ISupportInitialize)(pictureBox6)).BeginInit();
     ((System.ComponentModel.ISupportInitialize)(pictureBox5)).BeginInit();
     ((System.ComponentModel.ISupportInitialize)(pictureBox4)).BeginInit();
     ((System.ComponentModel.ISupportInitialize)(pictureBox3)).BeginInit();
     ((System.ComponentModel.ISupportInitialize)(pictureBox2)).BeginInit();
     lostPanel2.SuspendLayout();
     ((System.ComponentModel.ISupportInitialize)(hopePictureBox1)).BeginInit();
     ((System.ComponentModel.ISupportInitialize)(pictureBox1)).BeginInit();
     SuspendLayout();
     //
     // lostPanel1
     //
     lostPanel1.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(63)))), ((int)(((byte)(70)))));
     lostPanel1.Controls.Add(pictureBox6);
     lostPanel1.Controls.Add(pictureBox5);
     lostPanel1.Controls.Add(pictureBox4);
     lostPanel1.Controls.Add(pictureBox3);
     lostPanel1.Controls.Add(pictureBox2);
     lostPanel1.Controls.Add(panel1);
     lostPanel1.Font      = new System.Drawing.Font("Segoe UI", 12F);
     lostPanel1.ForeColor = System.Drawing.Color.White;
     lostPanel1.Location  = new System.Drawing.Point(2, 91);
     lostPanel1.Name      = "lostPanel1";
     lostPanel1.Padding   = new System.Windows.Forms.Padding(5);
     lostPanel1.ShowText  = false;
     lostPanel1.Size      = new System.Drawing.Size(50, 247);
     lostPanel1.TabIndex  = 1;
     lostPanel1.Text      = "lostPanel1";
     //
     // pictureBox6
     //
     pictureBox6.Cursor   = System.Windows.Forms.Cursors.Hand;
     pictureBox6.Image    = global::ReaLTaiizor.Defender.Properties.Resources.Setting;
     pictureBox6.Location = new System.Drawing.Point(8, 204);
     pictureBox6.Name     = "pictureBox6";
     pictureBox6.Size     = new System.Drawing.Size(32, 32);
     pictureBox6.SizeMode = System.Windows.Forms.PictureBoxSizeMode.Zoom;
     pictureBox6.TabIndex = 12;
     pictureBox6.TabStop  = false;
     pictureBox6.Click   += new System.EventHandler(PictureBox6_Click);
     //
     // pictureBox5
     //
     pictureBox5.Cursor   = System.Windows.Forms.Cursors.Hand;
     pictureBox5.Image    = global::ReaLTaiizor.Defender.Properties.Resources.Connect;
     pictureBox5.Location = new System.Drawing.Point(8, 108);
     pictureBox5.Name     = "pictureBox5";
     pictureBox5.Size     = new System.Drawing.Size(32, 32);
     pictureBox5.SizeMode = System.Windows.Forms.PictureBoxSizeMode.Zoom;
     pictureBox5.TabIndex = 11;
     pictureBox5.TabStop  = false;
     pictureBox5.Click   += new System.EventHandler(PictureBox5_Click);
     //
     // pictureBox4
     //
     pictureBox4.Cursor   = System.Windows.Forms.Cursors.Hand;
     pictureBox4.Image    = global::ReaLTaiizor.Defender.Properties.Resources.Guard;
     pictureBox4.Location = new System.Drawing.Point(8, 156);
     pictureBox4.Name     = "pictureBox4";
     pictureBox4.Size     = new System.Drawing.Size(32, 32);
     pictureBox4.SizeMode = System.Windows.Forms.PictureBoxSizeMode.Zoom;
     pictureBox4.TabIndex = 10;
     pictureBox4.TabStop  = false;
     pictureBox4.Click   += new System.EventHandler(PictureBox4_Click);
     //
     // pictureBox3
     //
     pictureBox3.Cursor   = System.Windows.Forms.Cursors.Hand;
     pictureBox3.Image    = global::ReaLTaiizor.Defender.Properties.Resources.Home;
     pictureBox3.Location = new System.Drawing.Point(8, 60);
     pictureBox3.Name     = "pictureBox3";
     pictureBox3.Size     = new System.Drawing.Size(32, 32);
     pictureBox3.SizeMode = System.Windows.Forms.PictureBoxSizeMode.Zoom;
     pictureBox3.TabIndex = 9;
     pictureBox3.TabStop  = false;
     pictureBox3.Click   += new System.EventHandler(PictureBox3_Click);
     //
     // pictureBox2
     //
     pictureBox2.Cursor   = System.Windows.Forms.Cursors.Hand;
     pictureBox2.Image    = global::ReaLTaiizor.Defender.Properties.Resources.Menu;
     pictureBox2.Location = new System.Drawing.Point(8, 12);
     pictureBox2.Name     = "pictureBox2";
     pictureBox2.Size     = new System.Drawing.Size(32, 32);
     pictureBox2.SizeMode = System.Windows.Forms.PictureBoxSizeMode.Zoom;
     pictureBox2.TabIndex = 8;
     pictureBox2.TabStop  = false;
     pictureBox2.Click   += new System.EventHandler(PictureBox2_Click);
     //
     // panel1
     //
     panel1.BackColor     = System.Drawing.Color.Crimson;
     panel1.EdgeColor     = System.Drawing.Color.FromArgb(((int)(((byte)(32)))), ((int)(((byte)(41)))), ((int)(((byte)(50)))));
     panel1.ForeColor     = System.Drawing.Color.Crimson;
     panel1.Location      = new System.Drawing.Point(0, 3);
     panel1.Name          = "panel1";
     panel1.Padding       = new System.Windows.Forms.Padding(5);
     panel1.Size          = new System.Drawing.Size(5, 50);
     panel1.SmoothingType = System.Drawing.Drawing2D.SmoothingMode.HighQuality;
     panel1.TabIndex      = 8;
     //
     // lostPanel2
     //
     lostPanel2.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(53)))), ((int)(((byte)(53)))), ((int)(((byte)(60)))));
     lostPanel2.Controls.Add(labelEdit5);
     lostPanel2.Controls.Add(labelEdit4);
     lostPanel2.Controls.Add(labelEdit3);
     lostPanel2.Controls.Add(labelEdit2);
     lostPanel2.Controls.Add(lostButton4);
     lostPanel2.Controls.Add(lostButton3);
     lostPanel2.Controls.Add(lostButton2);
     lostPanel2.Controls.Add(lostButton1);
     lostPanel2.Dock      = System.Windows.Forms.DockStyle.Bottom;
     lostPanel2.Font      = new System.Drawing.Font("Segoe UI", 12F);
     lostPanel2.ForeColor = System.Drawing.Color.White;
     lostPanel2.Location  = new System.Drawing.Point(2, 426);
     lostPanel2.Name      = "lostPanel2";
     lostPanel2.Padding   = new System.Windows.Forms.Padding(5);
     lostPanel2.ShowText  = false;
     lostPanel2.Size      = new System.Drawing.Size(796, 112);
     lostPanel2.TabIndex  = 2;
     lostPanel2.Text      = "lostPanel2";
     //
     // labelEdit5
     //
     labelEdit5.AutoSize  = true;
     labelEdit5.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(21)))), ((int)(((byte)(25)))), ((int)(((byte)(31)))));
     labelEdit5.Cursor    = System.Windows.Forms.Cursors.Hand;
     labelEdit5.Font      = new System.Drawing.Font("Microsoft Sans Serif", 10F);
     labelEdit5.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(253)))), ((int)(((byte)(88)))), ((int)(((byte)(104)))));
     labelEdit5.Location  = new System.Drawing.Point(518, 87);
     labelEdit5.Name      = "labelEdit5";
     labelEdit5.Size      = new System.Drawing.Size(55, 17);
     labelEdit5.TabIndex  = 7;
     labelEdit5.Text      = "Firewall";
     //
     // labelEdit4
     //
     labelEdit4.AutoSize  = true;
     labelEdit4.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(21)))), ((int)(((byte)(25)))), ((int)(((byte)(31)))));
     labelEdit4.Cursor    = System.Windows.Forms.Cursors.Hand;
     labelEdit4.Font      = new System.Drawing.Font("Microsoft Sans Serif", 10F);
     labelEdit4.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(232)))), ((int)(((byte)(121)))), ((int)(((byte)(162)))));
     labelEdit4.Location  = new System.Drawing.Point(400, 87);
     labelEdit4.Name      = "labelEdit4";
     labelEdit4.Size      = new System.Drawing.Size(66, 17);
     labelEdit4.TabIndex  = 6;
     labelEdit4.Text      = "Full Scan";
     //
     // labelEdit3
     //
     labelEdit3.AutoSize  = true;
     labelEdit3.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(21)))), ((int)(((byte)(25)))), ((int)(((byte)(31)))));
     labelEdit3.Cursor    = System.Windows.Forms.Cursors.Hand;
     labelEdit3.Font      = new System.Drawing.Font("Microsoft Sans Serif", 10F);
     labelEdit3.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(173)))), ((int)(((byte)(101)))), ((int)(((byte)(235)))));
     labelEdit3.Location  = new System.Drawing.Point(273, 87);
     labelEdit3.Name      = "labelEdit3";
     labelEdit3.Size      = new System.Drawing.Size(91, 17);
     labelEdit3.TabIndex  = 5;
     labelEdit3.Text      = "Custom Scan";
     //
     // labelEdit2
     //
     labelEdit2.AutoSize  = true;
     labelEdit2.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(21)))), ((int)(((byte)(25)))), ((int)(((byte)(31)))));
     labelEdit2.Cursor    = System.Windows.Forms.Cursors.Hand;
     labelEdit2.Font      = new System.Drawing.Font("Microsoft Sans Serif", 10F);
     labelEdit2.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(105)))), ((int)(((byte)(95)))), ((int)(((byte)(235)))));
     labelEdit2.Location  = new System.Drawing.Point(166, 87);
     labelEdit2.Name      = "labelEdit2";
     labelEdit2.Size      = new System.Drawing.Size(80, 17);
     labelEdit2.TabIndex  = 4;
     labelEdit2.Text      = "Quick Scan";
     //
     // lostButton4
     //
     lostButton4.BackColor  = System.Drawing.Color.FromArgb(((int)(((byte)(21)))), ((int)(((byte)(25)))), ((int)(((byte)(31)))));
     lostButton4.Cursor     = System.Windows.Forms.Cursors.Hand;
     lostButton4.Font       = new System.Drawing.Font("Segoe UI", 9F);
     lostButton4.ForeColor  = System.Drawing.Color.White;
     lostButton4.HoverColor = System.Drawing.Color.FromArgb(((int)(((byte)(11)))), ((int)(((byte)(15)))), ((int)(((byte)(21)))));
     lostButton4.Image      = global::ReaLTaiizor.Defender.Properties.Resources.Firewall;
     lostButton4.Location   = new System.Drawing.Point(494, 6);
     lostButton4.Name       = "lostButton4";
     lostButton4.Size       = new System.Drawing.Size(103, 103);
     lostButton4.TabIndex   = 3;
     //
     // lostButton3
     //
     lostButton3.BackColor  = System.Drawing.Color.FromArgb(((int)(((byte)(21)))), ((int)(((byte)(25)))), ((int)(((byte)(31)))));
     lostButton3.Cursor     = System.Windows.Forms.Cursors.Hand;
     lostButton3.Font       = new System.Drawing.Font("Segoe UI", 9F);
     lostButton3.ForeColor  = System.Drawing.Color.White;
     lostButton3.HoverColor = System.Drawing.Color.FromArgb(((int)(((byte)(11)))), ((int)(((byte)(15)))), ((int)(((byte)(21)))));
     lostButton3.Image      = global::ReaLTaiizor.Defender.Properties.Resources.FullScan;
     lostButton3.Location   = new System.Drawing.Point(382, 6);
     lostButton3.Name       = "lostButton3";
     lostButton3.Size       = new System.Drawing.Size(103, 103);
     lostButton3.TabIndex   = 2;
     //
     // lostButton2
     //
     lostButton2.BackColor  = System.Drawing.Color.FromArgb(((int)(((byte)(21)))), ((int)(((byte)(25)))), ((int)(((byte)(31)))));
     lostButton2.Cursor     = System.Windows.Forms.Cursors.Hand;
     lostButton2.Font       = new System.Drawing.Font("Segoe UI", 9F);
     lostButton2.ForeColor  = System.Drawing.Color.White;
     lostButton2.HoverColor = System.Drawing.Color.FromArgb(((int)(((byte)(11)))), ((int)(((byte)(15)))), ((int)(((byte)(21)))));
     lostButton2.Image      = global::ReaLTaiizor.Defender.Properties.Resources.CustomScan;
     lostButton2.Location   = new System.Drawing.Point(267, 6);
     lostButton2.Name       = "lostButton2";
     lostButton2.Size       = new System.Drawing.Size(103, 103);
     lostButton2.TabIndex   = 1;
     //
     // lostButton1
     //
     lostButton1.BackColor  = System.Drawing.Color.FromArgb(((int)(((byte)(21)))), ((int)(((byte)(25)))), ((int)(((byte)(31)))));
     lostButton1.Cursor     = System.Windows.Forms.Cursors.Hand;
     lostButton1.Font       = new System.Drawing.Font("Segoe UI", 9F);
     lostButton1.ForeColor  = System.Drawing.Color.White;
     lostButton1.HoverColor = System.Drawing.Color.FromArgb(((int)(((byte)(11)))), ((int)(((byte)(15)))), ((int)(((byte)(21)))));
     lostButton1.Image      = global::ReaLTaiizor.Defender.Properties.Resources.QuickScan;
     lostButton1.Location   = new System.Drawing.Point(155, 6);
     lostButton1.Name       = "lostButton1";
     lostButton1.Size       = new System.Drawing.Size(103, 103);
     lostButton1.TabIndex   = 0;
     //
     // hopePictureBox1
     //
     hopePictureBox1.BackColor = System.Drawing.Color.Transparent;
     hopePictureBox1.Dock      = System.Windows.Forms.DockStyle.Fill;
     hopePictureBox1.Image     = global::ReaLTaiizor.Defender.Properties.Resources.Live;
     hopePictureBox1.Location  = new System.Drawing.Point(2, 36);
     hopePictureBox1.Name      = "hopePictureBox1";
     hopePictureBox1.Size      = new System.Drawing.Size(796, 390);
     hopePictureBox1.SizeMode  = System.Windows.Forms.PictureBoxSizeMode.Zoom;
     hopePictureBox1.TabIndex  = 3;
     hopePictureBox1.TabStop   = false;
     //
     // labelEdit1
     //
     labelEdit1.AutoSize  = true;
     labelEdit1.BackColor = System.Drawing.Color.Transparent;
     labelEdit1.Font      = new System.Drawing.Font("Segoe UI", 18F);
     labelEdit1.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(4)))), ((int)(((byte)(196)))), ((int)(((byte)(150)))));
     labelEdit1.Location  = new System.Drawing.Point(168, 89);
     labelEdit1.Name      = "labelEdit1";
     labelEdit1.Size      = new System.Drawing.Size(464, 32);
     labelEdit1.TabIndex  = 6;
     labelEdit1.Text      = "Your PC is being Monitored and Protected";
     //
     // pictureBox1
     //
     pictureBox1.Image    = global::ReaLTaiizor.Defender.Properties.Resources.Protected;
     pictureBox1.Location = new System.Drawing.Point(375, 39);
     pictureBox1.Name     = "pictureBox1";
     pictureBox1.Size     = new System.Drawing.Size(50, 50);
     pictureBox1.SizeMode = System.Windows.Forms.PictureBoxSizeMode.Zoom;
     pictureBox1.TabIndex = 7;
     pictureBox1.TabStop  = false;
     //
     // hopeRoundProgressBar1
     //
     hopeRoundProgressBar1.BackColor        = System.Drawing.Color.White;
     hopeRoundProgressBar1.BarColor         = System.Drawing.Color.FromArgb(((int)(((byte)(10)))), ((int)(((byte)(143)))), ((int)(((byte)(255)))));
     hopeRoundProgressBar1.BorderColor      = System.Drawing.Color.FromArgb(((int)(((byte)(220)))), ((int)(((byte)(223)))), ((int)(((byte)(230)))));
     hopeRoundProgressBar1.DangerColor      = System.Drawing.Color.FromArgb(((int)(((byte)(245)))), ((int)(((byte)(108)))), ((int)(((byte)(108)))));
     hopeRoundProgressBar1.DangerTextColorA = System.Drawing.Color.FromArgb(((int)(((byte)(245)))), ((int)(((byte)(108)))), ((int)(((byte)(108)))));
     hopeRoundProgressBar1.DangerTextColorB = System.Drawing.Color.FromArgb(((int)(((byte)(245)))), ((int)(((byte)(108)))), ((int)(((byte)(108)))));
     hopeRoundProgressBar1.Font             = new System.Drawing.Font("Segoe UI", 12F);
     hopeRoundProgressBar1.ForeColor        = System.Drawing.Color.White;
     hopeRoundProgressBar1.FullBarColor     = System.Drawing.Color.FromArgb(((int)(((byte)(10)))), ((int)(((byte)(143)))), ((int)(((byte)(255)))));
     hopeRoundProgressBar1.FullTextColorA   = System.Drawing.Color.FromArgb(((int)(((byte)(103)))), ((int)(((byte)(194)))), ((int)(((byte)(58)))));
     hopeRoundProgressBar1.FullTextColorB   = System.Drawing.Color.FromArgb(((int)(((byte)(103)))), ((int)(((byte)(194)))), ((int)(((byte)(58)))));
     hopeRoundProgressBar1.IsError          = false;
     hopeRoundProgressBar1.Location         = new System.Drawing.Point(287, 380);
     hopeRoundProgressBar1.Name             = "hopeRoundProgressBar1";
     hopeRoundProgressBar1.PercentText      = "%";
     hopeRoundProgressBar1.Size             = new System.Drawing.Size(30, 30);
     hopeRoundProgressBar1.TabIndex         = 10;
     hopeRoundProgressBar1.Text             = "hopeRoundProgressBar1";
     hopeRoundProgressBar1.ValueNumber      = 100;
     //
     // hopeSwitch1
     //
     hopeSwitch1.AutoSize                = true;
     hopeSwitch1.BaseColor               = System.Drawing.Color.Gainsboro;
     hopeSwitch1.BaseOffColor            = System.Drawing.Color.Gray;
     hopeSwitch1.BaseOnColor             = System.Drawing.Color.FromArgb(((int)(((byte)(5)))), ((int)(((byte)(196)))), ((int)(((byte)(150)))));
     hopeSwitch1.Checked                 = true;
     hopeSwitch1.CheckState              = System.Windows.Forms.CheckState.Checked;
     hopeSwitch1.Cursor                  = System.Windows.Forms.Cursors.Hand;
     hopeSwitch1.Location                = new System.Drawing.Point(484, 349);
     hopeSwitch1.Name                    = "hopeSwitch1";
     hopeSwitch1.Size                    = new System.Drawing.Size(40, 20);
     hopeSwitch1.TabIndex                = 11;
     hopeSwitch1.Text                    = "hopeSwitch1";
     hopeSwitch1.UseVisualStyleBackColor = true;
     hopeSwitch1.CheckedChanged         += new System.EventHandler(HopeSwitch1_CheckedChanged);
     //
     // hopeSwitch2
     //
     hopeSwitch2.AutoSize                = true;
     hopeSwitch2.BaseColor               = System.Drawing.Color.Gainsboro;
     hopeSwitch2.BaseOffColor            = System.Drawing.Color.Gray;
     hopeSwitch2.BaseOnColor             = System.Drawing.Color.FromArgb(((int)(((byte)(10)))), ((int)(((byte)(143)))), ((int)(((byte)(255)))));
     hopeSwitch2.Checked                 = true;
     hopeSwitch2.CheckState              = System.Windows.Forms.CheckState.Checked;
     hopeSwitch2.Cursor                  = System.Windows.Forms.Cursors.Hand;
     hopeSwitch2.Location                = new System.Drawing.Point(484, 385);
     hopeSwitch2.Name                    = "hopeSwitch2";
     hopeSwitch2.Size                    = new System.Drawing.Size(40, 20);
     hopeSwitch2.TabIndex                = 12;
     hopeSwitch2.Text                    = "hopeSwitch2";
     hopeSwitch2.UseVisualStyleBackColor = true;
     hopeSwitch2.CheckedChanged         += new System.EventHandler(HopeSwitch2_CheckedChanged);
     //
     // hopeRoundProgressBar2
     //
     hopeRoundProgressBar2.BackColor        = System.Drawing.Color.White;
     hopeRoundProgressBar2.BarColor         = System.Drawing.Color.FromArgb(((int)(((byte)(5)))), ((int)(((byte)(196)))), ((int)(((byte)(150)))));
     hopeRoundProgressBar2.BorderColor      = System.Drawing.Color.FromArgb(((int)(((byte)(220)))), ((int)(((byte)(223)))), ((int)(((byte)(230)))));
     hopeRoundProgressBar2.DangerColor      = System.Drawing.Color.FromArgb(((int)(((byte)(245)))), ((int)(((byte)(108)))), ((int)(((byte)(108)))));
     hopeRoundProgressBar2.DangerTextColorA = System.Drawing.Color.FromArgb(((int)(((byte)(245)))), ((int)(((byte)(108)))), ((int)(((byte)(108)))));
     hopeRoundProgressBar2.DangerTextColorB = System.Drawing.Color.FromArgb(((int)(((byte)(245)))), ((int)(((byte)(108)))), ((int)(((byte)(108)))));
     hopeRoundProgressBar2.Font             = new System.Drawing.Font("Segoe UI", 12F);
     hopeRoundProgressBar2.ForeColor        = System.Drawing.Color.White;
     hopeRoundProgressBar2.FullBarColor     = System.Drawing.Color.FromArgb(((int)(((byte)(5)))), ((int)(((byte)(196)))), ((int)(((byte)(150)))));
     hopeRoundProgressBar2.FullTextColorA   = System.Drawing.Color.FromArgb(((int)(((byte)(103)))), ((int)(((byte)(194)))), ((int)(((byte)(58)))));
     hopeRoundProgressBar2.FullTextColorB   = System.Drawing.Color.FromArgb(((int)(((byte)(103)))), ((int)(((byte)(194)))), ((int)(((byte)(58)))));
     hopeRoundProgressBar2.IsError          = false;
     hopeRoundProgressBar2.Location         = new System.Drawing.Point(287, 344);
     hopeRoundProgressBar2.Name             = "hopeRoundProgressBar2";
     hopeRoundProgressBar2.PercentText      = "%";
     hopeRoundProgressBar2.Size             = new System.Drawing.Size(30, 30);
     hopeRoundProgressBar2.TabIndex         = 13;
     hopeRoundProgressBar2.Text             = "hopeRoundProgressBar2";
     hopeRoundProgressBar2.ValueNumber      = 100;
     //
     // labelEdit6
     //
     labelEdit6.AutoSize  = true;
     labelEdit6.BackColor = System.Drawing.Color.Transparent;
     labelEdit6.Font      = new System.Drawing.Font("Segoe UI", 12F);
     labelEdit6.ForeColor = System.Drawing.Color.Gray;
     labelEdit6.Location  = new System.Drawing.Point(323, 349);
     labelEdit6.Name      = "labelEdit6";
     labelEdit6.Size      = new System.Drawing.Size(155, 21);
     labelEdit6.TabIndex  = 14;
     labelEdit6.Text      = "Real-Time Protection";
     labelEdit6.TextAlign = System.Drawing.ContentAlignment.TopCenter;
     //
     // labelEdit7
     //
     labelEdit7.AutoSize  = true;
     labelEdit7.BackColor = System.Drawing.Color.Transparent;
     labelEdit7.Font      = new System.Drawing.Font("Segoe UI", 12F);
     labelEdit7.ForeColor = System.Drawing.Color.Gray;
     labelEdit7.Location  = new System.Drawing.Point(323, 385);
     labelEdit7.Name      = "labelEdit7";
     labelEdit7.Size      = new System.Drawing.Size(153, 21);
     labelEdit7.TabIndex  = 15;
     labelEdit7.Text      = "Half-Time Protection";
     labelEdit7.TextAlign = System.Drawing.ContentAlignment.TopCenter;
     //
     // Defender
     //
     AutoScaleDimensions = new System.Drawing.SizeF(9F, 21F);
     AutoScaleMode       = System.Windows.Forms.AutoScaleMode.Font;
     BackColor           = System.Drawing.Color.FromArgb(((int)(((byte)(21)))), ((int)(((byte)(25)))), ((int)(((byte)(31)))));
     BorderColor         = System.Drawing.Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(126)))), ((int)(((byte)(108)))));
     ClientSize          = new System.Drawing.Size(800, 540);
     Controls.Add(labelEdit7);
     Controls.Add(labelEdit6);
     Controls.Add(hopeRoundProgressBar2);
     Controls.Add(hopeSwitch2);
     Controls.Add(hopeSwitch1);
     Controls.Add(hopeRoundProgressBar1);
     Controls.Add(pictureBox1);
     Controls.Add(labelEdit1);
     Controls.Add(lostPanel1);
     Controls.Add(hopePictureBox1);
     Controls.Add(lostPanel2);
     HeaderColor   = System.Drawing.Color.FromArgb(((int)(((byte)(1)))), ((int)(((byte)(119)))), ((int)(((byte)(215)))));
     Icon          = ((System.Drawing.Icon)(resources.GetObject("$Icon")));
     Image         = global::ReaLTaiizor.Defender.Properties.Resources.Windows;
     MaximizeBox   = false;
     Name          = "Defender";
     Sizable       = false;
     StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen;
     Text          = "Windows Defender";
     lostPanel1.ResumeLayout(false);
     ((System.ComponentModel.ISupportInitialize)(pictureBox6)).EndInit();
     ((System.ComponentModel.ISupportInitialize)(pictureBox5)).EndInit();
     ((System.ComponentModel.ISupportInitialize)(pictureBox4)).EndInit();
     ((System.ComponentModel.ISupportInitialize)(pictureBox3)).EndInit();
     ((System.ComponentModel.ISupportInitialize)(pictureBox2)).EndInit();
     lostPanel2.ResumeLayout(false);
     lostPanel2.PerformLayout();
     ((System.ComponentModel.ISupportInitialize)(hopePictureBox1)).EndInit();
     ((System.ComponentModel.ISupportInitialize)(pictureBox1)).EndInit();
     ResumeLayout(false);
     PerformLayout();
 }
Exemple #57
0
 /// <summary>
 /// Measures the specified string when drawn with the specified System.Drawing.Font</summary>
 /// <param name="text">String to measure</param>
 /// <param name="format">D2dTextFormat that defines the font and format of the string</param>
 /// <param name="maxSize">The maximum x and y dimensions</param>
 /// <returns>This method returns a System.Drawing.SizeF structure that represents the
 /// size, in DIP (Device Independent Pixels) units of the string specified by the text parameter as drawn 
 /// with the format parameter</returns>
 public SizeF MeasureText(string text, D2dTextFormat format, SizeF maxSize)
 {
     using (var layout = new SharpDX.DirectWrite.TextLayout(D2dFactory.NativeDwFactory,
             text, format.NativeTextFormat, maxSize.Width, maxSize.Height))
     {
         var metrics = layout.Metrics;
         return new SizeF(metrics.WidthIncludingTrailingWhitespace, metrics.Height);
     }
 }
Exemple #58
0
 /// <summary>
 /// Required method for Designer support - do not modify
 /// the contents of this method with the code editor.
 /// </summary>
 private void InitializeComponent()
 {
     ColorManager.HSL hsl3 = new ColorManager.HSL();
     ColorManager.HSL hsl4 = new ColorManager.HSL();
     colorBox          = new ColorBox();
     lblOriginalColor  = new System.Windows.Forms.Label();
     colorSlider       = new global::Creek.UI.Unity3.Controls.VerticalColorSlider();
     rbBlue            = new System.Windows.Forms.RadioButton();
     rbGreen           = new System.Windows.Forms.RadioButton();
     rbRed             = new System.Windows.Forms.RadioButton();
     rbBrightness      = new System.Windows.Forms.RadioButton();
     rbSat             = new System.Windows.Forms.RadioButton();
     rbHue             = new System.Windows.Forms.RadioButton();
     txtBlue           = new System.Windows.Forms.TextBox();
     txtGreen          = new System.Windows.Forms.TextBox();
     txtRed            = new System.Windows.Forms.TextBox();
     txtBrightness     = new System.Windows.Forms.TextBox();
     txtSat            = new System.Windows.Forms.TextBox();
     txtHue            = new System.Windows.Forms.TextBox();
     tbAlpha           = new System.Windows.Forms.TrackBar();
     lblAlpha          = new System.Windows.Forms.Label();
     colorPanelPending = new ColorPanel();
     ((System.ComponentModel.ISupportInitialize)(this.tbAlpha)).BeginInit();
     SuspendLayout();
     //
     // colorBox
     //
     colorBox.DrawStyle = ColorBox.eDrawStyle.Hue;
     hsl3.H             = 0;
     hsl3.L             = 1;
     hsl3.S             = 1;
     colorBox.HSL       = hsl3;
     colorBox.Location  = new System.Drawing.Point(0, 0);
     colorBox.Name      = "colorBox";
     colorBox.RGB       = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(0)))), ((int)(((byte)(0)))));
     colorBox.Size      = new System.Drawing.Size(212, 181);
     colorBox.TabIndex  = 0;
     colorBox.Scroll   += new System.EventHandler(this.colorBox_Scroll);
     //
     // lblOriginalColor
     //
     lblOriginalColor.BackColor   = System.Drawing.SystemColors.Control;
     lblOriginalColor.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D;
     lblOriginalColor.Location    = new System.Drawing.Point(274, 82);
     lblOriginalColor.Name        = "lblOriginalColor";
     lblOriginalColor.Size        = new System.Drawing.Size(60, 34);
     lblOriginalColor.TabIndex    = 39;
     //
     // colorSlider
     //
     colorSlider.DrawStyle = global::Creek.UI.Unity3.Controls.VerticalColorSlider.eDrawStyle.Hue;
     hsl4.H               = 0;
     hsl4.L               = 1;
     hsl4.S               = 1;
     colorSlider.HSL      = hsl4;
     colorSlider.Location = new System.Drawing.Point(218, 0);
     colorSlider.Name     = "colorSlider";
     colorSlider.RGB      = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(0)))), ((int)(((byte)(0)))));
     colorSlider.Size     = new System.Drawing.Size(40, 181);
     colorSlider.TabIndex = 40;
     colorSlider.Scroll  += new System.EventHandler(this.colorSlider_Scroll);
     //
     // rbBlue
     //
     rbBlue.Location        = new System.Drawing.Point(108, 239);
     rbBlue.Name            = "rbBlue";
     rbBlue.Size            = new System.Drawing.Size(35, 24);
     rbBlue.TabIndex        = 53;
     rbBlue.Text            = "B:";
     rbBlue.CheckedChanged += new System.EventHandler(this.rbBlue_CheckedChanged);
     //
     // rbGreen
     //
     rbGreen.Location        = new System.Drawing.Point(108, 214);
     rbGreen.Name            = "rbGreen";
     rbGreen.Size            = new System.Drawing.Size(35, 24);
     rbGreen.TabIndex        = 52;
     rbGreen.Text            = "G:";
     rbGreen.CheckedChanged += new System.EventHandler(this.rbGreen_CheckedChanged);
     //
     // rbRed
     //
     rbRed.Location        = new System.Drawing.Point(108, 189);
     rbRed.Name            = "rbRed";
     rbRed.Size            = new System.Drawing.Size(35, 24);
     rbRed.TabIndex        = 51;
     rbRed.Text            = "R:";
     rbRed.CheckedChanged += new System.EventHandler(this.rbRed_CheckedChanged);
     //
     // rbBrightness
     //
     rbBrightness.Location        = new System.Drawing.Point(12, 239);
     rbBrightness.Name            = "rbBrightness";
     rbBrightness.Size            = new System.Drawing.Size(35, 24);
     rbBrightness.TabIndex        = 50;
     rbBrightness.Text            = "B:";
     rbBrightness.CheckedChanged += new System.EventHandler(this.rbBrightness_CheckedChanged);
     //
     // rbSat
     //
     rbSat.Location        = new System.Drawing.Point(12, 214);
     rbSat.Name            = "rbSat";
     rbSat.Size            = new System.Drawing.Size(35, 24);
     rbSat.TabIndex        = 49;
     rbSat.Text            = "S:";
     rbSat.CheckedChanged += new System.EventHandler(this.rbSat_CheckedChanged);
     //
     // rbHue
     //
     rbHue.Location        = new System.Drawing.Point(12, 189);
     rbHue.Name            = "rbHue";
     rbHue.Size            = new System.Drawing.Size(35, 24);
     rbHue.TabIndex        = 48;
     rbHue.Text            = "H:";
     rbHue.CheckedChanged += new System.EventHandler(this.rbHue_CheckedChanged);
     //
     // txtBlue
     //
     txtBlue.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
     txtBlue.Font        = new System.Drawing.Font("Microsoft Sans Serif", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     txtBlue.Location    = new System.Drawing.Point(145, 239);
     txtBlue.Name        = "txtBlue";
     txtBlue.Size        = new System.Drawing.Size(35, 21);
     txtBlue.TabIndex    = 46;
     txtBlue.Leave      += new System.EventHandler(this.txtBlue_Leave);
     //
     // txtGreen
     //
     txtGreen.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
     txtGreen.Font        = new System.Drawing.Font("Microsoft Sans Serif", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     txtGreen.Location    = new System.Drawing.Point(145, 214);
     txtGreen.Name        = "txtGreen";
     txtGreen.Size        = new System.Drawing.Size(35, 21);
     txtGreen.TabIndex    = 45;
     txtGreen.Leave      += new System.EventHandler(this.txtGreen_Leave);
     //
     // txtRed
     //
     txtRed.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
     txtRed.Font        = new System.Drawing.Font("Microsoft Sans Serif", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     txtRed.Location    = new System.Drawing.Point(145, 189);
     txtRed.Name        = "txtRed";
     txtRed.Size        = new System.Drawing.Size(35, 21);
     txtRed.TabIndex    = 44;
     txtRed.Leave      += new System.EventHandler(this.txtRed_Leave);
     //
     // txtBrightness
     //
     txtBrightness.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
     txtBrightness.Font        = new System.Drawing.Font("Microsoft Sans Serif", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     txtBrightness.Location    = new System.Drawing.Point(49, 239);
     txtBrightness.Name        = "txtBrightness";
     txtBrightness.Size        = new System.Drawing.Size(35, 21);
     txtBrightness.TabIndex    = 43;
     txtBrightness.Leave      += new System.EventHandler(this.txtBrightness_Leave);
     //
     // txtSat
     //
     txtSat.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
     txtSat.Font        = new System.Drawing.Font("Microsoft Sans Serif", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     txtSat.Location    = new System.Drawing.Point(49, 214);
     txtSat.Name        = "txtSat";
     txtSat.Size        = new System.Drawing.Size(35, 21);
     txtSat.TabIndex    = 42;
     txtSat.Leave      += new System.EventHandler(this.txtSat_Leave);
     //
     // txtHue
     //
     txtHue.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
     txtHue.Font        = new System.Drawing.Font("Microsoft Sans Serif", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     txtHue.Location    = new System.Drawing.Point(49, 189);
     txtHue.Name        = "txtHue";
     txtHue.Size        = new System.Drawing.Size(35, 21);
     txtHue.TabIndex    = 41;
     txtHue.Leave      += new System.EventHandler(this.txtHue_Leave);
     //
     // tbAlpha
     //
     tbAlpha.Location      = new System.Drawing.Point(198, 200);
     tbAlpha.Maximum       = 255;
     tbAlpha.Name          = "tbAlpha";
     tbAlpha.Size          = new System.Drawing.Size(136, 45);
     tbAlpha.TabIndex      = 54;
     tbAlpha.TickFrequency = 20;
     tbAlpha.Value         = 255;
     tbAlpha.ValueChanged += new System.EventHandler(this.tbAlpha_ValueChanged);
     //
     // lblAlpha
     //
     lblAlpha.AutoSize = true;
     lblAlpha.Location = new System.Drawing.Point(229, 232);
     lblAlpha.Name     = "lblAlpha";
     lblAlpha.Size     = new System.Drawing.Size(72, 13);
     lblAlpha.TabIndex = 55;
     lblAlpha.Text     = "Transparency";
     //
     // colorPanelPending
     //
     colorPanelPending.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D;
     colorPanelPending.Color       = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(192)))), ((int)(((byte)(192)))));
     colorPanelPending.Location    = new System.Drawing.Point(274, 48);
     colorPanelPending.Name        = "colorPanelPending";
     colorPanelPending.PaintColor  = true;
     colorPanelPending.Size        = new System.Drawing.Size(60, 34);
     colorPanelPending.TabIndex    = 56;
     colorPanelPending.Text        = "colorPanel1";
     //
     // CustomColorPicker
     //
     AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
     AutoScaleMode       = System.Windows.Forms.AutoScaleMode.Font;
     Controls.Add(this.colorPanelPending);
     Controls.Add(this.lblAlpha);
     Controls.Add(this.tbAlpha);
     Controls.Add(this.rbBlue);
     Controls.Add(this.rbGreen);
     Controls.Add(this.rbRed);
     Controls.Add(this.rbBrightness);
     Controls.Add(this.rbSat);
     Controls.Add(this.rbHue);
     Controls.Add(this.txtBlue);
     Controls.Add(this.txtGreen);
     Controls.Add(this.txtRed);
     Controls.Add(this.txtBrightness);
     Controls.Add(this.txtSat);
     Controls.Add(this.txtHue);
     Controls.Add(this.colorSlider);
     Controls.Add(this.lblOriginalColor);
     Controls.Add(this.colorBox);
     Name = "CustomColorPicker";
     Size = new System.Drawing.Size(350, 270);
     ((System.ComponentModel.ISupportInitialize)(this.tbAlpha)).EndInit();
     ResumeLayout(false);
     PerformLayout();
 }
 /// <summary>
 /// Required method for Designer support - do not modify
 /// the contents of this method with the code editor.
 /// </summary>
 private void InitializeComponent()
 {
     groupBox1            = new System.Windows.Forms.GroupBox();
     btnGeneratePackage   = new System.Windows.Forms.Button();
     chkSelectAll         = new System.Windows.Forms.CheckBox();
     txtFilter            = new System.Windows.Forms.TextBox();
     btnBrowse            = new System.Windows.Forms.Button();
     txtSourceFolder      = new System.Windows.Forms.TextBox();
     btnGenerate          = new System.Windows.Forms.Button();
     ListBoxFiles         = new System.Windows.Forms.CheckedListBox();
     folderBrowserDialog1 = new System.Windows.Forms.FolderBrowserDialog();
     groupBox1.SuspendLayout();
     SuspendLayout();
     //
     // groupBox1
     //
     groupBox1.Controls.Add(btnGeneratePackage);
     groupBox1.Controls.Add(chkSelectAll);
     groupBox1.Controls.Add(txtFilter);
     groupBox1.Controls.Add(btnBrowse);
     groupBox1.Controls.Add(txtSourceFolder);
     groupBox1.Controls.Add(btnGenerate);
     groupBox1.Controls.Add(ListBoxFiles);
     groupBox1.Location = new System.Drawing.Point(5, 5);
     groupBox1.Name     = "groupBox1";
     groupBox1.Size     = new System.Drawing.Size(553, 474);
     groupBox1.TabIndex = 2;
     groupBox1.TabStop  = false;
     groupBox1.Text     = "groupBox1";
     //
     // btnGeneratePackage
     //
     btnGeneratePackage.Font     = new System.Drawing.Font("Verdana", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     btnGeneratePackage.Location = new System.Drawing.Point(17, 417);
     btnGeneratePackage.Name     = "btnGeneratePackage";
     btnGeneratePackage.Size     = new System.Drawing.Size(141, 29);
     btnGeneratePackage.TabIndex = 8;
     btnGeneratePackage.Text     = "Generate Package";
     btnGeneratePackage.UseVisualStyleBackColor = true;
     btnGeneratePackage.Click += new System.EventHandler(btnGeneratePackage_Click);
     //
     // chkSelectAll
     //
     chkSelectAll.AutoSize = true;
     chkSelectAll.Location = new System.Drawing.Point(181, 60);
     chkSelectAll.Name     = "chkSelectAll";
     chkSelectAll.Size     = new System.Drawing.Size(70, 17);
     chkSelectAll.TabIndex = 7;
     chkSelectAll.Text     = "Select All";
     chkSelectAll.UseVisualStyleBackColor = true;
     chkSelectAll.CheckedChanged         += new System.EventHandler(chkSelectAll_CheckedChanged);
     //
     // txtFilter
     //
     txtFilter.Location = new System.Drawing.Point(17, 48);
     txtFilter.Name     = "txtFilter";
     txtFilter.Size     = new System.Drawing.Size(100, 20);
     txtFilter.TabIndex = 6;
     txtFilter.Text     = ".dll,.exe";
     //
     // btnBrowse
     //
     btnBrowse.Font     = new System.Drawing.Font("Verdana", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     btnBrowse.Location = new System.Drawing.Point(405, 19);
     btnBrowse.Name     = "btnBrowse";
     btnBrowse.Size     = new System.Drawing.Size(73, 23);
     btnBrowse.TabIndex = 5;
     btnBrowse.Text     = "...";
     btnBrowse.UseVisualStyleBackColor = true;
     btnBrowse.Click += new System.EventHandler(btnBrowse_Click);
     //
     // txtSourceFolder
     //
     txtSourceFolder.Font     = new System.Drawing.Font("Verdana", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     txtSourceFolder.Location = new System.Drawing.Point(17, 19);
     txtSourceFolder.Name     = "txtSourceFolder";
     txtSourceFolder.Size     = new System.Drawing.Size(389, 22);
     txtSourceFolder.TabIndex = 4;
     txtSourceFolder.KeyUp   += new System.Windows.Forms.KeyEventHandler(txtSourceFolder_KeyUp);
     //
     // btnGenerate
     //
     btnGenerate.Font     = new System.Drawing.Font("Verdana", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     btnGenerate.Location = new System.Drawing.Point(192, 417);
     btnGenerate.Name     = "btnGenerate";
     btnGenerate.Size     = new System.Drawing.Size(141, 29);
     btnGenerate.TabIndex = 3;
     btnGenerate.Text     = "Generate Jar File";
     btnGenerate.UseVisualStyleBackColor = true;
     btnGenerate.Click += new System.EventHandler(btnGenerate_Click);
     //
     // ListBoxFiles
     //
     ListBoxFiles.Font = new System.Drawing.Font("Verdana", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     ListBoxFiles.FormattingEnabled = true;
     ListBoxFiles.Location          = new System.Drawing.Point(17, 83);
     ListBoxFiles.Name     = "ListBoxFiles";
     ListBoxFiles.Size     = new System.Drawing.Size(461, 327);
     ListBoxFiles.TabIndex = 2;
     //
     // Form1
     //
     AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
     AutoScaleMode       = System.Windows.Forms.AutoScaleMode.Font;
     ClientSize          = new System.Drawing.Size(561, 480);
     Controls.Add(groupBox1);
     Name = "Form1";
     Text = "Form1";
     groupBox1.ResumeLayout(false);
     groupBox1.PerformLayout();
     ResumeLayout(false);
 }
Exemple #60
0
 public static System.Drawing.Size Truncate(System.Drawing.SizeF value)
 {
     throw null;
 }