/// <summary> /// 点击菜单项:打印机设置,打开打印机设置对话框 /// </summary> private void PrintSet() { var model = new PrintModel(); var view = model.view; SubCloseEvent(view); view.Confirm.Click += (sender, args) => { model.Save(); CloseDialog(view); }; view.ShowDialog(); }