コード例 #1
0
        public System.Windows.Forms.Control CreateWidget()
        {
            PaintDotNet.SaveConfigWidget widget = this.FileType.CreateSaveConfigWidget();
            widget.Token = this.SaveToken;

            return(widget);
        }
コード例 #2
0
 /// <summary>
 /// Required method for Designer support - do not modify
 /// the contents of this method with the code editor.
 /// </summary>
 private void InitializeComponent()
 {
     this.saveConfigPanel = new System.Windows.Forms.Panel();
     this.defaultsButton = new System.Windows.Forms.Button();
     this.saveConfigWidget = new PaintDotNet.SaveConfigWidget();
     this.previewHeader = new PaintDotNet.HeaderLabel();
     this.documentView = new PaintDotNet.DocumentView();
     this.settingsHeader = new PaintDotNet.HeaderLabel();
     this.SuspendLayout();
     // 
     // baseOkButton
     // 
     this.baseOkButton.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
     this.baseOkButton.FlatStyle = System.Windows.Forms.FlatStyle.System;
     this.baseOkButton.Name = "baseOkButton";
     this.baseOkButton.TabIndex = 2;
     this.baseOkButton.Click += new System.EventHandler(this.BaseOkButton_Click);
     // 
     // baseCancelButton
     // 
     this.baseCancelButton.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
     this.baseCancelButton.FlatStyle = System.Windows.Forms.FlatStyle.System;
     this.baseCancelButton.Name = "baseCancelButton";
     this.baseCancelButton.TabIndex = 3;
     this.baseCancelButton.Click += new System.EventHandler(this.BaseCancelButton_Click);
     // 
     // saveConfigPanel
     // 
     this.saveConfigPanel.AutoScroll = true;
     this.saveConfigPanel.Name = "saveConfigPanel";
     this.saveConfigPanel.TabIndex = 0;
     this.saveConfigPanel.TabStop = false;
     // 
     // defaultsButton
     // 
     this.defaultsButton.Name = "defaultsButton";
     this.defaultsButton.AutoSize = true;
     this.defaultsButton.FlatStyle = FlatStyle.System;
     this.defaultsButton.TabIndex = 1;
     this.defaultsButton.Click += new System.EventHandler(this.DefaultsButton_Click);
     // 
     // saveConfigWidget
     // 
     this.saveConfigWidget.Name = "saveConfigWidget";
     this.saveConfigWidget.TabIndex = 9;
     this.saveConfigWidget.Token = null;
     // 
     // previewHeader
     // 
     this.previewHeader.Name = "previewHeader";
     this.previewHeader.RightMargin = 0;
     this.previewHeader.TabIndex = 11;
     this.previewHeader.TabStop = false;
     this.previewHeader.Text = "Header";
     // 
     // documentView
     // 
     this.documentView.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D;
     this.documentView.Document = null;
     this.documentView.Name = "documentView";
     this.documentView.PanelAutoScroll = true;
     this.documentView.RulersEnabled = false;
     this.documentView.TabIndex = 12;
     this.documentView.TabStop = false;
     this.documentView.DocumentMouseMove += new System.Windows.Forms.MouseEventHandler(this.DocumentView_DocumentMouseMove);
     this.documentView.DocumentMouseDown += new System.Windows.Forms.MouseEventHandler(this.DocumentView_DocumentMouseDown);
     this.documentView.DocumentMouseUp += new System.Windows.Forms.MouseEventHandler(this.DocumentView_DocumentMouseUp);
     this.documentView.Visible = false;
     // 
     // settingsHeader
     // 
     this.settingsHeader.Name = "settingsHeader";
     this.settingsHeader.TabIndex = 13;
     this.settingsHeader.TabStop = false;
     this.settingsHeader.Text = "Header";
     // 
     // SaveConfigDialog
     // 
     this.AutoScaleDimensions = new SizeF(96F, 96F);
     this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Dpi;
     this.Controls.Add(this.defaultsButton);
     this.Controls.Add(this.settingsHeader);
     this.Controls.Add(this.previewHeader);
     this.Controls.Add(this.documentView);
     this.Controls.Add(this.saveConfigPanel);
     this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.Sizable;
     this.MinimizeBox = false;
     this.MaximizeBox = true;
     this.Name = "SaveConfigDialog";
     this.SizeGripStyle = System.Windows.Forms.SizeGripStyle.Show;
     this.StartPosition = FormStartPosition.Manual;
     this.Controls.SetChildIndex(this.saveConfigPanel, 0);
     this.Controls.SetChildIndex(this.documentView, 0);
     this.Controls.SetChildIndex(this.baseOkButton, 0);
     this.Controls.SetChildIndex(this.baseCancelButton, 0);
     this.Controls.SetChildIndex(this.previewHeader, 0);
     this.Controls.SetChildIndex(this.settingsHeader, 0);
     this.Controls.SetChildIndex(this.defaultsButton, 0);
     this.ResumeLayout(false);
 }
