Пример #1
0
        private IDockContent LayoutLoadCallback(string PersistString)
        {
            Assembly     assembly = Assembly.GetExecutingAssembly();
            IDockContent obj      = (IDockContent)assembly.CreateInstance(PersistString);

            if (obj != null)
            {
                if (obj.GetType() == typeof(ViewWindow))
                {
                    mViewwindow = (ViewWindow)obj;
                }
                else if (obj.GetType() == typeof(PropertyWindow))
                {
                    mPropertyWindow = (PropertyWindow)obj;
                }



                return(obj);
            }


            return(null);
        }
Пример #2
0
        public ViewWindow( )
        {
            mInstance = this;

            InitializeComponent();
        }