コード例 #1
0
        private void addDeposit_menuClick(object sender, RoutedEventArgs e)
        {
            var win = new Windows.AddEditDeposit();

            win.customer = customer;
            win.ShowDialog();
        }
コード例 #2
0
        private void editDeposit_menuItem(object sender, RoutedEventArgs e)
        {
            if (list_deposits.SelectedIndex < 0)
            {
                return;
            }

            var win = new Windows.AddEditDeposit();

            win.customer = customer;
            win.deposit  = (Deposit)list_deposits.SelectedItem;
            win._bank    = win.deposit.Bank;
            win._date    = win.deposit.Date;
            win._value   = win.deposit.Value;
            win.ShowDialog();
        }