コード例 #3
0
 /// <summary>
 /// Required method for Designer support - do not modify
 /// the contents of this method with the code editor.
 /// </summary>
 private void InitializeComponent()
 {
     this.saveConfigPanel  = new System.Windows.Forms.Panel();
     this.defaultsButton   = new System.Windows.Forms.Button();
     this.saveConfigWidget = new PaintDotNet.SaveConfigWidget();
     this.fileSizeText     = new System.Windows.Forms.Label();
     this.previewHeader    = new PaintDotNet.HeaderLabel();
     this.documentView     = new PaintDotNet.DocumentView();
     this.settingsHeader   = new PaintDotNet.HeaderLabel();
     this.SuspendLayout();
     //
     // baseOkButton
     //
     this.baseOkButton.Anchor    = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
     this.baseOkButton.FlatStyle = System.Windows.Forms.FlatStyle.System;
     this.baseOkButton.Location  = new System.Drawing.Point(431, 319);
     this.baseOkButton.Name      = "baseOkButton";
     this.baseOkButton.TabIndex  = 2;
     this.baseOkButton.Click    += new System.EventHandler(this.BaseOkButton_Click);
     //
     // baseCancelButton
     //
     this.baseCancelButton.Anchor    = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
     this.baseCancelButton.FlatStyle = System.Windows.Forms.FlatStyle.System;
     this.baseCancelButton.Location  = new System.Drawing.Point(511, 319);
     this.baseCancelButton.Name      = "baseCancelButton";
     this.baseCancelButton.TabIndex  = 3;
     this.baseCancelButton.Click    += new System.EventHandler(this.BaseCancelButton_Click);
     //
     // saveConfigPanel
     //
     this.saveConfigPanel.AutoScroll = true;
     this.saveConfigPanel.Location   = new System.Drawing.Point(9, 29);
     this.saveConfigPanel.Name       = "saveConfigPanel";
     this.saveConfigPanel.Size       = new System.Drawing.Size(180, 239);
     this.saveConfigPanel.TabIndex   = 0;
     this.saveConfigPanel.TabStop    = true;
     //
     // defaultsButton
     //
     this.defaultsButton.Location = new System.Drawing.Point(101, 279);
     this.defaultsButton.Size     = new System.Drawing.Size(81, 23);
     this.defaultsButton.Name     = "defaultsButton";
     this.defaultsButton.TabIndex = 1;
     this.defaultsButton.Click   += new System.EventHandler(this.defaultsButton_Click);
     //
     // saveConfigWidget
     //
     this.saveConfigWidget.Dock     = System.Windows.Forms.DockStyle.Fill;
     this.saveConfigWidget.Location = new System.Drawing.Point(0, 0);
     this.saveConfigWidget.Name     = "saveConfigWidget";
     this.saveConfigWidget.Size     = new System.Drawing.Size(176, 222);
     this.saveConfigWidget.TabIndex = 9;
     this.saveConfigWidget.Token    = null;
     //
     // fileSizeText
     //
     this.fileSizeText.Anchor   = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)));
     this.fileSizeText.Location = new System.Drawing.Point(200, 306);
     this.fileSizeText.Name     = "fileSizeText";
     this.fileSizeText.Size     = new System.Drawing.Size(160, 16);
     this.fileSizeText.TabIndex = 8;
     //
     // previewHeader
     //
     this.previewHeader.Location    = new System.Drawing.Point(198, 8);
     this.previewHeader.Name        = "previewHeader";
     this.previewHeader.RightMargin = 0;
     this.previewHeader.Size        = new System.Drawing.Size(144, 14);
     this.previewHeader.TabIndex    = 11;
     this.previewHeader.TabStop     = false;
     this.previewHeader.Text        = "Header";
     //
     // documentView
     //
     this.documentView.BorderStyle        = System.Windows.Forms.BorderStyle.Fixed3D;
     this.documentView.Document           = null;
     this.documentView.Location           = new System.Drawing.Point(200, 29);
     this.documentView.Name               = "documentView";
     this.documentView.PanelAutoScroll    = true;
     this.documentView.RulersEnabled      = false;
     this.documentView.Size               = new System.Drawing.Size(385, 272);
     this.documentView.TabIndex           = 12;
     this.documentView.DocumentMouseMove += new System.Windows.Forms.MouseEventHandler(this.DocumentView_DocumentMouseMove);
     this.documentView.DocumentMouseDown += new System.Windows.Forms.MouseEventHandler(this.DocumentView_DocumentMouseDown);
     this.documentView.DocumentMouseUp   += new System.Windows.Forms.MouseEventHandler(this.DocumentView_DocumentMouseUp);
     this.documentView.Visible            = false;
     //
     // settingsHeader
     //
     this.settingsHeader.Location = new System.Drawing.Point(6, 8);
     this.settingsHeader.Name     = "settingsHeader";
     this.settingsHeader.Size     = new System.Drawing.Size(192, 14);
     this.settingsHeader.TabIndex = 13;
     this.settingsHeader.TabStop  = false;
     this.settingsHeader.Text     = "Header";
     //
     // SaveConfigDialog
     //
     this.AutoScaleDimensions = new SizeF(96F, 96F);
     this.AutoScaleMode       = System.Windows.Forms.AutoScaleMode.Dpi;
     this.ClientSize          = new System.Drawing.Size(592, 351);
     this.Controls.Add(this.defaultsButton);
     this.Controls.Add(this.settingsHeader);
     this.Controls.Add(this.previewHeader);
     this.Controls.Add(this.fileSizeText);
     this.Controls.Add(this.documentView);
     this.Controls.Add(this.saveConfigPanel);
     this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.Sizable;
     this.MaximizeBox     = false;
     this.Name            = "SaveConfigDialog";
     this.SizeGripStyle   = System.Windows.Forms.SizeGripStyle.Show;
     this.StartPosition   = System.Windows.Forms.FormStartPosition.CenterParent;
     this.Controls.SetChildIndex(this.saveConfigPanel, 0);
     this.Controls.SetChildIndex(this.documentView, 0);
     this.Controls.SetChildIndex(this.fileSizeText, 0);
     this.Controls.SetChildIndex(this.baseOkButton, 0);
     this.Controls.SetChildIndex(this.baseCancelButton, 0);
     this.Controls.SetChildIndex(this.previewHeader, 0);
     this.Controls.SetChildIndex(this.settingsHeader, 0);
     this.Controls.SetChildIndex(this.defaultsButton, 0);
     this.ResumeLayout(false);
 }
