private void NewItemActionRequirementDialog() { Window_ItemActionRequirement window = new Window_ItemActionRequirement ( null, null, null, NounId, ParagraphStateId, (win) => { Window_ItemActionRequirement wWin = win as Window_ItemActionRequirement; if (wWin != null) GinTubBuilderManager.CreateItemActionRequirement ( wWin.ItemActionRequirementItem.Value, wWin.ItemActionRequirementAction.Value ); } ); window.Show(); }
private void Button_UpdateItemActionRequirement_Click(object sender, RoutedEventArgs e) { Window_ItemActionRequirement window = new Window_ItemActionRequirement ( m_userControl_actionItemActionRequirement.ItemActionRequirementId, m_userControl_actionItemActionRequirement.ItemActionRequirementItem, m_userControl_actionItemActionRequirement.ItemActionRequirementAction, NounId, ParagraphStateId, (win) => { Window_ItemActionRequirement wWin = win as Window_ItemActionRequirement; if (wWin != null) GinTubBuilderManager.UpdateItemActionRequirement ( wWin.ItemActionRequirementId.Value, wWin.ItemActionRequirementItem.Value, wWin.ItemActionRequirementAction.Value ); } ); window.Show(); }