User form

This commit is contained in:
Aurélie Delhaie
2022-05-25 13:10:25 +02:00
parent 56e94d8dfe
commit 4cf1d4b3b0
20 changed files with 2582 additions and 81 deletions

View File

@@ -38,20 +38,13 @@ namespace OpenSaveCloudClient.Core
return gameSave;
}
/*public GameSave? GetByUuid(string uuid)
public void DetectChanges()
{
return saves.FirstOrDefault(g => g.Uuid == uuid);
foreach (GameSave gameSave in saves)
{
gameSave.DetectChanges();
}
public void Set(GameSave gameSave)
{
GameSave? g = saves.FirstOrDefault(g => g.Uuid == gameSave.Uuid);
if (g != null)
{
saves.Remove(g);
}
saves.Add(gameSave);
}*/
private void Load()
{

View File

@@ -46,6 +46,7 @@
this.TasksButton = new System.Windows.Forms.ToolStripDropDownButton();
this.StatusLabel = new System.Windows.Forms.ToolStripStatusLabel();
this.MainProgressBar = new System.Windows.Forms.ToolStripProgressBar();
this.UserSettingsButton = new System.Windows.Forms.ToolStripButton();
this.toolStrip1.SuspendLayout();
this.statusStrip1.SuspendLayout();
this.SuspendLayout();
@@ -55,12 +56,12 @@
this.listView1.Dock = System.Windows.Forms.DockStyle.Fill;
this.listView1.HeaderStyle = System.Windows.Forms.ColumnHeaderStyle.Nonclickable;
this.listView1.LargeImageList = this.coverList;
this.listView1.Location = new System.Drawing.Point(0, 0);
this.listView1.Location = new System.Drawing.Point(0, 33);
this.listView1.MultiSelect = false;
this.listView1.Name = "listView1";
this.listView1.ShowGroups = false;
this.listView1.ShowItemToolTips = true;
this.listView1.Size = new System.Drawing.Size(1506, 766);
this.listView1.Size = new System.Drawing.Size(1506, 702);
this.listView1.TabIndex = 2;
this.listView1.UseCompatibleStateImageBehavior = false;
this.listView1.DoubleClick += new System.EventHandler(this.listView1_DoubleClick);
@@ -83,6 +84,7 @@
this.DownloadButton,
this.toolStripSeparator1,
this.SettingButton,
this.UserSettingsButton,
this.toolStripSeparator2,
this.LogoutButton,
this.LogButton,
@@ -212,19 +214,32 @@
//
// MainProgressBar
//
this.MainProgressBar.MarqueeAnimationSpeed = 20;
this.MainProgressBar.Name = "MainProgressBar";
this.MainProgressBar.Size = new System.Drawing.Size(150, 23);
this.MainProgressBar.Style = System.Windows.Forms.ProgressBarStyle.Marquee;
this.MainProgressBar.Visible = false;
//
// UserSettingsButton
//
this.UserSettingsButton.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Image;
this.UserSettingsButton.Enabled = false;
this.UserSettingsButton.Image = ((System.Drawing.Image)(resources.GetObject("UserSettingsButton.Image")));
this.UserSettingsButton.ImageTransparentColor = System.Drawing.Color.Magenta;
this.UserSettingsButton.Name = "UserSettingsButton";
this.UserSettingsButton.Size = new System.Drawing.Size(34, 28);
this.UserSettingsButton.Text = "User settings";
this.UserSettingsButton.Click += new System.EventHandler(this.UserSettingsButton_Click);
//
// GameLibrary
//
this.AutoScaleDimensions = new System.Drawing.SizeF(144F, 144F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Dpi;
this.BackColor = System.Drawing.SystemColors.Window;
this.ClientSize = new System.Drawing.Size(1506, 766);
this.Controls.Add(this.listView1);
this.Controls.Add(this.statusStrip1);
this.Controls.Add(this.toolStrip1);
this.Controls.Add(this.listView1);
this.DoubleBuffered = true;
this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));
this.MinimumSize = new System.Drawing.Size(1519, 797);
@@ -258,5 +273,6 @@
private ToolStripDropDownButton TasksButton;
private ToolStripStatusLabel StatusLabel;
private ToolStripProgressBar MainProgressBar;
private ToolStripButton UserSettingsButton;
}
}