コード例 #4
0
 /// <summary>
 /// Required method for Designer support - do not modify
 /// the contents of this method with the code editor.
 /// </summary>
 private void InitializeComponent()
 {
     this.saveConfigPanel = new System.Windows.Forms.Panel();
     this.defaultsButton = new System.Windows.Forms.Button();
     this.saveConfigWidget = new PaintDotNet.SaveConfigWidget();
     this.fileSizeText = new System.Windows.Forms.Label();
     this.previewHeader = new PaintDotNet.HeaderLabel();
     this.documentView = new PaintDotNet.DocumentView();
     this.settingsHeader = new PaintDotNet.HeaderLabel();
     this.SuspendLayout();
     //
     // baseOkButton
     //
     this.baseOkButton.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
     this.baseOkButton.FlatStyle = System.Windows.Forms.FlatStyle.System;
     this.baseOkButton.Location = new System.Drawing.Point(431, 319);
     this.baseOkButton.Name = "baseOkButton";
     this.baseOkButton.TabIndex = 2;
     this.baseOkButton.Click += new System.EventHandler(this.BaseOkButton_Click);
     //
     // baseCancelButton
     //
     this.baseCancelButton.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
     this.baseCancelButton.FlatStyle = System.Windows.Forms.FlatStyle.System;
     this.baseCancelButton.Location = new System.Drawing.Point(511, 319);
     this.baseCancelButton.Name = "baseCancelButton";
     this.baseCancelButton.TabIndex = 3;
     this.baseCancelButton.Click += new System.EventHandler(this.BaseCancelButton_Click);
     //
     // saveConfigPanel
     //
     this.saveConfigPanel.AutoScroll = true;
     this.saveConfigPanel.Location = new System.Drawing.Point(9, 29);
     this.saveConfigPanel.Name = "saveConfigPanel";
     this.saveConfigPanel.Size = new System.Drawing.Size(180, 239);
     this.saveConfigPanel.TabIndex = 0;
     this.saveConfigPanel.TabStop = true;
     //
     // defaultsButton
     //
     this.defaultsButton.Location = new System.Drawing.Point(101, 279);
     this.defaultsButton.Size = new System.Drawing.Size(81, 23);
     this.defaultsButton.Name = "defaultsButton";
     this.defaultsButton.TabIndex = 1;
     this.defaultsButton.Click += new System.EventHandler(this.defaultsButton_Click);
     //
     // saveConfigWidget
     //
     this.saveConfigWidget.Dock = System.Windows.Forms.DockStyle.Fill;
     this.saveConfigWidget.Location = new System.Drawing.Point(0, 0);
     this.saveConfigWidget.Name = "saveConfigWidget";
     this.saveConfigWidget.Size = new System.Drawing.Size(176, 222);
     this.saveConfigWidget.TabIndex = 9;
     this.saveConfigWidget.Token = null;
     //
     // fileSizeText
     //
     this.fileSizeText.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)));
     this.fileSizeText.Location = new System.Drawing.Point(200, 306);
     this.fileSizeText.Name = "fileSizeText";
     this.fileSizeText.Size = new System.Drawing.Size(160, 16);
     this.fileSizeText.TabIndex = 8;
     //
     // previewHeader
     //
     this.previewHeader.Location = new System.Drawing.Point(198, 8);
     this.previewHeader.Name = "previewHeader";
     this.previewHeader.RightMargin = 0;
     this.previewHeader.Size = new System.Drawing.Size(144, 14);
     this.previewHeader.TabIndex = 11;
     this.previewHeader.TabStop = false;
     this.previewHeader.Text = "Header";
     //
     // documentView
     //
     this.documentView.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D;
     this.documentView.Document = null;
     this.documentView.Location = new System.Drawing.Point(200, 29);
     this.documentView.Name = "documentView";
     this.documentView.PanelAutoScroll = true;
     this.documentView.RulersEnabled = false;
     this.documentView.Size = new System.Drawing.Size(385, 272);
     this.documentView.TabIndex = 12;
     this.documentView.DocumentMouseMove += new System.Windows.Forms.MouseEventHandler(this.DocumentView_DocumentMouseMove);
     this.documentView.DocumentMouseDown += new System.Windows.Forms.MouseEventHandler(this.DocumentView_DocumentMouseDown);
     this.documentView.DocumentMouseUp += new System.Windows.Forms.MouseEventHandler(this.DocumentView_DocumentMouseUp);
     this.documentView.Visible = false;
     //
     // settingsHeader
     //
     this.settingsHeader.Location = new System.Drawing.Point(6, 8);
     this.settingsHeader.Name = "settingsHeader";
     this.settingsHeader.Size = new System.Drawing.Size(192, 14);
     this.settingsHeader.TabIndex = 13;
     this.settingsHeader.TabStop = false;
     this.settingsHeader.Text = "Header";
     //
     // SaveConfigDialog
     //
     this.AutoScaleDimensions = new SizeF(96F, 96F);
     this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Dpi;
     this.ClientSize = new System.Drawing.Size(592, 351);
     this.Controls.Add(this.defaultsButton);
     this.Controls.Add(this.settingsHeader);
     this.Controls.Add(this.previewHeader);
     this.Controls.Add(this.fileSizeText);
     this.Controls.Add(this.documentView);
     this.Controls.Add(this.saveConfigPanel);
     this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.Sizable;
     this.MaximizeBox = false;
     this.Name = "SaveConfigDialog";
     this.SizeGripStyle = System.Windows.Forms.SizeGripStyle.Show;
     this.StartPosition = System.Windows.Forms.FormStartPosition.CenterParent;
     this.Controls.SetChildIndex(this.saveConfigPanel, 0);
     this.Controls.SetChildIndex(this.documentView, 0);
     this.Controls.SetChildIndex(this.fileSizeText, 0);
     this.Controls.SetChildIndex(this.baseOkButton, 0);
     this.Controls.SetChildIndex(this.baseCancelButton, 0);
     this.Controls.SetChildIndex(this.previewHeader, 0);
     this.Controls.SetChildIndex(this.settingsHeader, 0);
     this.Controls.SetChildIndex(this.defaultsButton, 0);
     this.ResumeLayout(false);
 }
