Ejemplo n.º 1
0
 /// <summary>
 /// 修改
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 private void btn_edit_Click(object sender, RoutedEventArgs e)
 {
     if (LB_Model.SelectedIndex < 0)
     {
         viewModel.ErrorMessage = "请先选择一项";
     }
     else
     {
         FunPage.ReaderImageEdit window = new FunPage.ReaderImageEdit();
         window.viewModel.ReaderAdModel = viewModel.ReaderList[LB_Model.SelectedIndex];
         window.viewModel.IsEdit        = true;
         window.ShowDialog();
         GetDate();
     }
 }
Ejemplo n.º 2
0
 /// <summary>
 /// 创建
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 private void btn_new_Click(object sender, RoutedEventArgs e)
 {
     FunPage.ReaderImageEdit window = new FunPage.ReaderImageEdit();
     window.ShowDialog();
     GetDate();
 }