public AddOrChangeOtherDocumentation(DocumentsContext db) { InitializeComponent(); this.db = db; otherDoc = new Model.OtherDocumentation(); btnModify.Content = "Добавить"; }
private void changeRowVKR(object sender, RoutedEventArgs e) { Model.OtherDocumentation itemFocus = otherDocGrid.SelectedValue as Model.OtherDocumentation; AddOrChangeOtherDocumentation changePractical = new AddOrChangeOtherDocumentation(itemFocus, db); changePractical.ShowDialog(); LoadOtherDoc(); FindCount(); }
public AddOrChangeOtherDocumentation(Model.OtherDocumentation otherDoc, DocumentsContext db) { InitializeComponent(); this.otherDoc = otherDoc; this.db = db; btnModify.Content = "Изменить"; textBlockLocation.Text = otherDoc.Location; textBlockShelfLife.Text = otherDoc.ShelfLife.ToString(); textBlockTypeDoc.Text = otherDoc.TypeDocumentation; textBlockDateDeposit.Text = otherDoc.DateDeposit.ToString(); }