//public void OnAfterNewView( CswNbtView NewView ) //{ // CswViewListTree.ClearCache( Session ); //} public void OnAfterEditView(CswNbtView NewView) { if (NewView.Visibility != CswEnumNbtViewVisibility.Property) { CswViewListTree.ClearCache(Session); } Master.CswNbtResources.ViewSelect.removeSessionView(NewView); }
public void OnBeforeDeleteView(CswNbtView ViewToDelete) { if (ViewToDelete != null) { while (PreviousView1 is CswNbtView && (CswNbtView)PreviousView1 == ViewToDelete) { PreviousView1 = PreviousView2; PreviousView2 = PreviousView3; PreviousView3 = PreviousView4; PreviousView4 = PreviousView5; PreviousView5 = null; } while (PreviousView2 is CswNbtView && (CswNbtView)PreviousView2 == ViewToDelete) { PreviousView2 = PreviousView3; PreviousView3 = PreviousView4; PreviousView4 = PreviousView5; PreviousView5 = null; } while (PreviousView3 is CswNbtView && (CswNbtView)PreviousView3 == ViewToDelete) { PreviousView3 = PreviousView4; PreviousView4 = PreviousView5; PreviousView5 = null; } while (PreviousView4 is CswNbtView && (CswNbtView)PreviousView4 == ViewToDelete) { PreviousView4 = PreviousView5; PreviousView5 = null; } if (PreviousView5 is CswNbtView && (CswNbtView)PreviousView5 == ViewToDelete) { PreviousView5 = null; } } CswViewListTree.ClearCache(Session); }