Esempio n. 1
0
 private void InitializeComponent()
 {
     this.SuspendLayout();
     this.mainMenu = new PdnMainMenu();
     this.toolStripPanel = new ToolStripPanel();
     this.commonActionsStrip = new CommonActionsStrip();
     this.viewConfigStrip = new ViewConfigStrip();
     this.toolChooserStrip = new ToolChooserStrip();
     this.toolConfigStrip = new ToolConfigStrip();
     this.documentStrip = new OurDocumentStrip();
     this.documentListButton = new ArrowButton();
     this.imageListMenu = new ImageListMenu();
     this.toolStripPanel.BeginInit();
     this.toolStripPanel.SuspendLayout();
     //
     // mainMenu
     //
     this.mainMenu.Name = "mainMenu";
     //
     // toolStripContainer
     //
     this.toolStripPanel.AutoSize = true;
     this.toolStripPanel.Name = "toolStripPanel";
     this.toolStripPanel.TabIndex = 0;
     this.toolStripPanel.TabStop = false;
     this.toolStripPanel.Join(this.viewConfigStrip);
     this.toolStripPanel.Join(this.commonActionsStrip);
     this.toolStripPanel.Join(this.toolConfigStrip);
     this.toolStripPanel.Join(this.toolChooserStrip);
     //
     // commonActionsStrip
     //
     this.commonActionsStrip.Name = "commonActionsStrip";
     this.commonActionsStrip.AutoSize = false;
     this.commonActionsStrip.TabIndex = 0;
     this.commonActionsStrip.Dock = DockStyle.None;
     this.commonActionsStrip.GripStyle = toolStripsGripStyle;
     //
     // viewConfigStrip
     //
     this.viewConfigStrip.Name = "viewConfigStrip";
     this.viewConfigStrip.AutoSize = false;
     this.viewConfigStrip.ZoomBasis = PaintDotNet.ZoomBasis.FitToWindow;
     this.viewConfigStrip.TabStop = false;
     this.viewConfigStrip.DrawGrid = false;
     this.viewConfigStrip.TabIndex = 1;
     this.viewConfigStrip.Dock = DockStyle.None;
     this.viewConfigStrip.GripStyle = toolStripsGripStyle;
     //
     // toolChooserStrip
     //
     this.toolChooserStrip.Name = "toolChooserStrip";
     this.toolChooserStrip.AutoSize = false;
     this.toolChooserStrip.TabIndex = 2;
     this.toolChooserStrip.Dock = DockStyle.None;
     this.toolChooserStrip.GripStyle = toolStripsGripStyle;
     this.toolChooserStrip.ChooseDefaultsClicked += new EventHandler(ToolChooserStrip_ChooseDefaultsClicked);
     //
     // toolConfigStrip
     //
     this.toolConfigStrip.Name = "drawConfigStrip";
     this.toolConfigStrip.AutoSize = false;
     this.toolConfigStrip.ShapeDrawType = PaintDotNet.ShapeDrawType.Outline;
     this.toolConfigStrip.TabIndex = 3;
     this.toolConfigStrip.Dock = DockStyle.None;
     this.toolConfigStrip.GripStyle = toolStripsGripStyle;
     this.toolConfigStrip.Layout +=
         delegate(object sender, LayoutEventArgs e)
         {
             PerformLayout();
         };
     //
     // documentStrip
     //
     this.documentStrip.AutoSize = false;
     this.documentStrip.Name = "documentStrip";
     this.documentStrip.TabIndex = 5;
     this.documentStrip.ShowScrollButtons = true;
     this.documentStrip.DocumentListChanged += new EventHandler(DocumentStrip_DocumentListChanged);
     this.documentStrip.DocumentClicked += new EventHandler<Pair<DocumentWorkspace, DocumentClickAction>>(DocumentStrip_DocumentClicked);
     this.documentStrip.ManagedFocus = true;
     //
     // documentListButton
     //
     this.documentListButton.Name = "documentListButton";
     this.documentListButton.ArrowDirection = ArrowDirection.Down;
     this.documentListButton.ReverseArrowColors = true;
     this.documentListButton.Click += new EventHandler(DocumentListButton_Click);
     //
     // imageListMenu
     //
     this.imageListMenu.Name = "imageListMenu";
     this.imageListMenu.Closed += new EventHandler(ImageListMenu_Closed);
     this.imageListMenu.ItemClicked += new EventHandler<ImageListMenu.Item>(ImageListMenu_ItemClicked);
     //
     // PdnToolBar
     //
     this.Controls.Add(this.documentListButton);
     this.Controls.Add(this.documentStrip);
     this.Controls.Add(this.toolStripPanel);
     this.Controls.Add(this.mainMenu);
     this.Controls.Add(this.imageListMenu);
     this.toolStripPanel.ResumeLayout(false);
     this.toolStripPanel.EndInit();
     this.ResumeLayout(false);
 }
 private void InitializeComponent()
 {
     this.cancelButton = new Button();
     this.saveButton = new Button();
     this.introText = new Label();
     this.defaultToolText = new Label();
     this.resetButton = new Button();
     this.loadFromToolBarButton = new Button();
     this.toolChooserStrip = new ToolChooserStrip();
     this.bottomSeparator = new HeaderLabel();
     this.SuspendLayout();
     //
     // cancelButton
     //
     this.cancelButton.Name = "cancelButton";
     this.cancelButton.AutoSize = true;
     this.cancelButton.Click += new EventHandler(CancelButton_Click);
     this.cancelButton.TabIndex = 3;
     //
     // saveButton
     //
     this.saveButton.Name = "saveButton";
     this.saveButton.AutoSize = true;
     this.saveButton.Click += new EventHandler(SaveButton_Click);
     this.saveButton.TabIndex = 2;
     //
     // introText
     //
     this.introText.Name = "introText";
     this.introText.TabStop = false;
     //
     // defaultToolText
     //
     this.defaultToolText.Name = "defaultToolText";
     this.defaultToolText.AutoSize = true;
     this.defaultToolText.TabStop = false;
     //
     // resetButton
     //
     this.resetButton.Name = "resetButton";
     this.resetButton.AutoSize = true;
     this.resetButton.Click += new EventHandler(ResetButton_Click);
     this.resetButton.TabIndex = 0;
     //
     // loadFromToolBarButton
     //
     this.loadFromToolBarButton.Name = "loadFromToolBarButton";
     this.loadFromToolBarButton.AutoSize = true;
     this.loadFromToolBarButton.Click += new EventHandler(LoadFromToolBarButton_Click);
     this.loadFromToolBarButton.TabIndex = 1;
     //
     // toolChooserStrip
     //
     this.toolChooserStrip.Name = "toolChooserStrip";
     this.toolChooserStrip.Dock = DockStyle.None;
     this.toolChooserStrip.GripStyle = ToolStripGripStyle.Hidden;
     this.toolChooserStrip.ShowChooseDefaults = false;
     this.toolChooserStrip.UseToolNameForLabel = true;
     this.toolChooserStrip.ToolClicked += new ToolClickedEventHandler(ToolChooserStrip_ToolClicked);
     //
     // bottomSeparator
     //
     this.bottomSeparator.Name = "bottomSeparator";
     this.bottomSeparator.RightMargin = 0;
     //
     // ChooseToolDefaultsDialog
     //
     this.AcceptButton = this.saveButton;
     this.AutoScaleDimensions = new System.Drawing.SizeF(96F, 96F);
     this.AutoScaleMode = AutoScaleMode.Dpi;
     this.CancelButton = this.cancelButton;
     this.ClientSize = new System.Drawing.Size(448, 373);
     this.Controls.Add(this.resetButton);
     this.Controls.Add(this.loadFromToolBarButton);
     this.Controls.Add(this.introText);
     this.Controls.Add(this.defaultToolText);
     this.Controls.Add(this.saveButton);
     this.Controls.Add(this.cancelButton);
     this.Controls.Add(this.toolChooserStrip);
     this.Controls.Add(this.bottomSeparator);
     this.FormBorderStyle = FormBorderStyle.FixedDialog;
     this.Location = new System.Drawing.Point(0, 0);
     this.MinimizeBox = false;
     this.MaximizeBox = false;
     this.Name = "ChooseToolDefaultsDialog";
     this.ShowInTaskbar = false;
     this.StartPosition = FormStartPosition.CenterParent;
     this.ResumeLayout(false);
     this.PerformLayout();
 }