View File

@@ -48,6 +48,7 @@ namespace OpenSaveCloudClient
}
else
{
saveManager.DetectChanges();
this.Invoke((MethodInvoker)delegate {
AboutButton.Enabled = true;
if (_configuration.GetBoolean("synchronization.at_login", true))
@@ -316,6 +317,7 @@ namespace OpenSaveCloudClient
SyncButton.Enabled = l;
DownloadButton.Enabled = l;
LogoutButton.Enabled = l;
UserSettingsButton.Enabled = l;
}
private void listView1_DoubleClick(object sender, EventArgs e)
@@ -373,5 +375,11 @@ namespace OpenSaveCloudClient
}
}
}
private void UserSettingsButton_Click(object sender, EventArgs e)
{
UserForm userForm = new();
userForm.ShowDialog();
}
}
}

View File

@@ -65,7 +65,7 @@
AAEAAAD/////AQAAAAAAAAAMAgAAAEZTeXN0ZW0uV2luZG93cy5Gb3JtcywgQ3VsdHVyZT1uZXV0cmFs
LCBQdWJsaWNLZXlUb2tlbj1iNzdhNWM1NjE5MzRlMDg5BQEAAAAmU3lzdGVtLldpbmRvd3MuRm9ybXMu
SW1hZ2VMaXN0U3RyZWFtZXIBAAAABERhdGEHAgIAAAAJAwAAAA8DAAAA7OMCAAJNU0Z0AUkBTAMBAQAB
QAEBAUABAQEIAQEBdgEBBP8BGQEACP8BQgFNATYHAAE2AwABKAMAASABBAIAAXYBAQIAAQEBAAEYBQAB
YAEBAWABAQEIAQEBdgEBBP8BGQEACP8BQgFNATYHAAE2AwABKAMAASABBAIAAXYBAQIAAQEBAAEYBQAB
QAEUARIRAANSA1EBUgFRBVICUQNSAlEDUgJRAVIEUQFSBVEBUg1RAVAIUQFQAlEBUAFRAVADUQFQAVEE
UAFRAVABUQJQAVECUAFRAVABUQ5QAU8BUAFPAlADTwZQAU8BUAFPAVADTwNQAU8CUAZPAVABTwFQBU8B
UAZPAU4ETwFOBE8BTgVPAU4DTwJOBE8CTgJPAU4BTwFOAU8HTgFPCE4BTwdOAU0GTgJNBE4BTQNOAk0B
@@ -3273,6 +3273,18 @@
V0gqT6BJG9iO8AwV0MXtwZ6CHp3NWYfdYXTUwsVFfkNUGw9jFkP5r//RZjzABfZRewP24Qw/0JV94wS9
SJJz+LdudJJGKXtdr6Afq95YjI6v6xaUAYSO11H5utaV6yRr3liM0te1Fjj0h8ZrUIy66BTqHhXW5zGS
dZFlENoH+myYLPsDY1n9bDHVXF4AAAAASUVORK5CYII=
</value>
</data>
<data name="UserSettingsButton.Image" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value>
iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAYAAADgdz34AAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8
YQUAAAAJcEhZcwAAFiUAABYlAUlSJPAAAAFsSURBVEhL7dW/K0VhHMfxg+RXyWCQDEabP8BiUFjsWFD8
AYQySGSwSBkMLJTJJAx+JIuUSKEMlDKRH5sfkXh/bvfcvvf03DzO2eRTr27P9z7n27nnec5zgz+bSszg
Bu+4xBhKkTg1uMaXwzHKkSibcDUPzSF2auFqaj2jBLHSAlfTqDrESgNcDaOqEStFeICraegUidIHV2P5
RDOi6cAoulIjj/TjBbb5E9rhyi005zU18kwVujEMNa5AmHzMoxcrsDeyjh4sohCxosa2aS4DyIr2dyd0
dxvYNlYxDc1Zhm2kcRt0na2vIZMm6OyxE1zGUYCD9PgKemRKHk6g+hkyj6gVH7CNctFRoUa76fE5bPah
+lFqRLR4P+19SyfqbKQ2hXpoq9r6EoJBU/DRCN9rJhDsmIKPLRSnPydxCPu93nSt0x7KEFzATvAxAkXv
ihb4Hqq/QRsgK/oZvgtsPeIOWvAhLED/ev/5TYLgG+Ol5Rvi4Ts7AAAAAElFTkSuQmCC
</value>
</data>
<data name="LogoutButton.Image" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">

