Ejemplo n.º 1
0
        public PageVM()
        {
            Name = "Page";

            _pagePosition    = new PagePositionVM();
            _backgroundColor = Colors.White;

            properties.Add(new PropertyWrapper(this, typeof(PageVM).GetProperty("PagePosition")));
        }
Ejemplo n.º 2
0
        public static PagePositionVM FromString(string str)
        {
            var            values = str.Split(';');
            PagePositionVM retVal = new PagePositionVM();

            try { retVal.RowIndex = values[0].ToInt() - 1; }
            catch (Exception) { }
            try { retVal.ColumnIndex = values[1].ToInt() - 1; }
            catch (Exception) { }
            return(retVal);
        }