105 lines
3.1 KiB
C#
105 lines
3.1 KiB
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Drawing;
|
|
using System.Windows.Forms;
|
|
using RyzStudio.Windows.Forms;
|
|
using RyzStudio.Windows.ThemedForms;
|
|
|
|
namespace RokettoLaunch.Forms
|
|
{
|
|
public class CopyToTileForm : Form
|
|
{
|
|
private Label label1;
|
|
private ThPickerBox pickerBox1;
|
|
private RyzStudio.Windows.ThemedForms.Composite.DialogFooter dialogFooter1;
|
|
|
|
|
|
private List<string> result = null;
|
|
|
|
|
|
public CopyToTileForm(List<string> model = null)
|
|
{
|
|
InitializeComponent();
|
|
|
|
UISetup.Dialog(this, true);
|
|
|
|
this.Text = "Copy To...";
|
|
|
|
result = model;
|
|
|
|
pickerBox1.Setup(model, 0);
|
|
}
|
|
|
|
protected override void OnShown(EventArgs e)
|
|
{
|
|
base.OnShown(e);
|
|
|
|
pickerBox1.Value = 0;
|
|
}
|
|
|
|
private void InitializeComponent()
|
|
{
|
|
label1 = new Label();
|
|
pickerBox1 = new ThPickerBox();
|
|
dialogFooter1 = new RyzStudio.Windows.ThemedForms.Composite.DialogFooter();
|
|
SuspendLayout();
|
|
//
|
|
// label1
|
|
//
|
|
label1.AutoSize = true;
|
|
label1.BackColor = Color.Transparent;
|
|
label1.ForeColor = SystemColors.ControlText;
|
|
label1.Location = new Point(10, 20);
|
|
label1.Margin = new Padding(0);
|
|
label1.Name = "label1";
|
|
label1.Padding = new Padding(0, 9, 0, 0);
|
|
label1.Size = new Size(40, 24);
|
|
label1.TabIndex = 153;
|
|
label1.Text = "Group";
|
|
label1.TextAlign = ContentAlignment.MiddleLeft;
|
|
//
|
|
// pickerBox1
|
|
//
|
|
pickerBox1.Anchor = AnchorStyles.Top | AnchorStyles.Left | AnchorStyles.Right;
|
|
pickerBox1.BackColor = Color.Transparent;
|
|
pickerBox1.EnableMovable = false;
|
|
pickerBox1.Location = new Point(95, 20);
|
|
pickerBox1.Name = "pickerBox1";
|
|
pickerBox1.SelectedIndex = -1;
|
|
pickerBox1.Size = new Size(280, 32);
|
|
pickerBox1.TabIndex = 174;
|
|
pickerBox1.TabStop = false;
|
|
//
|
|
// dialogFooter1
|
|
//
|
|
dialogFooter1.BackColor = Color.FromArgb(240, 240, 240);
|
|
dialogFooter1.Dock = DockStyle.Bottom;
|
|
dialogFooter1.EnableMovable = false;
|
|
dialogFooter1.IsBusy = false;
|
|
dialogFooter1.Location = new Point(0, 451);
|
|
dialogFooter1.Name = "dialogFooter1";
|
|
dialogFooter1.Size = new Size(384, 70);
|
|
dialogFooter1.TabIndex = 0;
|
|
dialogFooter1.TabStop = false;
|
|
//
|
|
// CopyToTileForm
|
|
//
|
|
BackColor = Color.White;
|
|
ClientSize = new Size(384, 521);
|
|
Controls.Add(dialogFooter1);
|
|
Controls.Add(pickerBox1);
|
|
Controls.Add(label1);
|
|
MinimumSize = new Size(400, 560);
|
|
Name = "CopyToTileForm";
|
|
Text = "Copy To...";
|
|
ResumeLayout(false);
|
|
PerformLayout();
|
|
}
|
|
|
|
public int Result
|
|
{
|
|
get => pickerBox1.Value;
|
|
}
|
|
|
|
}
|
|
} |