Example #1
0
 private void Edit_Click(object sender, RoutedEventArgs e)
 {
     if (this.DisposeList.SelectedItem as EF.DAL.EFModel.Dispose != null)
     {
         Tan tan = new Tan(this.DisposeList.SelectedItem as EF.DAL.EFModel.Dispose);
         tan.Show();
     }
     else
     {
         MessageBox.Show("请选择一列", "提醒:");
     }
 }
Example #2
0
        private void AddModel_Click(object sender, RoutedEventArgs e)
        {
            //try
            //{
            Tan tan = new Tan("DisposeAdd");

            tan.Show();
            //}
            //catch (Exception g)
            //{
            //    MessageBox.Show(g.Message,"异常:");
            //}
        }