private void resultsToolStripMenuItem_Click(object sender, EventArgs e) { if (_rf.IsHidden) { _rf.Show(); } else { _rf.Hide(); } }
private void InitializeControls() { _dnf = new DatabaseNavigationForm(); _dnf.Text = "Database Navigation"; _dnf.Show(dockPanel, DockState.DockLeft); _dnf.Icon = global::iCodeGenerator.iCodeGeneratorGui.Properties.Resources.idb; _dnf.TableSelected += DnfTableSelected; _dnf.DatabaseSelected += DnfDatabaseSelected; _dnf.ColumnSelected += DnfColumnSelected; _dnf.HideOnClose = true; _sf = new SnippetsForm(); _sf.Text = "Snippets"; _sf.SnippetSelected += SfSnippetSelected; _sf.Show(dockPanel, DockState.DockLeftAutoHide); _sf.Icon = global::iCodeGenerator.iCodeGeneratorGui.Properties.Resources.isnippet; _sf.HideOnClose = true; _df = new DocumentForm(); _df.Text = "Template"; _df.Show(dockPanel, DockState.Document); _df.Icon = global::iCodeGenerator.iCodeGeneratorGui.Properties.Resources.itemplate; _df.HideOnClose = true; _rf = new ResultForm(); _rf.Text = "Results"; _rf.Show(dockPanel, DockState.Document); _rf.Icon = global::iCodeGenerator.iCodeGeneratorGui.Properties.Resources.iresult; _rf.HideOnClose = true; _pf = new PropertiesForm(); _pf.Text = "Properties"; _pf.Show(dockPanel, DockState.DockRight); _pf.Icon = global::iCodeGenerator.iCodeGeneratorGui.Properties.Resources.igen; _pf.HideOnClose = true; _cvf = new CustomValuesForm(); _cvf.Text = "Custom Values"; _cvf.Show(dockPanel, DockState.DockRight); _cvf.Icon = global::iCodeGenerator.iCodeGeneratorGui.Properties.Resources.icustom; _cvf.HideOnClose = true; }
private void InitializeControls() { _dnf = new DatabaseNavigationForm(); _dnf.Text = "Database Navigation"; _dnf.Show(dockPanel, DockState.DockLeft); _dnf.Icon = Icon.ExtractAssociatedIcon(@"idb.ico"); _dnf.TableSelected += DnfTableSelected; _dnf.DatabaseSelected += DnfDatabaseSelected; _dnf.ColumnSelected += DnfColumnSelected; _dnf.HideOnClose = true; _sf = new SnippetsForm(); _sf.Text = "Snippets"; _sf.SnippetSelected += SfSnippetSelected; _sf.Show(dockPanel, DockState.DockLeftAutoHide); _sf.Icon = Icon.ExtractAssociatedIcon(@"isnippet.ico"); _sf.HideOnClose = true; _df = new DocumentForm(); _df.Text = "Template"; _df.Show(dockPanel, DockState.Document); _df.Icon = Icon.ExtractAssociatedIcon(@"itemplate.ico"); _df.HideOnClose = true; _rf = new ResultForm(); _rf.Text = "Results"; _rf.Show(dockPanel, DockState.Document); _rf.Icon = Icon.ExtractAssociatedIcon(@"iresult.ico"); _rf.HideOnClose = true; _pf = new PropertiesForm(); _pf.Text = "Properties"; _pf.Show(dockPanel, DockState.DockRight); _pf.Icon = Icon.ExtractAssociatedIcon(@"igen.ico"); _pf.HideOnClose = true; _cvf = new CustomValuesForm(); _cvf.Text = "Custom Values"; _cvf.Show(dockPanel, DockState.DockRight); _cvf.Icon = Icon.ExtractAssociatedIcon(@"icustom.ico"); _cvf.HideOnClose = true; }