顯示具有 c sharp 標籤的文章。 顯示所有文章
顯示具有 c sharp 標籤的文章。 顯示所有文章

2012年11月22日 星期四

MessageBox for confirmation

Code snipplet:


 var messageBoxResult = MessageBox.Show(AppResources.TextDeleteConfrimation,  
             AppResources.TextDelete, MessageBoxButton.OKCancel);  
 if (messageBoxResult == MessageBoxResult.OK)  
 {  
   DeleteSomething();  
 }