private void MdiToolBar_ButtonClick(object sender, System.Windows.Forms.ToolBarButtonClickEventArgs e) { if (e.Button == toolbarButtonNew) { this.openNewJhdFile(); } else if (e.Button == toolbarButtonOpen) { this.openJhdFile(); } else if (e.Button == toolbarButtonSave) { MhoraChild curr = (MhoraChild)this.ActiveMdiChild; if (null == curr) { return; } curr.saveJhdFile(); } else if (e.Button == toolbarButtonHelp) { Form dlg = new AboutMhora(); dlg.ShowDialog(); } else if (e.Button == toolbarButtonPrint) { MhoraChild mc = this.ActiveMdiChild as MhoraChild; if (mc != null) { mc.menuPrint(); } } else if (e.Button == toolbarButtonPreview) { MhoraChild mc = this.ActiveMdiChild as MhoraChild; if (mc != null) { mc.menuPrintPreview(); } } else if (e.Button == toolbarButtonDob) { MhoraChild mc = this.ActiveMdiChild as MhoraChild; if (mc != null) { mc.menuShowDobOptions(); } } else if (e.Button == toolbarButtonDisp) { this.showMenuGlobalDisplayPrefs(); } }
private void menuItemHelpAboutMhora_Click(object sender, System.EventArgs e) { Form dlg = new AboutMhora(); dlg.ShowDialog(); }