private void Button_UpdateVerb_Click(object sender, RoutedEventArgs e) { Window_Verb window = new Window_Verb ( m_userControl_verb.VerbId, m_userControl_verb.VerbName, m_userControl_verb.VerbTypeId, (win) => { Window_Verb wWin = win as Window_Verb; if (wWin != null) GinTubBuilderManager.UpdateVerb(wWin.VerbId.Value, wWin.VerbName, wWin.VerbTypeId); } ); window.Show(); }
private void NewVerbDialog() { Window_Verb window = new Window_Verb ( null, null, VerbTypeId, (win) => { Window_Verb wWin = win as Window_Verb; if (wWin != null) GinTubBuilderManager.CreateVerb(wWin.VerbName, wWin.VerbTypeId); } ); window.Show(); }