private void DisableControls() { this.dataGridView.Rows.Clear(); this.dataGridView.Columns.Clear(); this.schema = null; this.generator = null; this.docImageForm = null; this.openToolStripMenuItem.Enabled = true; this.newRowToolStripMenuItem.Enabled = false; this.loadFSCToolStripMenuItem.Enabled = false; this.removeRowToolStripMenuItem.Enabled = false; this.addallresultcasesToolStripMenuItem.Enabled = false; this.addAllUserResultsToolStripMenuItem.Enabled = false; this.addResultsToolStripMenuItem.Enabled = false; this.classifyToolStripMenuItem.Enabled = false; this.closeToolStripMenuItem.Enabled = false; this.removeRowToolStripMenuItem1.Enabled = false; this.removeRowToolStripMenuItem.Enabled = false; this.saveDebugInfoToolStripMenuItem.Enabled = false; this.clearDebugInfoToolStripMenuItem.Enabled = false; this.viewToolStripMenuItem.Enabled = false; this.extrasToolStripMenuItem.Enabled = false; this.actionToolStripMenuItem1.Enabled = false; this.hRTMapperToolStripMenuItem.Visible = false; this.listBoxStatus.Enabled = true; this.listBoxStatus.Items.Clear(); this.progressBarState.Value = 0; }
private void LoadDocumentImageForm() { this.docImageForm = new DocumentImageForm(); this.docImageForm.Size = this.formConfig.DocFormSize; this.docImageForm.Location = this.formConfig.DocFormLocation; this.docImageForm.Resize += new EventHandler(DocImageForm_Resize); this.docImageForm.LocationChanged += new EventHandler(DocImageForm_LocationChanged); }
private void DocumentImageToolStripMenuItem_Click( object sender, EventArgs e) { if (this.documentImageToolStripMenuItem.CheckState == CheckState.Checked) { this.LoadDocumentImageForm(); if (this.generator != null && this.generator.ModiDocument != null) { this.docImageForm.ModiDocument = this.generator.ModiDocument; this.docImageForm.Lines = this.generator.Lines; } this.docImageForm.Show(); } else { this.docImageForm.Close(); this.docImageForm = null; } }