コード例 #1
0
        /// <summary>
        /// 添加记录
        /// </summary>
        private void BtnInsert_Click(object sender)
        {
            // NavigationService.Navigate(new Uri("/Views/Maintenance/RFIDAddView.xaml", UriKind.RelativeOrAbsolute));
            EquipmentEditView view = new EquipmentEditView(null);

            view.ShowDialog();
            BtnSearch_Click(null);
        }
コード例 #2
0
 /// <summary>
 /// 修改记录
 /// </summary>
 private void BtnUpdate_Click(object sender)
 {
     if (View.DGSelect.SelectedItem == null)
     {
         MessageBox.Show("请选择要修改的记录!");
     }
     foreach (var item in View.DGSelect.Items)
     {
         if (View.DGSelect.SelectedItem == item)
         {
             ZNC.DataEntiry.Equipment model = item as ZNC.DataEntiry.Equipment;
             //FuncModule gnmk = (FuncModule)sender;
             EquipmentEditView view = new EquipmentEditView(model);
             view.ShowDialog();
             BtnSearch_Click(null);
         }
     }
 }
コード例 #3
0
 internal void PageLoad(object sender, RoutedEventArgs e)
 {
     View = (EquipmentEditView)sender;
 }
コード例 #4
0
 public void OpenEditEquipment()
 {
     _editView = new EquipmentEditView();
     _editView.ShowDialog();
 }