private void ShowDelWindow(object sender)
        {
            string s = sender.ToString();

            ControllerCenter.Model.CommPortModel obj = _commPortModelService.GetById(int.Parse(s));
            _commPortModelService.Delete(obj);
            BindDate();
        }
Exemple #2
0
 public void Show()
 {
     _model       = _commPortModelService.GetById(_model.Id);
     this.Closed += ChildWindow_Closed;
     ChildWindowManager.Instance.ShowChildWindow(new Edit()
     {
         DataContext = this
     });
 }