Exemple #1
0
 private void btn_Change_Click(object sender, RoutedEventArgs e)
 {
     if (dgv_1.SelectedItem == null)
     {
         MessageBox.Show("请先选中一条数据!");
     }
     else
     {
         LEDEntity led       = (LEDEntity)dgv_1.SelectedItem;
         WinLedAdd winLedAdd = new WinLedAdd(led.Id);
         winLedAdd.ShowDialog();
         Query();
     }
 }
Exemple #2
0
        /// <summary>
        /// todo:新增
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void BtnAdd_Click(object sender, RoutedEventArgs e)
        {
            WinLedAdd winLedAdd = new WinLedAdd(null);

            winLedAdd.ShowDialog();
        }