////////////////////////////////////////////////////////////////////////// private void OnScanProject(object sender, EventArgs e) { if (!File.Exists(TxtProjectFile.Text)) { MessageBox.Show("Please select an existing WME project file.", this.Text, MessageBoxButtons.OK, MessageBoxIcon.Warning); return; } if (TxtStringTable.Text.Trim() == string.Empty) { MessageBox.Show("Please select a string table file.", this.Text, MessageBoxButtons.OK, MessageBoxIcon.Warning); return; } if (CurrentState == AppState.Scanned) { if (MessageBox.Show("Scanning the project will discard any unsaved changes. Do you want to continue?", this.Text, MessageBoxButtons.YesNo, MessageBoxIcon.Question) != DialogResult.Yes) { return; } } TxtLog.Text = ""; this.Enabled = false; AssignSettings(); Mgr.ScanProject(); this.Enabled = true; SetState(AppState.Scanned); }