void Create()
 {
     Window EditWindow = new EditWindowPro(manager, EditWindowClass);
     EditWindow.Show();
 }
 void Edit()
 {
     Window EditWindow = new EditWindowPro(manager, EditWindowClass, dgItems.SelectedItem as EntityObject);
     EditWindow.Show();
 }
 void Edit()
 {
     if (dgItems.SelectedItem != null)
     {
         Window EditWindow = new EditWindowPro(manager, manager.EditWindow, dgItems.SelectedItem as EntityObject);
         EditWindow.Show();
         Refresh();
     }
 }