예제 #1
0
        private void ButtonCashTransfer_Click(object sender, RoutedEventArgs e)
        {
            UserControl usc    = new UserControlReceipt(data, customer, "Cash transfer");
            var         parent = (Grid)this.Parent;

            parent.Children.Remove(this);
            parent.Children.Add(usc);
        }
예제 #2
0
        private void ButtonCheckBalance_Click(object sender, RoutedEventArgs e)
        {
            UserControl usc    = new UserControlReceipt(data, customer, "Balance check");
            var         parent = (Grid)this.Parent;

            parent.Children.Remove(this);
            parent.Children.Add(usc);
        }