void OnLayoutManagerAfterLoad(object sender, EventArgs e)
        {
            ViewModelLayoutData layoutData = ViewModelLayoutData.GetLayoutData();

            ShowViewCaption = layoutData.CurrentCustomerRentsEditShowViewCaption;
            GridUIOptions   = layoutData.CurrentCustomerRentsEditGridUIOptions;
        }
示例#2
0
        void OnLayoutManagerAfterLoad(object sender, EventArgs e)
        {
            ViewModelLayoutData layoutData = ViewModelLayoutData.GetLayoutData();

            GridView      = layoutData.MoviesEditGridView;
            GridUIOptions = layoutData.MoviesEditGridUIOptions;
        }
示例#3
0
        void OnLayoutManagerBeforeSave(object sender, EventArgs e)
        {
            ViewModelLayoutData layoutData = ViewModelLayoutData.GetLayoutData();

            layoutData.MovieCategoriesEditChartPaletteName    = ChartPaletteName;
            layoutData.MovieCategoriesEditChartMarkerSize     = ChartMarkerSize;
            layoutData.MovieCategoriesEditChartMarkerAngle    = ChartMarkerAngle;
            layoutData.MovieCategoriesEditChartMarkerKindName = ChartMarkerKindName;
        }
示例#4
0
        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);
        }
示例#5
0
 void OnLayoutManagerBeforeSave(object sender, EventArgs e)
 {
     ViewModelLayoutData.GetLayoutData().CurrentCustomerOid = CurrentCustomerOid;
 }
示例#6
0
 void OnLayoutManagerAfterLoad(object sender, EventArgs e)
 {
     CurrentCustomerOid = ViewModelLayoutData.GetLayoutData().CurrentCustomerOid;
 }
        void OnLayoutManagerBeforeSave(object sender, EventArgs e)
        {
            ViewModelLayoutData layoutData = ViewModelLayoutData.GetLayoutData();

            layoutData.CurrentCustomerRentsEditShowViewCaption = ShowViewCaption;
        }
示例#8
0
 void OnLayoutManagerBeforeSave(object sender, EventArgs e)
 {
     ViewModelLayoutData layoutData = ViewModelLayoutData.GetLayoutData();
 }
示例#9
0
        void OnLayoutManagerBeforeSave(object sender, EventArgs e)
        {
            ViewModelLayoutData layoutData = ViewModelLayoutData.GetLayoutData();

            layoutData.MoviesEditGridView = GridView;
        }