Example #1
0
 public MovieCategoryDetail OpenNewCategoryDialog()
 {
     if (this.newCategoryDetail != null)
     {
         return(this.newCategoryDetail);
     }
     AllObjects <MovieCategory> .Set.Updated += OnMovieCategorySetUpdated;
     this.newCategoryDetail = (MovieCategoryDetail)ModulesManager.Current.OpenModuleObjectDetail(new MovieCategoryDetailObject(VRObjectEditObject.VideoRentObject.Session, null), true);
     this.newCategoryDetail.AfterDispose += OnNewCategoryDetailAfterDispose;
     return(this.newCategoryDetail);
 }
Example #2
0
 void OnNewCategoryDetailAfterDispose(object sender, EventArgs e)
 {
     this.newCategoryDetail = null;
     AllObjects <MovieCategory> .Set.Updated -= OnMovieCategorySetUpdated;
 }