Esempio n. 3
0
 private void InitializeComponent()
 {
     this.cancelButton          = new Button();
     this.saveButton            = new Button();
     this.introText             = new Label();
     this.defaultToolText       = new Label();
     this.resetButton           = new Button();
     this.loadFromToolBarButton = new Button();
     this.toolChooserStrip      = new ToolChooserStrip();
     this.bottomSeparator       = new HeaderLabel();
     this.SuspendLayout();
     //
     // cancelButton
     //
     this.cancelButton.Name      = "cancelButton";
     this.cancelButton.AutoSize  = true;
     this.cancelButton.Click    += new EventHandler(CancelButton_Click);
     this.cancelButton.TabIndex  = 3;
     this.cancelButton.FlatStyle = FlatStyle.System;
     //
     // saveButton
     //
     this.saveButton.Name      = "saveButton";
     this.saveButton.AutoSize  = true;
     this.saveButton.Click    += new EventHandler(SaveButton_Click);
     this.saveButton.TabIndex  = 2;
     this.saveButton.FlatStyle = FlatStyle.System;
     //
     // introText
     //
     this.introText.Name    = "introText";
     this.introText.TabStop = false;
     //
     // defaultToolText
     //
     this.defaultToolText.Name     = "defaultToolText";
     this.defaultToolText.AutoSize = true;
     this.defaultToolText.TabStop  = false;
     //
     // resetButton
     //
     this.resetButton.Name      = "resetButton";
     this.resetButton.AutoSize  = true;
     this.resetButton.Click    += new EventHandler(ResetButton_Click);
     this.resetButton.TabIndex  = 0;
     this.resetButton.FlatStyle = FlatStyle.System;
     //
     // loadFromToolBarButton
     //
     this.loadFromToolBarButton.Name      = "loadFromToolBarButton";
     this.loadFromToolBarButton.AutoSize  = true;
     this.loadFromToolBarButton.Click    += new EventHandler(LoadFromToolBarButton_Click);
     this.loadFromToolBarButton.FlatStyle = FlatStyle.System;
     this.loadFromToolBarButton.TabIndex  = 1;
     //
     // toolChooserStrip
     //
     this.toolChooserStrip.Name                = "toolChooserStrip";
     this.toolChooserStrip.Dock                = DockStyle.None;
     this.toolChooserStrip.GripStyle           = ToolStripGripStyle.Hidden;
     this.toolChooserStrip.ShowChooseDefaults  = false;
     this.toolChooserStrip.UseToolNameForLabel = true;
     this.toolChooserStrip.ToolClicked        += new ToolClickedEventHandler(ToolChooserStrip_ToolClicked);
     //
     // bottomSeparator
     //
     this.bottomSeparator.Name        = "bottomSeparator";
     this.bottomSeparator.RightMargin = 0;
     //
     // ChooseToolDefaultsDialog
     //
     this.AcceptButton        = this.saveButton;
     this.AutoScaleDimensions = new System.Drawing.SizeF(96F, 96F);
     this.AutoScaleMode       = AutoScaleMode.Dpi;
     this.CancelButton        = this.cancelButton;
     this.ClientSize          = new System.Drawing.Size(450, 173);
     this.Controls.Add(this.resetButton);
     this.Controls.Add(this.loadFromToolBarButton);
     this.Controls.Add(this.introText);
     this.Controls.Add(this.defaultToolText);
     this.Controls.Add(this.saveButton);
     this.Controls.Add(this.cancelButton);
     this.Controls.Add(this.toolChooserStrip);
     this.Controls.Add(this.bottomSeparator);
     this.FormBorderStyle = FormBorderStyle.Sizable;
     this.Location        = new System.Drawing.Point(0, 0);
     this.MinimizeBox     = false;
     this.MaximizeBox     = false;
     this.Name            = "ChooseToolDefaultsDialog";
     this.ShowInTaskbar   = false;
     this.StartPosition   = FormStartPosition.CenterParent;
     this.ResumeLayout(false);
     this.PerformLayout();
 }
