Ejemplo n.º 1
0
        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;
            }
        }
Ejemplo n.º 2
0
        public FrmMain()
        {
            //
            // Required for Windows Form Designer support
            //
            InitializeComponent();

            //
            // TODO: Add any constructor code after InitializeComponent call
            //
            this._scanner = null;
        }