annotate Progress.cs @ 1:9106f044f5f3 default tip

Add files that were previously unversioned in build directories
author IBBoard <dev@ibboard.co.uk>
date Sun, 07 Oct 2018 14:48:58 +0100
parents 8439bec53421
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
0
8439bec53421 Initial commit under the GPLv3
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1 using System;
8439bec53421 Initial commit under the GPLv3
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2 using System.Drawing;
8439bec53421 Initial commit under the GPLv3
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
3 using System.Collections;
8439bec53421 Initial commit under the GPLv3
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
4 using System.ComponentModel;
8439bec53421 Initial commit under the GPLv3
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
5 using System.Windows.Forms;
8439bec53421 Initial commit under the GPLv3
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
6
8439bec53421 Initial commit under the GPLv3
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
7 using IBBoard.Relic.RelicTools;
8439bec53421 Initial commit under the GPLv3
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
8
8439bec53421 Initial commit under the GPLv3
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
9 namespace IBBoard.Relic.IChunkyViewer
8439bec53421 Initial commit under the GPLv3
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
10 {
8439bec53421 Initial commit under the GPLv3
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
11 /// <summary>
8439bec53421 Initial commit under the GPLv3
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
12 /// Summary description for Progress.
8439bec53421 Initial commit under the GPLv3
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
13 /// </summary>
8439bec53421 Initial commit under the GPLv3
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
14 public class Progress : System.Windows.Forms.Form
8439bec53421 Initial commit under the GPLv3
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
15 {
8439bec53421 Initial commit under the GPLv3
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
16 private System.Windows.Forms.ProgressBar progressBar;
8439bec53421 Initial commit under the GPLv3
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
17 private System.Windows.Forms.Timer timer;
8439bec53421 Initial commit under the GPLv3
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
18 private System.Windows.Forms.Label lblProgress;
8439bec53421 Initial commit under the GPLv3
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
19 private System.ComponentModel.IContainer components;
8439bec53421 Initial commit under the GPLv3
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
20
8439bec53421 Initial commit under the GPLv3
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
21 Form1.ChunkyOpenedDelegate OnChunkyOpened = null;
8439bec53421 Initial commit under the GPLv3
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
22 Form1.ChunkyNodesCountedDelegate OnChunkyNodesCounted = null;
8439bec53421 Initial commit under the GPLv3
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
23 Form1.ChunkyNodeAddedDelegate OnChunkyNodeAdded = null;
8439bec53421 Initial commit under the GPLv3
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
24 Form1.ChunkyNodesAddedDelegate OnChunkyNodesAdded = null;
8439bec53421 Initial commit under the GPLv3
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
25 Form1.ChunkyOpenFailedDelegate OnChunkyOpenFailed = null;
8439bec53421 Initial commit under the GPLv3
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
26 Form1 parent;
8439bec53421 Initial commit under the GPLv3
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
27
8439bec53421 Initial commit under the GPLv3
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
28 public Progress(Form1 parent)
8439bec53421 Initial commit under the GPLv3
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
29 {
8439bec53421 Initial commit under the GPLv3
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
30 OnChunkyOpened = new Form1.ChunkyOpenedDelegate(chunkyOpened);
8439bec53421 Initial commit under the GPLv3
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
31 OnChunkyNodesCounted = new Form1.ChunkyNodesCountedDelegate(nodesCounted);
8439bec53421 Initial commit under the GPLv3
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
32 OnChunkyNodeAdded = new Form1.ChunkyNodeAddedDelegate(nodeAdded);
8439bec53421 Initial commit under the GPLv3
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
33 OnChunkyNodesAdded = new Form1.ChunkyNodesAddedDelegate(nodesAdded);
8439bec53421 Initial commit under the GPLv3
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
34 OnChunkyOpenFailed = new Form1.ChunkyOpenFailedDelegate(openFailed);
8439bec53421 Initial commit under the GPLv3
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
35
8439bec53421 Initial commit under the GPLv3
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
36 parent.OnChunkyOpened+= OnChunkyOpened;
8439bec53421 Initial commit under the GPLv3
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
37 parent.OnChunkyNodesCounted+= OnChunkyNodesCounted;
8439bec53421 Initial commit under the GPLv3
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
38 parent.OnChunkyNodeAdded+= OnChunkyNodeAdded;
8439bec53421 Initial commit under the GPLv3
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
39 parent.OnChunkyNodesAdded+= OnChunkyNodesAdded;
8439bec53421 Initial commit under the GPLv3
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
40 parent.OnChunkyOpenFailed+= OnChunkyOpenFailed;
8439bec53421 Initial commit under the GPLv3
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
41
8439bec53421 Initial commit under the GPLv3
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
42 InitializeComponent();
8439bec53421 Initial commit under the GPLv3
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
43
8439bec53421 Initial commit under the GPLv3
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
44 this.parent = parent;
8439bec53421 Initial commit under the GPLv3
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
45
8439bec53421 Initial commit under the GPLv3
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
46 timer.Enabled = true;
8439bec53421 Initial commit under the GPLv3
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
47 }
8439bec53421 Initial commit under the GPLv3
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
48
8439bec53421 Initial commit under the GPLv3
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
49 /// <summary>
8439bec53421 Initial commit under the GPLv3
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
50 /// Clean up any resources being used.
8439bec53421 Initial commit under the GPLv3
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
51 /// </summary>
8439bec53421 Initial commit under the GPLv3
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
52 protected override void Dispose( bool disposing )
8439bec53421 Initial commit under the GPLv3
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
53 {
8439bec53421 Initial commit under the GPLv3
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
54 parent.OnChunkyOpened-= OnChunkyOpened;
8439bec53421 Initial commit under the GPLv3
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
55 parent.OnChunkyNodesCounted-= OnChunkyNodesCounted;
8439bec53421 Initial commit under the GPLv3
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
56 parent.OnChunkyNodeAdded-= OnChunkyNodeAdded;
8439bec53421 Initial commit under the GPLv3
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
57 parent.OnChunkyNodesAdded-= OnChunkyNodesAdded;
8439bec53421 Initial commit under the GPLv3
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
58 parent.OnChunkyOpenFailed-= OnChunkyOpenFailed;
8439bec53421 Initial commit under the GPLv3
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
59
8439bec53421 Initial commit under the GPLv3
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
60 if( disposing )
8439bec53421 Initial commit under the GPLv3
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
61 {
8439bec53421 Initial commit under the GPLv3
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
62 if(components != null)
8439bec53421 Initial commit under the GPLv3
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
63 {
8439bec53421 Initial commit under the GPLv3
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
64 components.Dispose();
8439bec53421 Initial commit under the GPLv3
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
65 }
8439bec53421 Initial commit under the GPLv3
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
66 }
8439bec53421 Initial commit under the GPLv3
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
67 base.Dispose( disposing );
8439bec53421 Initial commit under the GPLv3
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
68 }
8439bec53421 Initial commit under the GPLv3
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
69
8439bec53421 Initial commit under the GPLv3
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
70 #region Windows Form Designer generated code
8439bec53421 Initial commit under the GPLv3
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
71 /// <summary>
8439bec53421 Initial commit under the GPLv3
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
72 /// Required method for Designer support - do not modify
8439bec53421 Initial commit under the GPLv3
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
73 /// the contents of this method with the code editor.
8439bec53421 Initial commit under the GPLv3
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
74 /// </summary>
8439bec53421 Initial commit under the GPLv3
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
75 private void InitializeComponent()
8439bec53421 Initial commit under the GPLv3
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
76 {
8439bec53421 Initial commit under the GPLv3
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
77 this.components = new System.ComponentModel.Container();
8439bec53421 Initial commit under the GPLv3
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
78 this.progressBar = new System.Windows.Forms.ProgressBar();
8439bec53421 Initial commit under the GPLv3
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
79 this.timer = new System.Windows.Forms.Timer(this.components);
8439bec53421 Initial commit under the GPLv3
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
80 this.lblProgress = new System.Windows.Forms.Label();
8439bec53421 Initial commit under the GPLv3
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
81 this.SuspendLayout();
8439bec53421 Initial commit under the GPLv3
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
82 //
8439bec53421 Initial commit under the GPLv3
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
83 // progressBar
8439bec53421 Initial commit under the GPLv3
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
84 //
8439bec53421 Initial commit under the GPLv3
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
85 this.progressBar.Location = new System.Drawing.Point(8, 8);
8439bec53421 Initial commit under the GPLv3
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
86 this.progressBar.Name = "progressBar";
8439bec53421 Initial commit under the GPLv3
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
87 this.progressBar.Size = new System.Drawing.Size(288, 23);
8439bec53421 Initial commit under the GPLv3
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
88 this.progressBar.TabIndex = 0;
8439bec53421 Initial commit under the GPLv3
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
89 //
8439bec53421 Initial commit under the GPLv3
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
90 // timer
8439bec53421 Initial commit under the GPLv3
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
91 //
8439bec53421 Initial commit under the GPLv3
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
92 this.timer.Interval = 40;
8439bec53421 Initial commit under the GPLv3
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
93 this.timer.Tick += new System.EventHandler(this.timer_Tick);
8439bec53421 Initial commit under the GPLv3
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
94 //
8439bec53421 Initial commit under the GPLv3
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
95 // lblProgress
8439bec53421 Initial commit under the GPLv3
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
96 //
8439bec53421 Initial commit under the GPLv3
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
97 this.lblProgress.Location = new System.Drawing.Point(8, 32);
8439bec53421 Initial commit under the GPLv3
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
98 this.lblProgress.Name = "lblProgress";
8439bec53421 Initial commit under the GPLv3
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
99 this.lblProgress.Size = new System.Drawing.Size(288, 23);
8439bec53421 Initial commit under the GPLv3
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
100 this.lblProgress.TabIndex = 1;
8439bec53421 Initial commit under the GPLv3
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
101 this.lblProgress.Text = "Loading Chunky file...";
8439bec53421 Initial commit under the GPLv3
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
102 this.lblProgress.TextAlign = System.Drawing.ContentAlignment.TopRight;
8439bec53421 Initial commit under the GPLv3
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
103 //
8439bec53421 Initial commit under the GPLv3
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
104 // Progress
8439bec53421 Initial commit under the GPLv3
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
105 //
8439bec53421 Initial commit under the GPLv3
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
106 this.AutoScaleBaseSize = new System.Drawing.Size(5, 13);
8439bec53421 Initial commit under the GPLv3
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
107 this.ClientSize = new System.Drawing.Size(304, 52);
8439bec53421 Initial commit under the GPLv3
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
108 this.ControlBox = false;
8439bec53421 Initial commit under the GPLv3
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
109 this.Controls.Add(this.lblProgress);
8439bec53421 Initial commit under the GPLv3
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
110 this.Controls.Add(this.progressBar);
8439bec53421 Initial commit under the GPLv3
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
111 this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedToolWindow;
8439bec53421 Initial commit under the GPLv3
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
112 this.Name = "Progress";
8439bec53421 Initial commit under the GPLv3
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
113 this.ShowInTaskbar = false;
8439bec53421 Initial commit under the GPLv3
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
114 this.StartPosition = System.Windows.Forms.FormStartPosition.CenterParent;
8439bec53421 Initial commit under the GPLv3
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
115 this.Text = "Loading Relic Chunky file...";
8439bec53421 Initial commit under the GPLv3
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
116 this.ResumeLayout(false);
8439bec53421 Initial commit under the GPLv3
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
117
8439bec53421 Initial commit under the GPLv3
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
118 }
8439bec53421 Initial commit under the GPLv3
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
119 #endregion
8439bec53421 Initial commit under the GPLv3
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
120
8439bec53421 Initial commit under the GPLv3
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
121 private void timer_Tick(object sender, System.EventArgs e)
8439bec53421 Initial commit under the GPLv3
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
122 {
8439bec53421 Initial commit under the GPLv3
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
123 progressBar.PerformStep();
8439bec53421 Initial commit under the GPLv3
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
124 }
8439bec53421 Initial commit under the GPLv3
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
125
8439bec53421 Initial commit under the GPLv3
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
126 private void nodesCounted(int nodes)
8439bec53421 Initial commit under the GPLv3
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
127 {
8439bec53421 Initial commit under the GPLv3
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
128 lblProgress.Text = "Adding chunks...";
8439bec53421 Initial commit under the GPLv3
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
129 timer.Enabled = false;
8439bec53421 Initial commit under the GPLv3
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
130 progressBar.Step = 1;
8439bec53421 Initial commit under the GPLv3
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
131 progressBar.Value = 1;
8439bec53421 Initial commit under the GPLv3
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
132 progressBar.Minimum = 1;
8439bec53421 Initial commit under the GPLv3
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
133 progressBar.Maximum = nodes;
8439bec53421 Initial commit under the GPLv3
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
134 }
8439bec53421 Initial commit under the GPLv3
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
135
8439bec53421 Initial commit under the GPLv3
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
136 private void nodeAdded(ChunkyChunk chunk)
8439bec53421 Initial commit under the GPLv3
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
137 {
8439bec53421 Initial commit under the GPLv3
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
138 progressBar.PerformStep();
8439bec53421 Initial commit under the GPLv3
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
139 }
8439bec53421 Initial commit under the GPLv3
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
140
8439bec53421 Initial commit under the GPLv3
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
141 private void nodesAdded(bool rendered)
8439bec53421 Initial commit under the GPLv3
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
142 {
8439bec53421 Initial commit under the GPLv3
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
143 progressBar.Value = progressBar.Maximum;
8439bec53421 Initial commit under the GPLv3
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
144
8439bec53421 Initial commit under the GPLv3
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
145 if (rendered)
8439bec53421 Initial commit under the GPLv3
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
146 {
8439bec53421 Initial commit under the GPLv3
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
147 this.Close();
8439bec53421 Initial commit under the GPLv3
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
148 this.Dispose();
8439bec53421 Initial commit under the GPLv3
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
149 }
8439bec53421 Initial commit under the GPLv3
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
150 else
8439bec53421 Initial commit under the GPLv3
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
151 {
8439bec53421 Initial commit under the GPLv3
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
152 lblProgress.Text = "Displaying tree...";
8439bec53421 Initial commit under the GPLv3
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
153 }
8439bec53421 Initial commit under the GPLv3
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
154 }
8439bec53421 Initial commit under the GPLv3
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
155
8439bec53421 Initial commit under the GPLv3
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
156 private void chunkyOpened(string filename)
8439bec53421 Initial commit under the GPLv3
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
157 {
8439bec53421 Initial commit under the GPLv3
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
158 lblProgress.Text = "Counting chunks...";
8439bec53421 Initial commit under the GPLv3
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
159 }
8439bec53421 Initial commit under the GPLv3
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
160
8439bec53421 Initial commit under the GPLv3
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
161 private void openFailed()
8439bec53421 Initial commit under the GPLv3
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
162 {
8439bec53421 Initial commit under the GPLv3
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
163 timer.Enabled = false;
8439bec53421 Initial commit under the GPLv3
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
164 progressBar.Value = progressBar.Maximum;
8439bec53421 Initial commit under the GPLv3
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
165 this.Hide();
8439bec53421 Initial commit under the GPLv3
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
166 this.Close();
8439bec53421 Initial commit under the GPLv3
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
167 try
8439bec53421 Initial commit under the GPLv3
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
168 {
8439bec53421 Initial commit under the GPLv3
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
169 this.Dispose();
8439bec53421 Initial commit under the GPLv3
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
170 }
8439bec53421 Initial commit under the GPLv3
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
171 catch{}
8439bec53421 Initial commit under the GPLv3
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
172 }
8439bec53421 Initial commit under the GPLv3
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
173 }
8439bec53421 Initial commit under the GPLv3
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
174 }