Ejemplo n.º 1
0
 private void MenuItemDelete_Click(object sender, RoutedEventArgs e)
 {
     if (System.Windows.MessageBox.Show("You're about to delete page " + mCurrentPage.PageName +
                                        ". You can undo this if changes are synchronized with Dropbox.", "Ema Personal Wiki states", MessageBoxButton.OKCancel) == MessageBoxResult.OK)
     {
         mDal.SavePage(mCurrentPage.PageName, string.Empty);
     }
 }
 private void button1_Click(object sender, RoutedEventArgs e)
 {
     _dal.SavePage(_pageName, textBox1.Text);
     Close();
 }