Commit b48ce1b1 authored by VihangiSalgado's avatar VihangiSalgado

Interfaces of opening window and create project Edited

parent c829ab98
...@@ -78,7 +78,7 @@ ...@@ -78,7 +78,7 @@
this.Name = "Form1"; this.Name = "Form1";
this.ShowInTaskbar = false; this.ShowInTaskbar = false;
this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen; this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen;
this.Text = "Assist Asembler "; this.Text = "Assist ";
this.Load += new System.EventHandler(this.Form1_Load); this.Load += new System.EventHandler(this.Form1_Load);
this.ResumeLayout(false); this.ResumeLayout(false);
......
...@@ -35,6 +35,10 @@ ...@@ -35,6 +35,10 @@
this.button1 = new System.Windows.Forms.Button(); this.button1 = new System.Windows.Forms.Button();
this.panel1 = new System.Windows.Forms.Panel(); this.panel1 = new System.Windows.Forms.Panel();
this.button2 = new System.Windows.Forms.Button(); this.button2 = new System.Windows.Forms.Button();
this.textBox4 = new System.Windows.Forms.TextBox();
this.label3 = new System.Windows.Forms.Label();
this.label4 = new System.Windows.Forms.Label();
this.textBox3 = new System.Windows.Forms.TextBox();
this.SuspendLayout(); this.SuspendLayout();
// //
// label1 // label1
...@@ -42,7 +46,7 @@ ...@@ -42,7 +46,7 @@
this.label1.AutoSize = true; this.label1.AutoSize = true;
this.label1.Font = new System.Drawing.Font("Century Schoolbook", 10.2F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.label1.Font = new System.Drawing.Font("Century Schoolbook", 10.2F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.label1.ForeColor = System.Drawing.SystemColors.ControlLightLight; this.label1.ForeColor = System.Drawing.SystemColors.ControlLightLight;
this.label1.Location = new System.Drawing.Point(31, 38); this.label1.Location = new System.Drawing.Point(31, 147);
this.label1.Name = "label1"; this.label1.Name = "label1";
this.label1.Size = new System.Drawing.Size(134, 21); this.label1.Size = new System.Drawing.Size(134, 21);
this.label1.TabIndex = 0; this.label1.TabIndex = 0;
...@@ -54,7 +58,7 @@ ...@@ -54,7 +58,7 @@
this.label2.AutoSize = true; this.label2.AutoSize = true;
this.label2.Font = new System.Drawing.Font("Century Schoolbook", 10.2F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.label2.Font = new System.Drawing.Font("Century Schoolbook", 10.2F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.label2.ForeColor = System.Drawing.SystemColors.ControlLightLight; this.label2.ForeColor = System.Drawing.SystemColors.ControlLightLight;
this.label2.Location = new System.Drawing.Point(31, 86); this.label2.Location = new System.Drawing.Point(31, 195);
this.label2.Name = "label2"; this.label2.Name = "label2";
this.label2.Size = new System.Drawing.Size(126, 21); this.label2.Size = new System.Drawing.Size(126, 21);
this.label2.TabIndex = 1; this.label2.TabIndex = 1;
...@@ -63,24 +67,26 @@ ...@@ -63,24 +67,26 @@
// textBox1 // textBox1
// //
this.textBox1.Font = new System.Drawing.Font("Century Schoolbook", 7.8F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.textBox1.Font = new System.Drawing.Font("Century Schoolbook", 7.8F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.textBox1.Location = new System.Drawing.Point(195, 37); this.textBox1.Location = new System.Drawing.Point(195, 146);
this.textBox1.Name = "textBox1"; this.textBox1.Name = "textBox1";
this.textBox1.Size = new System.Drawing.Size(875, 23); this.textBox1.Size = new System.Drawing.Size(875, 23);
this.textBox1.TabIndex = 2; this.textBox1.TabIndex = 2;
this.textBox1.TextChanged += new System.EventHandler(this.TextBox1_TextChanged);
// //
// textBox2 // textBox2
// //
this.textBox2.Font = new System.Drawing.Font("Century Schoolbook", 7.8F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.textBox2.Font = new System.Drawing.Font("Century Schoolbook", 7.8F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.textBox2.Location = new System.Drawing.Point(195, 85); this.textBox2.Location = new System.Drawing.Point(195, 194);
this.textBox2.Name = "textBox2"; this.textBox2.Name = "textBox2";
this.textBox2.Size = new System.Drawing.Size(875, 23); this.textBox2.Size = new System.Drawing.Size(875, 23);
this.textBox2.TabIndex = 3; this.textBox2.TabIndex = 3;
this.textBox2.TextChanged += new System.EventHandler(this.TextBox2_TextChanged);
// //
// button1 // button1
// //
this.button1.BackColor = System.Drawing.Color.LavenderBlush; this.button1.BackColor = System.Drawing.Color.LavenderBlush;
this.button1.Font = new System.Drawing.Font("Calibri", 7.8F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.button1.Font = new System.Drawing.Font("Calibri", 7.8F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.button1.Location = new System.Drawing.Point(1092, 87); this.button1.Location = new System.Drawing.Point(1092, 196);
this.button1.Name = "button1"; this.button1.Name = "button1";
this.button1.Size = new System.Drawing.Size(75, 23); this.button1.Size = new System.Drawing.Size(75, 23);
this.button1.TabIndex = 4; this.button1.TabIndex = 4;
...@@ -91,9 +97,9 @@ ...@@ -91,9 +97,9 @@
// panel1 // panel1
// //
this.panel1.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle; this.panel1.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
this.panel1.Location = new System.Drawing.Point(35, 141); this.panel1.Location = new System.Drawing.Point(35, 249);
this.panel1.Name = "panel1"; this.panel1.Name = "panel1";
this.panel1.Size = new System.Drawing.Size(1132, 331); this.panel1.Size = new System.Drawing.Size(1132, 223);
this.panel1.TabIndex = 5; this.panel1.TabIndex = 5;
// //
// button2 // button2
...@@ -108,12 +114,57 @@ ...@@ -108,12 +114,57 @@
this.button2.UseVisualStyleBackColor = false; this.button2.UseVisualStyleBackColor = false;
this.button2.Click += new System.EventHandler(this.Button2_Click); this.button2.Click += new System.EventHandler(this.Button2_Click);
// //
// textBox4
//
this.textBox4.Font = new System.Drawing.Font("Century Schoolbook", 7.8F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.textBox4.Location = new System.Drawing.Point(195, 44);
this.textBox4.Name = "textBox4";
this.textBox4.Size = new System.Drawing.Size(875, 23);
this.textBox4.TabIndex = 9;
this.textBox4.TextChanged += new System.EventHandler(this.TextBox4_TextChanged);
//
// label3
//
this.label3.AutoSize = true;
this.label3.Font = new System.Drawing.Font("Century Schoolbook", 10.2F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.label3.ForeColor = System.Drawing.SystemColors.ControlLightLight;
this.label3.Location = new System.Drawing.Point(36, 90);
this.label3.Name = "label3";
this.label3.Size = new System.Drawing.Size(108, 21);
this.label3.TabIndex = 8;
this.label3.Text = "Last Name:";
this.label3.Click += new System.EventHandler(this.Label3_Click);
//
// label4
//
this.label4.AutoSize = true;
this.label4.Font = new System.Drawing.Font("Century Schoolbook", 10.2F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.label4.ForeColor = System.Drawing.SystemColors.ControlLightLight;
this.label4.Location = new System.Drawing.Point(36, 43);
this.label4.Name = "label4";
this.label4.Size = new System.Drawing.Size(113, 21);
this.label4.TabIndex = 7;
this.label4.Text = "First Name:";
this.label4.Click += new System.EventHandler(this.Label4_Click);
//
// textBox3
//
this.textBox3.Font = new System.Drawing.Font("Century Schoolbook", 7.8F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.textBox3.Location = new System.Drawing.Point(195, 91);
this.textBox3.Name = "textBox3";
this.textBox3.Size = new System.Drawing.Size(875, 23);
this.textBox3.TabIndex = 10;
//
// Form2 // Form2
// //
this.AutoScaleDimensions = new System.Drawing.SizeF(8F, 16F); this.AutoScaleDimensions = new System.Drawing.SizeF(8F, 16F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.BackColor = System.Drawing.Color.MidnightBlue; this.BackColor = System.Drawing.Color.MidnightBlue;
this.ClientSize = new System.Drawing.Size(1191, 571); this.ClientSize = new System.Drawing.Size(1191, 571);
this.Controls.Add(this.textBox3);
this.Controls.Add(this.textBox4);
this.Controls.Add(this.label3);
this.Controls.Add(this.label4);
this.Controls.Add(this.button2); this.Controls.Add(this.button2);
this.Controls.Add(this.panel1); this.Controls.Add(this.panel1);
this.Controls.Add(this.button1); this.Controls.Add(this.button1);
...@@ -138,5 +189,9 @@ ...@@ -138,5 +189,9 @@
private System.Windows.Forms.Button button1; private System.Windows.Forms.Button button1;
private System.Windows.Forms.Panel panel1; private System.Windows.Forms.Panel panel1;
private System.Windows.Forms.Button button2; private System.Windows.Forms.Button button2;
private System.Windows.Forms.TextBox textBox4;
private System.Windows.Forms.Label label3;
private System.Windows.Forms.Label label4;
private System.Windows.Forms.TextBox textBox3;
} }
} }
\ No newline at end of file
...@@ -3,6 +3,7 @@ using System.Collections.Generic; ...@@ -3,6 +3,7 @@ using System.Collections.Generic;
using System.ComponentModel; using System.ComponentModel;
using System.Data; using System.Data;
using System.Drawing; using System.Drawing;
using System.IO;
using System.Linq; using System.Linq;
using System.Text; using System.Text;
using System.Threading.Tasks; using System.Threading.Tasks;
...@@ -22,13 +23,14 @@ namespace WindowsFormsApp1 ...@@ -22,13 +23,14 @@ namespace WindowsFormsApp1
} }
OpenFileDialog openD = new OpenFileDialog(); FolderBrowserDialog fbd = new FolderBrowserDialog();
private void Button1_Click(object sender, EventArgs e) private void Button1_Click(object sender, EventArgs e)
{ {
if (openD.ShowDialog() == DialogResult.OK) //fbd.RootFolder = Environment.SpecialFolder.MyDocuments;
if (fbd.ShowDialog() == System.Windows.Forms.DialogResult.OK)
{ {
textBox2.Text = openD.FileName; textBox2.Text = fbd.SelectedPath;
} }
} }
...@@ -39,7 +41,55 @@ namespace WindowsFormsApp1 ...@@ -39,7 +41,55 @@ namespace WindowsFormsApp1
private void Button2_Click(object sender, EventArgs e) private void Button2_Click(object sender, EventArgs e)
{ {
String location = textBox2.Text;
String FolederName = textBox1.Text;
String path = location;
String file = System.IO.Path.Combine(path, FolederName);
System.IO.Directory.CreateDirectory(file);
MessageBox.Show("Successfully Created");
}
private void TextBox2_TextChanged(object sender, EventArgs e)
{
}
private void Label4_Click(object sender, EventArgs e)
{
}
private void Label3_Click(object sender, EventArgs e)
{
}
private void TextBox1_TextChanged(object sender, EventArgs e)
{
}
private void TextBox4_TextChanged(object sender, EventArgs e)
{
}
private void Label6_Click(object sender, EventArgs e)
{
String abbrivation = textBox4.Text;
Console.WriteLine(" bla bla bla" + abbrivation);
}
private void Label5_Click(object sender, EventArgs e)
{
}
private void TextBox5_TextChanged(object sender, EventArgs e)
{
String abbrivation = textBox4.Text;
Console.WriteLine(" bla bla bla" + abbrivation);
} }
} }
} }
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment