Esempio n. 1
0
        public static ViewBookmark Create(string name, ViewBookmarkType type)
        {
            ViewBookmark viewBookmark = ViewBookmark.Create();

            viewBookmark.Name             = name;
            viewBookmark.AccessOrder      = 0;
            viewBookmark.ViewBookmarkType = type;
            return(viewBookmark);
        }
Esempio n. 2
0
        public static ViewBookmark Create(View markedView)
        {
            if (markedView == null)
            {
                throw new ArgumentNullException("markedView");
            }
            ViewBookmark viewBookmark = ViewBookmark.Create(markedView.Name, ExtensionMethods.GetBookmarkType((ViewElement)markedView));

            viewBookmark.DockedHeight = markedView.DockedHeight;
            viewBookmark.DockedWidth  = markedView.DockedWidth;
            return(viewBookmark);
        }