Exemple #1
0
        private void cmdReturn_Click(object sender, RoutedEventArgs e)
        {
            var userCredit = (Models.UserCreditBalance)((FrameworkElement)sender).DataContext;

            if (null == userCredit)
            {
                return;
            }

            var win = new Windows.Collector.Credit.CollectorCreditReturnWindow();

            win.Owner = Application.Current.MainWindow;
            win.Title = userCredit.Description;
            win.Setup(_tsb, userCredit);
            if (win.ShowDialog() == false)
            {
                return;
            }

            if (null != ItemChanged)
            {
                ItemChanged.Call(this, System.EventArgs.Empty);
            }
            RefreshUserCredits();
        }