private void EditTemplatesMenuItem_Click(object sender, EventArgs e) { Cursor origCursor = this.Cursor; try { this.Cursor = Cursors.WaitCursor; this.MainWindow.HideErrorOrStatusMessage(); TemplateDisplaySurface templateDisplaySurface = new TemplateDisplaySurface(); TreeNode node = this.projectTree.SelectedNode; ProjectNodeData data = node.Tag as ProjectNodeData; templateDisplaySurface.DisplayTemplateUI(true, data.Input, data.Settings as esSettings, data.Template, OnExecute, OnCancel); splitContainer.Panel1Collapsed = false; splitContainer.Panel2Collapsed = true; isDirty = true; } catch (Exception ex) { this.MainWindow.ShowError(ex); } finally { EnableToolbarButtons(true); this.Cursor = origCursor; } }
private void buttonRecordOk_Click(object sender, EventArgs e) { Cursor origCursor = this.Cursor; try { this.Cursor = Cursors.WaitCursor; this.MainWindow.HideErrorOrStatusMessage(); TemplateDisplaySurface templateDisplaySurface = new TemplateDisplaySurface(); Template template = this.tree.SelectedNode.Tag as Template; templateDisplaySurface.DisplayTemplateUI(false, null, this.Settings, template, OnExecute, OnCancel); splitContainer.Panel1Collapsed = false; splitContainer.Panel2Collapsed = true; isDirty = true; } catch (Exception ex) { this.MainWindow.ShowError(ex); } finally { EnableToolbarButtons(true); this.Cursor = origCursor; } }
private void EditTemplatesMenuItem_Click(object sender, EventArgs e) { Cursor origCursor = this.Cursor; try { this.Cursor = Cursors.WaitCursor; this.MainWindow.HideErrorOrStatusMessage(); TemplateDisplaySurface templateDisplaySurface = new TemplateDisplaySurface(); TreeNode node = this.projectTree.SelectedNode; ProjectNodeData data = node.Tag as ProjectNodeData; templateDisplaySurface.DisplayTemplateUI(true, data.Input, data.Settings as esSettings, data.Template, OnExecute, OnCancel); splitContainer.Panel1Collapsed = false; splitContainer.Panel2Collapsed = true; isDirty = true; } catch (Exception ex) { this.MainWindow.ShowError(ex); } finally { EnableToolbarButtons(true); this.Cursor = origCursor; } }
private void buttonRecordOk_Click(object sender, EventArgs e) { Cursor origCursor = this.Cursor; try { this.Cursor = Cursors.WaitCursor; this.MainWindow.HideErrorOrStatusMessage(); TemplateDisplaySurface templateDisplaySurface = new TemplateDisplaySurface(); Template template = this.tree.SelectedNode.Tag as Template; templateDisplaySurface.DisplayTemplateUI(false, null, this.Settings, template, OnExecute, OnCancel); splitContainer.Panel1Collapsed = false; splitContainer.Panel2Collapsed = true; isDirty = true; } catch (Exception ex) { this.MainWindow.ShowError(ex); } finally { EnableToolbarButtons(true); this.Cursor = origCursor; } }