void OnLayoutManagerAfterLoad(object sender, EventArgs e) { ViewModelLayoutData layoutData = ViewModelLayoutData.GetLayoutData(); ShowViewCaption = layoutData.CurrentCustomerRentsEditShowViewCaption; GridUIOptions = layoutData.CurrentCustomerRentsEditGridUIOptions; }
void OnLayoutManagerAfterLoad(object sender, EventArgs e) { ViewModelLayoutData layoutData = ViewModelLayoutData.GetLayoutData(); GridView = layoutData.MoviesEditGridView; GridUIOptions = layoutData.MoviesEditGridUIOptions; }
void OnLayoutManagerBeforeSave(object sender, EventArgs e) { ViewModelLayoutData layoutData = ViewModelLayoutData.GetLayoutData(); layoutData.MovieCategoriesEditChartPaletteName = ChartPaletteName; layoutData.MovieCategoriesEditChartMarkerSize = ChartMarkerSize; layoutData.MovieCategoriesEditChartMarkerAngle = ChartMarkerAngle; layoutData.MovieCategoriesEditChartMarkerKindName = ChartMarkerKindName; }
public static ViewModelLayoutData GetLayoutData() { XPCollection <ViewModelLayoutData> layoutDataCollection = LayoutManager.Current.GetLayoutData <ViewModelLayoutData>(); if (layoutDataCollection.Count != 0) { return(layoutDataCollection[0]); } ViewModelLayoutData layoutData = new ViewModelLayoutData(VideoRentCurrentUser.GetCurrentUser(LayoutManager.Current.Session)); LayoutManager.Current.LayoutData.Add(layoutData); return(layoutData); }
void OnLayoutManagerBeforeSave(object sender, EventArgs e) { ViewModelLayoutData.GetLayoutData().CurrentCustomerOid = CurrentCustomerOid; }
void OnLayoutManagerAfterLoad(object sender, EventArgs e) { CurrentCustomerOid = ViewModelLayoutData.GetLayoutData().CurrentCustomerOid; }
void OnLayoutManagerBeforeSave(object sender, EventArgs e) { ViewModelLayoutData layoutData = ViewModelLayoutData.GetLayoutData(); layoutData.CurrentCustomerRentsEditShowViewCaption = ShowViewCaption; }
void OnLayoutManagerBeforeSave(object sender, EventArgs e) { ViewModelLayoutData layoutData = ViewModelLayoutData.GetLayoutData(); }
void OnLayoutManagerBeforeSave(object sender, EventArgs e) { ViewModelLayoutData layoutData = ViewModelLayoutData.GetLayoutData(); layoutData.MoviesEditGridView = GridView; }