コード例 #1
0
 private void MenuItem_Click_Preferences(object sender, RoutedEventArgs e)
 {
     frmPageSettings frm = new frmPageSettings();
     if (frm.ShowDialog() == true)
     {
         //TODO..
     }
     else
     {
         //TODO..
     }
 }
コード例 #2
0
 private void MenuItem_Click_Options(object sender, RoutedEventArgs e)
 {
     frmPageSettings settings = new frmPageSettings();
     if (settings.ShowDialog() == true)
     {
         MessageBox.Show("You have set the page settings!");
     }
 }