Exemple #1
0
        private void btnAddItem_Click(object sender, RoutedEventArgs e)
        {
            EditVirtualShoppingItemWindow win = new EditVirtualShoppingItemWindow();

            win.Closed += win_Closed;
            win.ShowDialog();
        }
Exemple #2
0
        private void btnUpdateItem_Click(object sender, RoutedEventArgs e)
        {
            if (this.dgRecords.SelectedItem == null)
            {
                MessageBox.Show("请选择需要修改的虚拟商品");
                return;
            }

            VirtualShoppingItemUIModel item = this.dgRecords.SelectedItem as VirtualShoppingItemUIModel;

            if (item == null)
            {
                MessageBox.Show("请选择需要修改的虚拟商品");
                return;
            }

            EditVirtualShoppingItemWindow win = new EditVirtualShoppingItemWindow(item);

            win.Closed += win_Closed;
            win.ShowDialog();
        }