private void HealingEditBtn_Click(object sender, RoutedEventArgs e) { Button button = sender as Button; var dataContext = button.DataContext; HealRule healrule = (HealRule)dataContext; windowHealRuleWindow = new HealerAddEditHealRule(healrule); windowHealRuleWindow.Owner = this; windowHealRuleWindow.ShowDialog(); }
private void HealerNewRule_Click(object sender, RoutedEventArgs e) { windowHealRuleWindow = new HealerAddEditHealRule(); windowHealRuleWindow.Owner = this; windowHealRuleWindow.ShowDialog(); }