コード例 #5
0
 /// <summary>
 /// Required method for Designer support - do not modify
 /// the contents of this method with the code editor.
 /// </summary>
 private void InitializeComponent()
 {
     this.saveConfigPanel  = new System.Windows.Forms.Panel();
     this.defaultsButton   = new System.Windows.Forms.Button();
     this.saveConfigWidget = new PaintDotNet.SaveConfigWidget();
     this.previewHeader    = new PaintDotNet.HeaderLabel();
     this.documentView     = new PaintDotNet.DocumentView();
     this.settingsHeader   = new PaintDotNet.HeaderLabel();
     this.SuspendLayout();
     //
     // baseOkButton
     //
     this.baseOkButton.Anchor    = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
     this.baseOkButton.FlatStyle = System.Windows.Forms.FlatStyle.System;
     this.baseOkButton.Name      = "baseOkButton";
     this.baseOkButton.TabIndex  = 2;
     this.baseOkButton.Click    += new System.EventHandler(this.BaseOkButton_Click);
     //
     // baseCancelButton
     //
     this.baseCancelButton.Anchor    = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
     this.baseCancelButton.FlatStyle = System.Windows.Forms.FlatStyle.System;
     this.baseCancelButton.Name      = "baseCancelButton";
     this.baseCancelButton.TabIndex  = 3;
     this.baseCancelButton.Click    += new System.EventHandler(this.BaseCancelButton_Click);
     //
     // saveConfigPanel
     //
     this.saveConfigPanel.AutoScroll = true;
     this.saveConfigPanel.Name       = "saveConfigPanel";
     this.saveConfigPanel.TabIndex   = 0;
     this.saveConfigPanel.TabStop    = false;
     //
     // defaultsButton
     //
     this.defaultsButton.Name      = "defaultsButton";
     this.defaultsButton.AutoSize  = true;
     this.defaultsButton.FlatStyle = FlatStyle.System;
     this.defaultsButton.TabIndex  = 1;
     this.defaultsButton.Click    += new System.EventHandler(this.DefaultsButton_Click);
     //
     // saveConfigWidget
     //
     this.saveConfigWidget.Name     = "saveConfigWidget";
     this.saveConfigWidget.TabIndex = 9;
     this.saveConfigWidget.Token    = null;
     //
     // previewHeader
     //
     this.previewHeader.Name        = "previewHeader";
     this.previewHeader.RightMargin = 0;
     this.previewHeader.TabIndex    = 11;
     this.previewHeader.TabStop     = false;
     this.previewHeader.Text        = "Header";
     //
     // documentView
     //
     this.documentView.BorderStyle        = System.Windows.Forms.BorderStyle.Fixed3D;
     this.documentView.Document           = null;
     this.documentView.Name               = "documentView";
     this.documentView.PanelAutoScroll    = true;
     this.documentView.RulersEnabled      = false;
     this.documentView.TabIndex           = 12;
     this.documentView.TabStop            = false;
     this.documentView.DocumentMouseMove += new System.Windows.Forms.MouseEventHandler(this.DocumentView_DocumentMouseMove);
     this.documentView.DocumentMouseDown += new System.Windows.Forms.MouseEventHandler(this.DocumentView_DocumentMouseDown);
     this.documentView.DocumentMouseUp   += new System.Windows.Forms.MouseEventHandler(this.DocumentView_DocumentMouseUp);
     this.documentView.Visible            = false;
     //
     // settingsHeader
     //
     this.settingsHeader.Name     = "settingsHeader";
     this.settingsHeader.TabIndex = 13;
     this.settingsHeader.TabStop  = false;
     this.settingsHeader.Text     = "Header";
     //
     // SaveConfigDialog
     //
     this.AutoScaleDimensions = new SizeF(96F, 96F);
     this.AutoScaleMode       = System.Windows.Forms.AutoScaleMode.Dpi;
     this.Controls.Add(this.defaultsButton);
     this.Controls.Add(this.settingsHeader);
     this.Controls.Add(this.previewHeader);
     this.Controls.Add(this.documentView);
     this.Controls.Add(this.saveConfigPanel);
     this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.Sizable;
     this.MinimizeBox     = false;
     this.MaximizeBox     = true;
     this.Name            = "SaveConfigDialog";
     this.SizeGripStyle   = System.Windows.Forms.SizeGripStyle.Show;
     this.StartPosition   = FormStartPosition.Manual;
     this.Controls.SetChildIndex(this.saveConfigPanel, 0);
     this.Controls.SetChildIndex(this.documentView, 0);
     this.Controls.SetChildIndex(this.baseOkButton, 0);
     this.Controls.SetChildIndex(this.baseCancelButton, 0);
     this.Controls.SetChildIndex(this.previewHeader, 0);
     this.Controls.SetChildIndex(this.settingsHeader, 0);
     this.Controls.SetChildIndex(this.defaultsButton, 0);
     this.ResumeLayout(false);
 }