如何在C#中编写Close()实现?

时间:2019-01-24 04:09:50

标签: c# wpf mvvm

string msg = "saved";
System.Windows.Forms.DialogResult msgResult = MessageBoxDisplay.Show(msg, System.Windows.Forms.MessageBoxButtons.YesNo, System.Windows.Forms.MessageBoxIcon.Information);
if (msgResult == System.Windows.Forms.DialogResult.No)
{
  this.Close(); 
}

现在,我应该在下面的close方法中写些什么。

private void Close()
{

  throw new NotImplementedException();
}

0 个答案:

没有答案