private void OnPageFlagsChanged(object sender, KryptonPageFlagsEventArgs e) { // Get access to the Flags property MemberDescriptor propertyFlags = TypeDescriptor.GetProperties(_page)["Flags"]; // Notify that the flags property has been updated RaiseComponentChanging(propertyFlags); RaiseComponentChanged(propertyFlags, null, null); }
private void OnPageFlagsChanged(object sender, KryptonPageFlagsEventArgs e) { // Ignore call as view builder is already destructed if (!IsDisposed && (_viewBuilder != null)) { // Change to page flags state means we remove the popup page DismissPopups(); // Cast to correct type KryptonPage page = (KryptonPage)sender; // Inform the current view builder of flags change _viewBuilder.PageFlagsChanged(page, e.Flags); } }