Ejemplo n.º 1
0
        /// <summary>
        /// 编辑车辆信息
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void EditClick(object sender, RoutedEventArgs e)
        {
            //获取当前数据传给修改窗口
            Car       car       = this.carDataGrid.SelectedItem as Car;
            CarWindow carWindow = new CarWindow(carViewModel, "Update", car);

            carWindow.WindowStartupLocation = WindowStartupLocation.CenterScreen;
            carWindow.Show();
        }