Exemple #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);
        }
        public ViewWindow( )
        {
            mInstance = this;

            InitializeComponent();
        }