private void OnModifyCommand()
 {
     if (SelectFileTypeEntity != null)
     {
         FileTypeWindow fileTypeWindow = new FileTypeWindow(SelectFileTypeEntity);
         fileTypeWindow.Closed += fileTypeWindowOnModify_Closed;
         fileTypeWindow.Show();
     }
 }
 private void OnAddCommand()
 {
     AddFileTypeEntity = new FileTypeEntity();
     AddFileTypeEntity.FileType = new ProductManager.Web.Model.filetype();
     FileTypeWindow fileTypeWindow = new FileTypeWindow(AddFileTypeEntity);
     fileTypeWindow.Closed += fileTypeWindow_Closed;
     fileTypeWindow.Show();
 }