private void FileButton_Click(object sender, EventArgs e) { if (sender == btnOpen) { ActiveChild.Open(); } else if (sender == btnSave) { ActiveChild.Save(); } else if (sender == btnSaveAs) { ActiveChild.SaveAs(); } else if (sender == btnPrint) { ActiveChild.Print(); } else if (sender == btnPrintPreview) { ActiveChild.PrintPreview(); } else { throw new NotImplementedException(); } }
private void Group3_Click(object sender, EventArgs e) { if (sender == btnNew3) { New(); } else if (sender == btnOpen3) { ActiveChild.Open(); } else if (sender == btnSave3) { ActiveChild.Save(); } else if (sender == btnSaveAs3) { ActiveChild.SaveAs(); } else if (sender == btnPrepare3) { new AppInfoException("Prepare not completed yet").ThrowAndForget(); } else if (sender == btnPublish3) { new AppInfoException("Publish not completed yet").ThrowAndForget(); } else if (sender == btnSend3) { string to = SettingsTable.Get <string>(Strings.VScan_Email_To, "*****@*****.**"); string subject = SettingsTable.Get <string>(Strings.VScan_Email_Subject, "VScan issue"); string body = SettingsTable.Get <string>(Strings.VScan_Email_Body, "Dear Support"); Process.Start(new ProcessStartInfo(string.Format("mailto:{0}?subject={1}&body={2}", to, subject, body))); } else if (sender == btnClose3) { Close(); } else if (sender == btnQuickPrint3)//print { ActiveChild.Print(); } else if (sender == btnAdvancePrint3)// set printer { ActiveChild.SetupAndPrint(); } else if (sender == btnPrintPreview3)//preview { ActiveChild.PrintPreview(); } else { throw new NotImplementedException(); } }