private void editActionForTheNeedyButton_Click(object sender, RoutedEventArgs e) { if (actionfortheneedyGrid.SelectedIndex != -1) { var naz = (WpfApplicationEntity.API.Action_for_the_needy)actionfortheneedyGrid.SelectedItem; Forms.ActionForTheNeedy g = new Forms.ActionForTheNeedy(false, naz.ID); g.ShowDialog(); this.ShowAll(); } }
private void addActionForTheNeedyButton_Click(object sender, RoutedEventArgs e) { Forms.ActionForTheNeedy g = new Forms.ActionForTheNeedy(true); g.ShowDialog(); this.ShowAll(); }