Update 11 files
- /OwnershipTaker/GUI/Form1.cs - /OwnershipTaker/GUI/Form1.Designer.cs - /OwnershipTaker/GUI/Form1.resx - /OwnershipTaker/GUI/OwnershipTake GUI.csproj - /OwnershipTaker/GUI/OwnershipTake GUI.csproj.user - /OwnershipTaker/GUI/OwnershipTake GUI.sln - /OwnershipTaker/GUI/Program.cs - /Simpsons_generator/Program.cs - /Simpsons_generator/Simpson.ico - /Simpsons_generator/Simpsons_generator.csproj - /Simpsons_generator/Simpsons_generator.sln
This commit is contained in:
Generated
+187
@@ -0,0 +1,187 @@
|
||||
namespace OwnershipTake_GUI
|
||||
{
|
||||
partial class Form1
|
||||
{
|
||||
/// <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(Form1));
|
||||
customer_list_box = new ComboBox();
|
||||
apply_button = new Button();
|
||||
label1 = new Label();
|
||||
label3 = new Label();
|
||||
exit_button = new Button();
|
||||
tableLayoutPanel1 = new TableLayoutPanel();
|
||||
pictureBox1 = new PictureBox();
|
||||
tableLayoutPanel1.SuspendLayout();
|
||||
((System.ComponentModel.ISupportInitialize)pictureBox1).BeginInit();
|
||||
SuspendLayout();
|
||||
//
|
||||
// customer_list_box
|
||||
//
|
||||
customer_list_box.Anchor = AnchorStyles.None;
|
||||
customer_list_box.DropDownStyle = ComboBoxStyle.DropDownList;
|
||||
customer_list_box.FormattingEnabled = true;
|
||||
customer_list_box.Items.AddRange(new object[] { "customer 1", "customer 2", "customer 3" });
|
||||
customer_list_box.Location = new Point(69, 164);
|
||||
customer_list_box.Name = "customer_list_box";
|
||||
customer_list_box.Size = new Size(100, 23);
|
||||
customer_list_box.TabIndex = 0;
|
||||
customer_list_box.SelectedIndexChanged += customer_list_box_SelectedIndexChanged;
|
||||
//
|
||||
// apply_button
|
||||
//
|
||||
apply_button.Anchor = AnchorStyles.None;
|
||||
apply_button.AutoSize = true;
|
||||
apply_button.AutoSizeMode = AutoSizeMode.GrowAndShrink;
|
||||
apply_button.Location = new Point(557, 163);
|
||||
apply_button.Name = "apply_button";
|
||||
apply_button.Size = new Size(48, 25);
|
||||
apply_button.TabIndex = 1;
|
||||
apply_button.Text = "Apply";
|
||||
apply_button.UseVisualStyleBackColor = true;
|
||||
apply_button.Click += apply_button_clicked;
|
||||
//
|
||||
// label1
|
||||
//
|
||||
label1.Anchor = AnchorStyles.None;
|
||||
label1.AutoSize = true;
|
||||
label1.Font = new Font("Segoe UI", 18F, FontStyle.Regular, GraphicsUnit.Point, 0);
|
||||
label1.ForeColor = SystemColors.ButtonHighlight;
|
||||
label1.Location = new Point(27, 42);
|
||||
label1.Name = "label1";
|
||||
label1.Size = new Size(184, 32);
|
||||
label1.TabIndex = 2;
|
||||
label1.Text = "Customer name";
|
||||
//
|
||||
// label3
|
||||
//
|
||||
label3.AutoSize = true;
|
||||
label3.Dock = DockStyle.Left;
|
||||
label3.Font = new Font("Segoe UI", 21.75F, FontStyle.Regular, GraphicsUnit.Point, 0);
|
||||
label3.ForeColor = SystemColors.Control;
|
||||
label3.Location = new Point(0, 0);
|
||||
label3.Name = "label3";
|
||||
label3.Size = new Size(225, 40);
|
||||
label3.TabIndex = 5;
|
||||
label3.Text = "Ownership taker";
|
||||
//
|
||||
// exit_button
|
||||
//
|
||||
exit_button.Anchor = AnchorStyles.Top | AnchorStyles.Right;
|
||||
exit_button.BackgroundImage = (Image)resources.GetObject("exit_button.BackgroundImage");
|
||||
exit_button.BackgroundImageLayout = ImageLayout.None;
|
||||
exit_button.FlatStyle = FlatStyle.Flat;
|
||||
exit_button.Location = new Point(817, 28);
|
||||
exit_button.Name = "exit_button";
|
||||
exit_button.Size = new Size(92, 55);
|
||||
exit_button.TabIndex = 6;
|
||||
exit_button.UseVisualStyleBackColor = true;
|
||||
exit_button.Click += exit_window;
|
||||
//
|
||||
// tableLayoutPanel1
|
||||
//
|
||||
tableLayoutPanel1.Anchor = AnchorStyles.None;
|
||||
tableLayoutPanel1.AutoSize = true;
|
||||
tableLayoutPanel1.BackColor = Color.Transparent;
|
||||
tableLayoutPanel1.ColumnCount = 3;
|
||||
tableLayoutPanel1.ColumnStyles.Add(new ColumnStyle(SizeType.Percent, 50F));
|
||||
tableLayoutPanel1.ColumnStyles.Add(new ColumnStyle(SizeType.Percent, 50F));
|
||||
tableLayoutPanel1.ColumnStyles.Add(new ColumnStyle(SizeType.Absolute, 205F));
|
||||
tableLayoutPanel1.Controls.Add(label1, 0, 0);
|
||||
tableLayoutPanel1.Controls.Add(customer_list_box, 0, 1);
|
||||
tableLayoutPanel1.Controls.Add(apply_button, 2, 1);
|
||||
tableLayoutPanel1.Location = new Point(104, 231);
|
||||
tableLayoutPanel1.Name = "tableLayoutPanel1";
|
||||
tableLayoutPanel1.RowCount = 2;
|
||||
tableLayoutPanel1.RowStyles.Add(new RowStyle(SizeType.Percent, 50F));
|
||||
tableLayoutPanel1.RowStyles.Add(new RowStyle(SizeType.Percent, 50F));
|
||||
tableLayoutPanel1.Size = new Size(684, 235);
|
||||
tableLayoutPanel1.TabIndex = 7;
|
||||
//
|
||||
// pictureBox1
|
||||
//
|
||||
pictureBox1.Anchor = AnchorStyles.None;
|
||||
pictureBox1.BackgroundImage = (Image)resources.GetObject("pictureBox1.BackgroundImage");
|
||||
pictureBox1.BackgroundImageLayout = ImageLayout.Stretch;
|
||||
pictureBox1.Location = new Point(347, 0);
|
||||
pictureBox1.Name = "pictureBox1";
|
||||
pictureBox1.Size = new Size(238, 231);
|
||||
pictureBox1.SizeMode = PictureBoxSizeMode.AutoSize;
|
||||
pictureBox1.TabIndex = 8;
|
||||
pictureBox1.TabStop = false;
|
||||
//
|
||||
// Form1
|
||||
//
|
||||
AutoScaleDimensions = new SizeF(7F, 15F);
|
||||
AutoScaleMode = AutoScaleMode.Font;
|
||||
AutoValidate = AutoValidate.Disable;
|
||||
BackColor = SystemColors.HotTrack;
|
||||
BackgroundImageLayout = ImageLayout.Stretch;
|
||||
ClientSize = new Size(936, 730);
|
||||
Controls.Add(pictureBox1);
|
||||
Controls.Add(tableLayoutPanel1);
|
||||
Controls.Add(exit_button);
|
||||
Controls.Add(label3);
|
||||
DoubleBuffered = true;
|
||||
FormBorderStyle = FormBorderStyle.FixedDialog;
|
||||
Name = "Form1";
|
||||
Text = "Ownership taker";
|
||||
WindowState = FormWindowState.Maximized;
|
||||
Load += Form1_Load;
|
||||
tableLayoutPanel1.ResumeLayout(false);
|
||||
tableLayoutPanel1.PerformLayout();
|
||||
((System.ComponentModel.ISupportInitialize)pictureBox1).EndInit();
|
||||
ResumeLayout(false);
|
||||
PerformLayout();
|
||||
}
|
||||
|
||||
private void apply_button_clicked(object sender, EventArgs e)
|
||||
{
|
||||
string selectedOption = customer_list_box.SelectedItem.ToString();
|
||||
string userName = Environment.UserName;
|
||||
MessageBox.Show($"You want to take control of {selectedOption} with the account {userName}");
|
||||
}
|
||||
|
||||
private void exit_window(object sender, EventArgs e)
|
||||
{
|
||||
|
||||
//MessageBox.Show($"exit");
|
||||
System.Windows.Forms.Application.Exit();
|
||||
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
private ComboBox customer_list_box;
|
||||
private Button apply_button;
|
||||
private Label label1;
|
||||
private Label label3;
|
||||
private Button exit_button;
|
||||
private TableLayoutPanel tableLayoutPanel1;
|
||||
private PictureBox pictureBox1;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user