예제 #1
0
 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;
 }
예제 #2
0
 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;
 }
예제 #3
0
        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;
        }
예제 #4
0
        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;
        }
예제 #5
0
 private void PawnSelected(object sender, RoutedEventArgs e)
 {
     Tabs.SelectedIndex = 0;
     pawneditor = new PawnEditor((int)e.OriginalSource, "edit", Employee);
     PawnTab.Content = pawneditor;
 }
예제 #6
0
 private void PawnSelected(object sender, RoutedEventArgs e)
 {
     Tabs.SelectedIndex = 0;
     pawneditor         = new PawnEditor((int)e.OriginalSource, "edit", Employee);
     PawnTab.Content    = pawneditor;
 }