Exemplo n.º 1
0
        private void btnAdd_Click(object sender, RoutedEventArgs e)
        {
            EditRouletteAwardItemWindow win = new EditRouletteAwardItemWindow(App.GameRouletteVMObject.ListAllRouletteAwardItems.Count);

            win.ShowDialog();
            if (win.IsOK)
            {
                App.GameRouletteVMObject.AsyncGetAllAwardItems();
            }
        }
Exemplo n.º 2
0
        private void btnUpdate_Click(object sender, RoutedEventArgs e)
        {
            Button btn = sender as Button;
            RouletteAwardItemUIModel awarditem = btn.DataContext as RouletteAwardItemUIModel;

            if (awarditem != null)
            {
                EditRouletteAwardItemWindow win = new EditRouletteAwardItemWindow(awarditem);
                win.ShowDialog();
                if (win.IsOK)
                {
                    App.GameRouletteVMObject.AsyncGetAllAwardItems();
                }
            }
        }