예제 #1
0
        private void RestoreDefaultLayout( )
        {
            AssertViewer Window1 = new AssertViewer();

            Window1.Show(MainDockPanel);

            Hierarchy Window2 = new Hierarchy();

            Window2.Show(MainDockPanel);

            PreviewWindow Window3 = new PreviewWindow();

            Window3.Show(MainDockPanel);

            PropertyWindow Window4 = new PropertyWindow();

            Window4.Show(MainDockPanel);

            mViewwindow = new ViewWindow();
            mViewwindow.Show(MainDockPanel);
        }
예제 #2
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);
        }