コード例 #1
0
 private void InitializeComponent()
 {
     this.btnOK         = new System.Windows.Forms.Button();
     this.btnCancel     = new System.Windows.Forms.Button();
     this.txtFilePath   = new System.Windows.Forms.TextBox();
     this.btnBrowse     = new System.Windows.Forms.Button();
     this.ucDestOptions = new ZScreenLib.DestSelector();
     this.SuspendLayout();
     //
     // btnOK
     //
     this.btnOK.Location = new System.Drawing.Point(280, 264);
     this.btnOK.Name     = "btnOK";
     this.btnOK.Size     = new System.Drawing.Size(73, 23);
     this.btnOK.TabIndex = 3;
     this.btnOK.Text     = "OK";
     this.btnOK.UseVisualStyleBackColor = true;
     this.btnOK.Click += new System.EventHandler(this.btnOK_Click);
     //
     // btnCancel
     //
     this.btnCancel.Location = new System.Drawing.Point(360, 264);
     this.btnCancel.Name     = "btnCancel";
     this.btnCancel.Size     = new System.Drawing.Size(72, 23);
     this.btnCancel.TabIndex = 4;
     this.btnCancel.Text     = "Cancel";
     this.btnCancel.UseVisualStyleBackColor = true;
     this.btnCancel.Click += new System.EventHandler(this.btnCancel_Click);
     //
     // txtFilePath
     //
     this.txtFilePath.Location = new System.Drawing.Point(16, 16);
     this.txtFilePath.Name     = "txtFilePath";
     this.txtFilePath.ReadOnly = true;
     this.txtFilePath.Size     = new System.Drawing.Size(408, 20);
     this.txtFilePath.TabIndex = 0;
     //
     // btnBrowse
     //
     this.btnBrowse.AutoSize                = true;
     this.btnBrowse.AutoSizeMode            = System.Windows.Forms.AutoSizeMode.GrowAndShrink;
     this.btnBrowse.Location                = new System.Drawing.Point(432, 16);
     this.btnBrowse.Name                    = "btnBrowse";
     this.btnBrowse.Size                    = new System.Drawing.Size(26, 23);
     this.btnBrowse.TabIndex                = 1;
     this.btnBrowse.Text                    = "...";
     this.btnBrowse.UseVisualStyleBackColor = true;
     this.btnBrowse.Click                  += new System.EventHandler(this.btnBrowse_Click);
     //
     // ucDestOptions
     //
     this.ucDestOptions.BackColor = System.Drawing.Color.White;
     this.ucDestOptions.Location  = new System.Drawing.Point(16, 48);
     this.ucDestOptions.Name      = "ucDestOptions";
     this.ucDestOptions.Size      = new System.Drawing.Size(440, 200);
     this.ucDestOptions.TabIndex  = 2;
     //
     // DestOptions
     //
     this.AcceptButton        = this.btnOK;
     this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
     this.AutoScaleMode       = System.Windows.Forms.AutoScaleMode.Font;
     this.BackColor           = System.Drawing.Color.White;
     this.ClientSize          = new System.Drawing.Size(472, 300);
     this.Controls.Add(this.btnBrowse);
     this.Controls.Add(this.txtFilePath);
     this.Controls.Add(this.ucDestOptions);
     this.Controls.Add(this.btnCancel);
     this.Controls.Add(this.btnOK);
     this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedSingle;
     this.MaximizeBox     = false;
     this.MinimizeBox     = false;
     this.Name            = "DestOptions";
     this.StartPosition   = System.Windows.Forms.FormStartPosition.CenterScreen;
     this.Text            = "Destination Options";
     this.TopMost         = true;
     this.Load           += new System.EventHandler(this.DestOptions_Load);
     this.Shown          += new System.EventHandler(this.InputBox_Shown);
     this.ResumeLayout(false);
     this.PerformLayout();
 }
