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