Changeset 9519
- Timestamp:
- 2018-05-05 15:03:59 (3 years ago)
- Location:
- 2016/27/PaavoH
- Files:
-
- 71 added
- 13 edited
Legend:
- Unmodified
- Added
- Removed
-
2016/27/PaavoH/Safety check/Safety check/Form4.Designer.cs
r9517 r9519 29 29 private void InitializeComponent() 30 30 { 31 this.components = new System.ComponentModel.Container(); 31 32 this.label1 = new System.Windows.Forms.Label(); 32 33 this.progressBar1 = new System.Windows.Forms.ProgressBar(); 34 this.timer1 = new System.Windows.Forms.Timer(this.components); 35 this.label2 = new System.Windows.Forms.Label(); 36 this.timer2 = new System.Windows.Forms.Timer(this.components); 37 this.timer3 = new System.Windows.Forms.Timer(this.components); 33 38 this.SuspendLayout(); 34 39 // … … 39 44 this.label1.Location = new System.Drawing.Point(125, 45); 40 45 this.label1.Name = "label1"; 41 this.label1.Size = new System.Drawing.Size( 84, 20);46 this.label1.Size = new System.Drawing.Size(18, 20); 42 47 this.label1.TabIndex = 0; 43 this.label1.Text = " Installing...";48 this.label1.Text = "3"; 44 49 // 45 50 // progressBar1 … … 49 54 this.progressBar1.Size = new System.Drawing.Size(326, 35); 50 55 this.progressBar1.TabIndex = 1; 56 this.progressBar1.Click += new System.EventHandler(this.progressBar1_Click); 57 // 58 // timer1 59 // 60 this.timer1.Tick += new System.EventHandler(this.timer1_Tick); 61 // 62 // label2 63 // 64 this.label2.AutoSize = true; 65 this.label2.Location = new System.Drawing.Point(12, 114); 66 this.label2.Name = "label2"; 67 this.label2.Size = new System.Drawing.Size(112, 13); 68 this.label2.TabIndex = 2; 69 this.label2.Text = "10 prosent completed."; 70 this.label2.Click += new System.EventHandler(this.label2_Click); 71 // 72 // timer2 73 // 74 this.timer2.Tick += new System.EventHandler(this.timer2_Tick); 75 // 76 // timer3 77 // 78 this.timer3.Enabled = true; 79 this.timer3.Interval = 500; 80 this.timer3.Tick += new System.EventHandler(this.timer3_Tick); 51 81 // 52 82 // Form4 … … 56 86 this.ClientSize = new System.Drawing.Size(350, 177); 57 87 this.ControlBox = false; 88 this.Controls.Add(this.label2); 58 89 this.Controls.Add(this.progressBar1); 59 90 this.Controls.Add(this.label1); … … 73 104 private System.Windows.Forms.Label label1; 74 105 private System.Windows.Forms.ProgressBar progressBar1; 106 private System.Windows.Forms.Timer timer1; 107 private System.Windows.Forms.Label label2; 108 private System.Windows.Forms.Timer timer2; 109 private System.Windows.Forms.Timer timer3; 75 110 } 76 111 } -
2016/27/PaavoH/Safety check/Safety check/Form4.cs
r9517 r9519 13 13 public partial class Form4 : Form 14 14 { 15 public static bool IsForm5Hidden = false; 16 List<string> dots = new List<string>(); 17 byte Dot = 0; 15 18 public Form4() 16 19 { 17 20 InitializeComponent(); 21 progressBar1.Maximum = 100; 22 progressBar1.Step = 1; 23 timer1.Start(); 24 timer2.Start(); 25 dots.Add("."); 26 dots.Add(".."); 27 dots.Add("..."); 28 timer3.Start(); 29 30 } 31 32 private void progressBar1_Click(object sender, EventArgs e) 33 { 34 } 35 36 private void timer1_Tick(object sender, EventArgs e) 37 { 38 progressBar1.PerformStep(); 39 label2.Text = progressBar1.Value+ "% Completed"; 40 if (progressBar1.Value == 98) 41 { 42 timer1.Stop(); 43 Form5 editform = new Form5(); 44 editform.Show(); 45 } 46 47 } 48 49 50 private void label2_Click(object sender, EventArgs e) 51 { 52 53 } 54 55 private void timer2_Tick(object sender, EventArgs e) 56 { 57 if (IsForm5Hidden == true) 58 { 59 Form5 editform = new Form5(); 60 editform.Show(); 61 IsForm5Hidden = false; 62 63 } 64 } 65 private void timer3_Tick(object sender, EventArgs e) 66 { 67 label1.Text = "Installing" +dots[Dot++ % dots.Count]; 68 69 if (progressBar1.Value == 98) 70 { 71 timer3.Stop(); 72 } 73 18 74 } 19 75 } -
2016/27/PaavoH/Safety check/Safety check/Form4.resx
r9517 r9519 118 118 <value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value> 119 119 </resheader> 120 <metadata name="timer1.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"> 121 <value>17, 17</value> 122 </metadata> 123 <metadata name="timer2.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"> 124 <value>104, 17</value> 125 </metadata> 126 <metadata name="timer3.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"> 127 <value>191, 17</value> 128 </metadata> 120 129 </root> -
2016/27/PaavoH/Safety check/Safety check/Safety check.csproj
r9517 r9519 71 71 <DependentUpon>Form4.cs</DependentUpon> 72 72 </Compile> 73 <Compile Include="Form5.cs"> 74 <SubType>Form</SubType> 75 </Compile> 76 <Compile Include="Form5.Designer.cs"> 77 <DependentUpon>Form5.cs</DependentUpon> 78 </Compile> 73 79 <Compile Include="Program.cs" /> 74 80 <Compile Include="Properties\AssemblyInfo.cs" /> … … 84 90 <EmbeddedResource Include="Form4.resx"> 85 91 <DependentUpon>Form4.cs</DependentUpon> 92 </EmbeddedResource> 93 <EmbeddedResource Include="Form5.resx"> 94 <DependentUpon>Form5.cs</DependentUpon> 86 95 </EmbeddedResource> 87 96 <EmbeddedResource Include="Properties\Resources.resx"> -
2016/27/PaavoH/Safety check/Safety check/obj/Debug/Safety check.csproj.FileListAbsolute.txt
r9517 r9519 11 11 C:\MyTemp\PaavoH\Safety check\Safety check\obj\Debug\Safety_check.Form3.resources 12 12 C:\MyTemp\PaavoH\Safety check\Safety check\obj\Debug\Safety_check.Form4.resources 13 C:\MyTemp\PaavoH\Safety check\Safety check\obj\Debug\Safety check.csproj.CoreCompileInputs.cache 14 C:\MyTemp\PaavoH\Safety check\Safety check\obj\Debug\Safety_check.Form5.resources
Note: See TracChangeset
for help on using the changeset viewer.