Esempio n. 4
0
 private void InitializeComponent()
 {
     this.SuspendLayout();
     this.mainMenu           = new PdnMainMenu();
     this.toolStripPanel     = new ToolStripPanel();
     this.commonActionsStrip = new CommonActionsStrip();
     this.viewConfigStrip    = new ViewConfigStrip();
     this.toolChooserStrip   = new ToolChooserStrip();
     this.toolConfigStrip    = new ToolConfigStrip();
     this.documentStrip      = new OurDocumentStrip();
     this.documentListButton = new ArrowButton();
     this.imageListMenu      = new ImageListMenu();
     this.toolStripPanel.BeginInit();
     this.toolStripPanel.SuspendLayout();
     //
     // mainMenu
     //
     this.mainMenu.Name = "mainMenu";
     //
     // toolStripContainer
     //
     this.toolStripPanel.AutoSize = true;
     this.toolStripPanel.Name     = "toolStripPanel";
     this.toolStripPanel.TabIndex = 0;
     this.toolStripPanel.TabStop  = false;
     this.toolStripPanel.Join(this.viewConfigStrip);
     this.toolStripPanel.Join(this.commonActionsStrip);
     this.toolStripPanel.Join(this.toolConfigStrip);
     this.toolStripPanel.Join(this.toolChooserStrip);
     //
     // commonActionsStrip
     //
     this.commonActionsStrip.Name      = "commonActionsStrip";
     this.commonActionsStrip.AutoSize  = false;
     this.commonActionsStrip.TabIndex  = 0;
     this.commonActionsStrip.Dock      = DockStyle.None;
     this.commonActionsStrip.GripStyle = toolStripsGripStyle;
     //
     // viewConfigStrip
     //
     this.viewConfigStrip.Name      = "viewConfigStrip";
     this.viewConfigStrip.AutoSize  = false;
     this.viewConfigStrip.ZoomBasis = PaintDotNet.ZoomBasis.FitToWindow;
     this.viewConfigStrip.TabStop   = false;
     this.viewConfigStrip.DrawGrid  = false;
     this.viewConfigStrip.TabIndex  = 1;
     this.viewConfigStrip.Dock      = DockStyle.None;
     this.viewConfigStrip.GripStyle = toolStripsGripStyle;
     //
     // toolChooserStrip
     //
     this.toolChooserStrip.Name                   = "toolChooserStrip";
     this.toolChooserStrip.AutoSize               = false;
     this.toolChooserStrip.TabIndex               = 2;
     this.toolChooserStrip.Dock                   = DockStyle.None;
     this.toolChooserStrip.GripStyle              = toolStripsGripStyle;
     this.toolChooserStrip.ChooseDefaultsClicked += new EventHandler(ToolChooserStrip_ChooseDefaultsClicked);
     //
     // toolConfigStrip
     //
     this.toolConfigStrip.Name          = "drawConfigStrip";
     this.toolConfigStrip.AutoSize      = false;
     this.toolConfigStrip.ShapeDrawType = PaintDotNet.ShapeDrawType.Outline;
     this.toolConfigStrip.TabIndex      = 3;
     this.toolConfigStrip.Dock          = DockStyle.None;
     this.toolConfigStrip.GripStyle     = toolStripsGripStyle;
     this.toolConfigStrip.Layout       +=
         delegate(object sender, LayoutEventArgs e)
     {
         PerformLayout();
     };
     this.toolConfigStrip.SelectionDrawModeInfoChanged +=
         delegate(object sender, EventArgs e)
     {
         BeginInvoke(new Procedure(PerformLayout));
     };
     //
     // documentStrip
     //
     this.documentStrip.AutoSize             = false;
     this.documentStrip.Name                 = "documentStrip";
     this.documentStrip.TabIndex             = 5;
     this.documentStrip.ShowScrollButtons    = true;
     this.documentStrip.DocumentListChanged += new EventHandler(DocumentStrip_DocumentListChanged);
     this.documentStrip.DocumentClicked     += DocumentStrip_DocumentClicked;
     this.documentStrip.ManagedFocus         = true;
     //
     // documentListButton
     //
     this.documentListButton.Name               = "documentListButton";
     this.documentListButton.ArrowDirection     = ArrowDirection.Down;
     this.documentListButton.ReverseArrowColors = true;
     this.documentListButton.Click             += new EventHandler(DocumentListButton_Click);
     //
     // imageListMenu
     //
     this.imageListMenu.Name         = "imageListMenu";
     this.imageListMenu.Closed      += new EventHandler(ImageListMenu_Closed);
     this.imageListMenu.ItemClicked += ImageListMenu_ItemClicked;
     //
     // PdnToolBar
     //
     this.Controls.Add(this.documentListButton);
     this.Controls.Add(this.documentStrip);
     this.Controls.Add(this.toolStripPanel);
     this.Controls.Add(this.mainMenu);
     this.Controls.Add(this.imageListMenu);
     this.toolStripPanel.ResumeLayout(false);
     this.toolStripPanel.EndInit();
     this.ResumeLayout(false);
 }