View File

@@ -50,38 +50,34 @@
this.pictureBox1.Dock = System.Windows.Forms.DockStyle.Top;
this.pictureBox1.Image = ((System.Drawing.Image)(resources.GetObject("pictureBox1.Image")));
this.pictureBox1.Location = new System.Drawing.Point(0, 0);
this.pictureBox1.Margin = new System.Windows.Forms.Padding(2, 2, 2, 2);
this.pictureBox1.Name = "pictureBox1";
this.pictureBox1.Size = new System.Drawing.Size(747, 81);
this.pictureBox1.Size = new System.Drawing.Size(1112, 122);
this.pictureBox1.SizeMode = System.Windows.Forms.PictureBoxSizeMode.Zoom;
this.pictureBox1.TabIndex = 0;
this.pictureBox1.TabStop = false;
//
// ServerTextBox
//
this.ServerTextBox.Location = new System.Drawing.Point(198, 128);
this.ServerTextBox.Margin = new System.Windows.Forms.Padding(2, 2, 2, 2);
this.ServerTextBox.Location = new System.Drawing.Point(297, 192);
this.ServerTextBox.Name = "ServerTextBox";
this.ServerTextBox.PlaceholderText = "myserver.com";
this.ServerTextBox.Size = new System.Drawing.Size(276, 23);
this.ServerTextBox.Size = new System.Drawing.Size(412, 31);
this.ServerTextBox.TabIndex = 1;
//
// UsernameTextBox
//
this.UsernameTextBox.Location = new System.Drawing.Point(198, 181);
this.UsernameTextBox.Margin = new System.Windows.Forms.Padding(2, 2, 2, 2);
this.UsernameTextBox.Location = new System.Drawing.Point(297, 272);
this.UsernameTextBox.Name = "UsernameTextBox";
this.UsernameTextBox.Size = new System.Drawing.Size(361, 23);
this.UsernameTextBox.Size = new System.Drawing.Size(540, 31);
this.UsernameTextBox.TabIndex = 3;
//
// label1
//
this.label1.AutoSize = true;
this.label1.ForeColor = System.Drawing.SystemColors.ControlText;
this.label1.Location = new System.Drawing.Point(198, 111);
this.label1.Margin = new System.Windows.Forms.Padding(2, 0, 2, 0);
this.label1.Location = new System.Drawing.Point(297, 166);
this.label1.Name = "label1";
this.label1.Size = new System.Drawing.Size(39, 15);
this.label1.Size = new System.Drawing.Size(61, 25);
this.label1.TabIndex = 0;
this.label1.Text = "Server";
//
@@ -89,10 +85,9 @@
//
this.label2.AutoSize = true;
this.label2.ForeColor = System.Drawing.SystemColors.ControlText;
this.label2.Location = new System.Drawing.Point(198, 164);
this.label2.Margin = new System.Windows.Forms.Padding(2, 0, 2, 0);
this.label2.Location = new System.Drawing.Point(297, 246);
this.label2.Name = "label2";
this.label2.Size = new System.Drawing.Size(60, 15);
this.label2.Size = new System.Drawing.Size(91, 25);
this.label2.TabIndex = 0;
this.label2.Text = "Username";
//
@@ -100,19 +95,17 @@
//
this.label3.AutoSize = true;
this.label3.ForeColor = System.Drawing.SystemColors.ControlText;
this.label3.Location = new System.Drawing.Point(198, 207);
this.label3.Margin = new System.Windows.Forms.Padding(2, 0, 2, 0);
this.label3.Location = new System.Drawing.Point(297, 310);
this.label3.Name = "label3";
this.label3.Size = new System.Drawing.Size(57, 15);
this.label3.Size = new System.Drawing.Size(87, 25);
this.label3.TabIndex = 0;
this.label3.Text = "Password";
//
// PasswordTextBox
//
this.PasswordTextBox.Location = new System.Drawing.Point(198, 224);
this.PasswordTextBox.Margin = new System.Windows.Forms.Padding(2, 2, 2, 2);
this.PasswordTextBox.Location = new System.Drawing.Point(297, 336);
this.PasswordTextBox.Name = "PasswordTextBox";
this.PasswordTextBox.Size = new System.Drawing.Size(361, 23);
this.PasswordTextBox.Size = new System.Drawing.Size(540, 31);
this.PasswordTextBox.TabIndex = 4;
this.PasswordTextBox.UseSystemPasswordChar = true;
//
@@ -120,18 +113,16 @@
//
this.label4.AutoSize = true;
this.label4.ForeColor = System.Drawing.SystemColors.ControlText;
this.label4.Location = new System.Drawing.Point(477, 111);
this.label4.Margin = new System.Windows.Forms.Padding(2, 0, 2, 0);
this.label4.Location = new System.Drawing.Point(716, 166);
this.label4.Name = "label4";
this.label4.Size = new System.Drawing.Size(29, 15);
this.label4.Size = new System.Drawing.Size(44, 25);
this.label4.TabIndex = 0;
this.label4.Text = "Port";
//
// PortNumericBox
//
this.PortNumericBox.InterceptArrowKeys = false;
this.PortNumericBox.Location = new System.Drawing.Point(477, 128);
this.PortNumericBox.Margin = new System.Windows.Forms.Padding(2, 2, 2, 2);
this.PortNumericBox.Location = new System.Drawing.Point(716, 192);
this.PortNumericBox.Maximum = new decimal(new int[] {
65535,
0,
@@ -143,7 +134,7 @@
0,
0});
this.PortNumericBox.Name = "PortNumericBox";
this.PortNumericBox.Size = new System.Drawing.Size(81, 23);
this.PortNumericBox.Size = new System.Drawing.Size(122, 31);
this.PortNumericBox.TabIndex = 2;
this.PortNumericBox.Value = new decimal(new int[] {
443,
@@ -153,10 +144,9 @@
//
// LoginButton
//
this.LoginButton.Location = new System.Drawing.Point(484, 263);
this.LoginButton.Margin = new System.Windows.Forms.Padding(2, 2, 2, 2);
this.LoginButton.Location = new System.Drawing.Point(726, 394);
this.LoginButton.Name = "LoginButton";
this.LoginButton.Size = new System.Drawing.Size(75, 23);
this.LoginButton.Size = new System.Drawing.Size(112, 34);
this.LoginButton.TabIndex = 5;
this.LoginButton.Text = "Login";
this.LoginButton.UseVisualStyleBackColor = true;
@@ -166,10 +156,9 @@
//
this.AboutButton.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)));
this.AboutButton.Image = ((System.Drawing.Image)(resources.GetObject("AboutButton.Image")));
this.AboutButton.Location = new System.Drawing.Point(8, 283);
this.AboutButton.Margin = new System.Windows.Forms.Padding(2, 2, 2, 2);
this.AboutButton.Location = new System.Drawing.Point(12, 407);
this.AboutButton.Name = "AboutButton";
this.AboutButton.Size = new System.Drawing.Size(18, 15);
this.AboutButton.Size = new System.Drawing.Size(27, 28);
this.AboutButton.SizeMode = System.Windows.Forms.PictureBoxSizeMode.Zoom;
this.AboutButton.TabIndex = 6;
this.AboutButton.TabStop = false;
@@ -177,10 +166,10 @@
//
// LoginForm
//
this.AutoScaleDimensions = new System.Drawing.SizeF(96F, 96F);
this.AutoScaleDimensions = new System.Drawing.SizeF(144F, 144F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Dpi;
this.BackColor = System.Drawing.SystemColors.Window;
this.ClientSize = new System.Drawing.Size(747, 315);
this.ClientSize = new System.Drawing.Size(1112, 447);
this.Controls.Add(this.AboutButton);
this.Controls.Add(this.LoginButton);
this.Controls.Add(this.PortNumericBox);
@@ -194,11 +183,10 @@
this.Controls.Add(this.pictureBox1);
this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedSingle;
this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));
this.Margin = new System.Windows.Forms.Padding(2, 2, 2, 2);
this.MaximizeBox = false;
this.MaximumSize = new System.Drawing.Size(763, 354);
this.MaximumSize = new System.Drawing.Size(1134, 503);
this.MinimizeBox = false;
this.MinimumSize = new System.Drawing.Size(763, 354);
this.MinimumSize = new System.Drawing.Size(1134, 503);
this.Name = "LoginForm";
this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen;
this.Text = "Login to a server";

