private void DoScan() { this.Cursor = Cursors.WaitCursor; try { this._scanner = new Traverser(this.CtlSelectedFolder.Text); this.SetStateText("Scanning"); this.Refresh(); this._scanner.Scan(); this.SetStateText("Loading Tree"); LoadTree(); this.SetStateText("Scan Complete"); this.ClearMessage(); } catch (Exception E) { MessageBox.Show(this, E.ToString(), "Error", MessageBoxButtons.OK, MessageBoxIcon.Exclamation); } finally { this.Cursor = Cursors.Default; } }
public FrmMain() { // // Required for Windows Form Designer support // InitializeComponent(); // // TODO: Add any constructor code after InitializeComponent call // this._scanner = null; }