コード例 #2
0
        public DestConfig GetDestConfig(DestSelector ucDestOptions)
        {
            DestConfig DestConfig = new UploadersLib.DestConfig();

            Adapter.SaveMenuConfigToList<OutputEnum>(ucDestOptions.tsddbOutputs, DestConfig.Outputs);
            Adapter.SaveMenuConfigToList<ClipboardContentEnum>(ucDestOptions.tsddbClipboardContent, DestConfig.TaskClipboardContent);
            Adapter.SaveMenuConfigToList<LinkFormatEnum>(ucDestOptions.tsddbLinkFormat, DestConfig.LinkFormat);
            Adapter.SaveMenuConfigToList<ImageDestination>(ucDestOptions.tsddbDestImage, DestConfig.ImageUploaders);
            Adapter.SaveMenuConfigToList<TextDestination>(ucDestOptions.tsddbDestText, DestConfig.TextUploaders);
            Adapter.SaveMenuConfigToList<FileDestination>(ucDestOptions.tsddbDestFile, DestConfig.FileUploaders);
            Adapter.SaveMenuConfigToList<UrlShortenerType>(ucDestOptions.tsddbDestLink, DestConfig.LinkUploaders);

            return DestConfig;
        }
コード例 #3
0
 public DestSelectorHelper(DestSelector ds)
 {
     ucDestOptions = ds;
 }
コード例 #4
0
 private void InitializeComponent()
 {
     this.btnOK = new System.Windows.Forms.Button();
     this.btnCancel = new System.Windows.Forms.Button();
     this.txtFilePath = new System.Windows.Forms.TextBox();
     this.btnBrowse = new System.Windows.Forms.Button();
     this.ucDestOptions = new ZScreenLib.DestSelector();
     this.SuspendLayout();
     //
     // btnOK
     //
     this.btnOK.Location = new System.Drawing.Point(280, 264);
     this.btnOK.Name = "btnOK";
     this.btnOK.Size = new System.Drawing.Size(73, 23);
     this.btnOK.TabIndex = 3;
     this.btnOK.Text = "OK";
     this.btnOK.UseVisualStyleBackColor = true;
     this.btnOK.Click += new System.EventHandler(this.btnOK_Click);
     //
     // btnCancel
     //
     this.btnCancel.Location = new System.Drawing.Point(360, 264);
     this.btnCancel.Name = "btnCancel";
     this.btnCancel.Size = new System.Drawing.Size(72, 23);
     this.btnCancel.TabIndex = 4;
     this.btnCancel.Text = "Cancel";
     this.btnCancel.UseVisualStyleBackColor = true;
     this.btnCancel.Click += new System.EventHandler(this.btnCancel_Click);
     //
     // txtFilePath
     //
     this.txtFilePath.Location = new System.Drawing.Point(16, 16);
     this.txtFilePath.Name = "txtFilePath";
     this.txtFilePath.ReadOnly = true;
     this.txtFilePath.Size = new System.Drawing.Size(408, 20);
     this.txtFilePath.TabIndex = 0;
     //
     // btnBrowse
     //
     this.btnBrowse.AutoSize = true;
     this.btnBrowse.AutoSizeMode = System.Windows.Forms.AutoSizeMode.GrowAndShrink;
     this.btnBrowse.Location = new System.Drawing.Point(432, 16);
     this.btnBrowse.Name = "btnBrowse";
     this.btnBrowse.Size = new System.Drawing.Size(26, 23);
     this.btnBrowse.TabIndex = 1;
     this.btnBrowse.Text = "...";
     this.btnBrowse.UseVisualStyleBackColor = true;
     this.btnBrowse.Click += new System.EventHandler(this.btnBrowse_Click);
     //
     // ucDestOptions
     //
     this.ucDestOptions.BackColor = System.Drawing.Color.White;
     this.ucDestOptions.Location = new System.Drawing.Point(16, 48);
     this.ucDestOptions.Name = "ucDestOptions";
     this.ucDestOptions.Size = new System.Drawing.Size(440, 200);
     this.ucDestOptions.TabIndex = 2;
     //
     // DestOptions
     //
     this.AcceptButton = this.btnOK;
     this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
     this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
     this.BackColor = System.Drawing.Color.White;
     this.ClientSize = new System.Drawing.Size(472, 300);
     this.Controls.Add(this.btnBrowse);
     this.Controls.Add(this.txtFilePath);
     this.Controls.Add(this.ucDestOptions);
     this.Controls.Add(this.btnCancel);
     this.Controls.Add(this.btnOK);
     this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedSingle;
     this.MaximizeBox = false;
     this.MinimizeBox = false;
     this.Name = "DestOptions";
     this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen;
     this.Text = "Destination Options";
     this.TopMost = true;
     this.Load += new System.EventHandler(this.DestOptions_Load);
     this.Shown += new System.EventHandler(this.InputBox_Shown);
     this.ResumeLayout(false);
     this.PerformLayout();
 }
コード例 #5
0
 public DestSelectorHelper(DestSelector ds)
 {
     ucDestOptions = ds;
 }