View File

@@ -25,18 +25,22 @@ namespace OpenSaveCloudClient
private void LoginButton_Click(object sender, EventArgs e)
{
LockControls(true);
try
{
if (string.IsNullOrWhiteSpace(ServerTextBox.Text))
{
MessageBox.Show("The server hostname or IP is empty, cannot login to an unknown server", "Error", MessageBoxButtons.OK, MessageBoxIcon.Error);
LockControls(false);
return;
}
if (string.IsNullOrWhiteSpace(UsernameTextBox.Text) || string.IsNullOrWhiteSpace(PasswordTextBox.Text))
{
MessageBox.Show("Password or username cannot be empty", "Error", MessageBoxButtons.OK, MessageBoxIcon.Error);
LockControls(false);
return;
}
new Thread(() =>
{
try
{
decimal port = PortNumericBox.Value;
serverConnector.BindNewServer(ServerTextBox.Text, (int)port);
if (serverConnector.Bind)
@@ -44,26 +48,34 @@ namespace OpenSaveCloudClient
serverConnector.Login(UsernameTextBox.Text, PasswordTextBox.Text);
if (serverConnector.Connected)
{
this.Invoke((MethodInvoker)delegate {
Close();
});
}
else
{
this.Invoke((MethodInvoker)delegate {
MessageBox.Show("Wrong username or password", "Error", MessageBoxButtons.OK, MessageBoxIcon.Error);
LockControls(false);
});
}
}
else
{
this.Invoke((MethodInvoker)delegate {
MessageBox.Show("Failed to find the server, check the hostname or the port", "Error", MessageBoxButtons.OK, MessageBoxIcon.Error);
LockControls(false);
});
}
}
catch (Exception ex)
{
this.Invoke((MethodInvoker)delegate {
MessageBox.Show(ex.Message, "Error", MessageBoxButtons.OK, MessageBoxIcon.Error);
}
finally
{
LockControls(false);
});
}
}).Start();
}
private void LockControls(bool value)

172
OpenSaveCloudClient/UserForm.Designer.cs generated Normal file
View File

@@ -0,0 +1,172 @@
namespace OpenSaveCloudClient
{
partial class UserForm
{
/// <summary>
/// Required designer variable.
/// </summary>
private System.ComponentModel.IContainer components = null;
/// <summary>
/// Clean up any resources being used.
/// </summary>
/// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param>
protected override void Dispose(bool disposing)
{
if (disposing && (components != null))
{
components.Dispose();
}
base.Dispose(disposing);
}
#region Windows Form Designer generated code
/// <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(UserForm));
this.label1 = new System.Windows.Forms.Label();
this.textBox1 = new System.Windows.Forms.TextBox();
this.groupBox1 = new System.Windows.Forms.GroupBox();
this.textBox2 = new System.Windows.Forms.TextBox();
this.textBox3 = new System.Windows.Forms.TextBox();
this.label2 = new System.Windows.Forms.Label();
this.label3 = new System.Windows.Forms.Label();
this.SavePasswordButton = new System.Windows.Forms.Button();
this.label4 = new System.Windows.Forms.Label();
this.groupBox1.SuspendLayout();
this.SuspendLayout();
//
// label1
//
this.label1.AutoSize = true;
this.label1.Font = new System.Drawing.Font("Segoe UI", 18F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point);
this.label1.ForeColor = System.Drawing.SystemColors.Highlight;
this.label1.Location = new System.Drawing.Point(12, 9);
this.label1.Name = "label1";
this.label1.Size = new System.Drawing.Size(287, 48);
this.label1.TabIndex = 0;
this.label1.Text = "User information";
//
// textBox1
//
this.textBox1.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
| System.Windows.Forms.AnchorStyles.Right)));
this.textBox1.Location = new System.Drawing.Point(12, 122);
this.textBox1.Name = "textBox1";
this.textBox1.ReadOnly = true;
this.textBox1.Size = new System.Drawing.Size(543, 31);
this.textBox1.TabIndex = 1;
//
// groupBox1
//
this.groupBox1.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
| System.Windows.Forms.AnchorStyles.Left)
| System.Windows.Forms.AnchorStyles.Right)));
this.groupBox1.Controls.Add(this.SavePasswordButton);
this.groupBox1.Controls.Add(this.label3);
this.groupBox1.Controls.Add(this.label2);
this.groupBox1.Controls.Add(this.textBox3);
this.groupBox1.Controls.Add(this.textBox2);
this.groupBox1.Location = new System.Drawing.Point(12, 184);
this.groupBox1.Name = "groupBox1";
this.groupBox1.Size = new System.Drawing.Size(543, 225);
this.groupBox1.TabIndex = 3;
this.groupBox1.TabStop = false;
this.groupBox1.Text = "Change password";
//
// textBox2
//
this.textBox2.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
| System.Windows.Forms.AnchorStyles.Right)));
this.textBox2.Location = new System.Drawing.Point(6, 74);
this.textBox2.Name = "textBox2";
this.textBox2.Size = new System.Drawing.Size(531, 31);
this.textBox2.TabIndex = 0;
//
// textBox3
//
this.textBox3.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
| System.Windows.Forms.AnchorStyles.Right)));
this.textBox3.Location = new System.Drawing.Point(6, 135);
this.textBox3.Name = "textBox3";
this.textBox3.Size = new System.Drawing.Size(531, 31);
this.textBox3.TabIndex = 1;
//
// label2
//
this.label2.AutoSize = true;
this.label2.Location = new System.Drawing.Point(6, 46);
this.label2.Name = "label2";
this.label2.Size = new System.Drawing.Size(129, 25);
this.label2.TabIndex = 2;
this.label2.Text = "New password";
//
// label3
//
this.label3.AutoSize = true;
this.label3.Location = new System.Drawing.Point(6, 108);
this.label3.Name = "label3";
this.label3.Size = new System.Drawing.Size(207, 25);
this.label3.TabIndex = 3;
this.label3.Text = "The new password again";
//
// SavePasswordButton
//
this.SavePasswordButton.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
this.SavePasswordButton.Enabled = false;
this.SavePasswordButton.Location = new System.Drawing.Point(425, 185);
this.SavePasswordButton.Name = "SavePasswordButton";
this.SavePasswordButton.Size = new System.Drawing.Size(112, 34);
this.SavePasswordButton.TabIndex = 4;
this.SavePasswordButton.Text = "Save";
this.SavePasswordButton.UseVisualStyleBackColor = true;
//
// label4
//
this.label4.AutoSize = true;
this.label4.Location = new System.Drawing.Point(12, 94);
this.label4.Name = "label4";
this.label4.Size = new System.Drawing.Size(91, 25);
this.label4.TabIndex = 4;
this.label4.Text = "Username";
//
// UserForm
//
this.AutoScaleDimensions = new System.Drawing.SizeF(144F, 144F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Dpi;
this.BackColor = System.Drawing.SystemColors.Window;
this.ClientSize = new System.Drawing.Size(567, 421);
this.Controls.Add(this.label4);
this.Controls.Add(this.groupBox1);
this.Controls.Add(this.textBox1);
this.Controls.Add(this.label1);
this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));
this.MinimumSize = new System.Drawing.Size(589, 477);
this.Name = "UserForm";
this.StartPosition = System.Windows.Forms.FormStartPosition.CenterParent;
this.Text = "User information";
this.groupBox1.ResumeLayout(false);
this.groupBox1.PerformLayout();
this.ResumeLayout(false);
this.PerformLayout();
}
#endregion
private Label label1;
private TextBox textBox1;
private GroupBox groupBox1;
private TextBox textBox2;
private TextBox textBox3;
private Button SavePasswordButton;
private Label label3;
private Label label2;
private Label label4;
}
}

View File

@@ -0,0 +1,20 @@
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
namespace OpenSaveCloudClient
{
public partial class UserForm : Form
{
public UserForm()
{
InitializeComponent();
}
}
}

File diff suppressed because it is too large Load Diff