private void Button_UpdateItem_Click(object sender, RoutedEventArgs e) { Window_Item window = new Window_Item ( m_userControl_item.ItemId, m_userControl_item.ItemName, m_userControl_item.ItemDescription, (win) => { Window_Item wWin = win as Window_Item; if(wWin != null) GinTubBuilderManager.UpdateItem(wWin.ItemId.Value, wWin.ItemName, wWin.ItemDescription); } ); window.Show(); }
private void NewItemDialog() { Window_Item window = new Window_Item ( null, null, null, (win) => { Window_Item wWin = win as Window_Item; if (wWin != null) GinTubBuilderManager.CreateItem(wWin.ItemName, wWin.ItemDescription); } ); window.Show(); }