private void PawnSaveAndClose(object sender, RoutedEventArgs e) { pawnactionselector = new Shell.Controls.PawnActionSelector(PartyId, 1000, Employee); RenewRedeemTab.Content = pawnactionselector; Tabs.SelectedIndex = 2; pawneditor = new PawnEditor(PartyId, Employee); PawnTab.Content = pawneditor; }
public ActionTabs(int partyid, int employeeid) { PartyId = partyid; Employee = employeeid; pawneditor = new PawnEditor(partyid, employeeid); purchaseeditor = new PurchaseEditor(partyid, employeeid); pawnactionselector = new Shell.Controls.PawnActionSelector(partyid, 1000, employeeid); InitializeComponent(); PawnTab.Content = pawneditor; PurchaseTab.Content = purchaseeditor; RenewRedeemTab.Content = pawnactionselector; RenewRedeemTab.AddHandler(PawnActionSelector.PawnSelectedEvent, new RoutedEventHandler(PawnSelected)); PawnTab.AddHandler(PawnEditor.PawnSaveAndCloseEvent, new RoutedEventHandler(PawnSaveAndClose)); Tabs.SelectedIndex = 2; }
private void PawnSelected(object sender, RoutedEventArgs e) { Tabs.SelectedIndex = 0; pawneditor = new PawnEditor((int)e.OriginalSource, "edit", Employee); PawnTab.Content = pawneditor; }