예제 #1
0
 private void EditResource_Click(object sender, RoutedEventArgs e)
 {
     using (var db = new ResourceModel())
     {
         MessageBox.Show(db.EditResource(db.ConvertorObjectInInt(DGR.SelectedValue),
                                         TB_Title.Text,
                                         Convert.ToDateTime(DT_DateStart.SelectedDate),
                                         Convert.ToDateTime(DT_DateEnd.SelectedDate),
                                         db.ConvertorObjectInInt(CB_People.SelectedValue)));
     }
     Update();
 }