当前位置: 首页>>代码示例>>C#>>正文


C# DeserializeDockContent类代码示例

本文整理汇总了C#中DeserializeDockContent的典型用法代码示例。如果您正苦于以下问题:C# DeserializeDockContent类的具体用法?C# DeserializeDockContent怎么用?C# DeserializeDockContent使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。


DeserializeDockContent类属于命名空间,在下文中一共展示了DeserializeDockContent类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。

示例1: Main

        public Main()
        {
            InitializeComponent();

            MainMenuStrip.MdiWindowListItem = windowToolStripMenuItem;
            m_xmlNodeExplorer.RightToLeftLayout = RightToLeftLayout;
            m_serverExplorer.RightToLeftLayout = RightToLeftLayout;
            m_deserializeDockContent = new DeserializeDockContent(GetContentFromPersistString);
            m_serverExplorer.SQLServerSelected += new EventHandler<ServerTreeEventArgs>(m_serverExplorer_SQLServerSelected);
            m_serverExplorer.DBSelected += new EventHandler<DBTreeEventArgs>(m_serverExplorer_DBSelected);
            m_serverExplorer.DBUnSelected += new EventHandler<DBTreeEventArgs>(m_serverExplorer_DBUnSelected);
            m_serverExplorer.SchemaGenerationStarted += new EventHandler<DBTreeEventArgs>(m_serverExplorer_SchemaGenerationStarted);
            m_serverExplorer.SchemaCompareStarted += new EventHandler<SchemaGeneratedEventArgs>(m_serverExplorer_SchemaCompareStarted);
            m_serverExplorer.SchemaGenerated += new EventHandler<DBTreeEventArgs>(m_serverExplorer_SchemaGenerated);
            m_serverExplorer.SchemaCompared += new EventHandler<SchemaGeneratedEventArgs>(m_serverExplorer_SchemaCompared);
            m_serverExplorer.TableSelected += new EventHandler<TableTreeEventArgs>(m_serverExplorer_TableSelected);
            m_serverExplorer.TableUnSelected += new EventHandler<TableTreeEventArgs>(m_serverExplorer_TableUnSelected);
            m_serverExplorer.TableCompareStarted += new EventHandler<TableTreeEventArgs>(m_serverExplorer_TableCompareStarted);
            dockPanel.ContentAdded += new EventHandler<DockContentEventArgs>(dockPanel_ContentAdded);
            dockPanel.ContentRemoved += new EventHandler<DockContentEventArgs>(dockPanel_ContentRemoved);
            dockPanel.ActiveDocumentChanged += new EventHandler(dockPanel_ActiveDocumentChanged);
            dockPanel.ActiveContentChanged += new EventHandler(dockPanel_ActiveContentChanged);
            windowToolStripMenuItem.DropDownItemClicked += new ToolStripItemClickedEventHandler(windowToolStripMenuItem_DropDownItemClicked);

            string appPath = Path.GetDirectoryName(Application.ExecutablePath);
            optionsFileName = Path.Combine(appPath, "options.config");
            configFileName = Path.Combine(appPath, "dockPanel.config");
            windowsSettingsFile = Path.Combine(appPath, "windows.config");

            btnHTML.Enabled = true;

            this.progressIndicator.Visible = false;
        }
开发者ID:ViniciusConsultor,项目名称:sqlschematool,代码行数:33,代码来源:Main.cs

示例2: CancerRiskView_Load

        private void CancerRiskView_Load(object sender, EventArgs e)
        {
            if (!ViewClosing)
            {
                theDockPanel.AllowEndUserDocking = SessionManager.Instance.AllowDockDragAndDrop;

                string configFile = SessionManager.SelectDockConfig("CancerRiskViewDockPanel.config");
                DeserializeDockContent m_deserializeDockContent = new DeserializeDockContent(GetContentFromPersistString);

                if (File.Exists(configFile))
                {
                    theDockPanel.LoadFromXml(configFile, m_deserializeDockContent);

                }
                else
                {
                    colorv = new ColoEndoCancerRiskView();
                    colorv.Show(theDockPanel);
                    colorv.DockState = WeifenLuo.WinFormsUI.Docking.DockState.Document;

                    bocrv = new BrOvCancerRiskView();
                    bocrv.Show(theDockPanel);
                    bocrv.DockState = WeifenLuo.WinFormsUI.Docking.DockState.Document;

                }

                bocrv.SetOvarianRiskVisibility(true);
            }
        }
开发者ID:mahitosh,项目名称:HRA4,代码行数:29,代码来源:CancerRiskView.cs

示例3: Main

        public Main()
        {
            InitializeComponent();

            this.MaximumSize = Screen.PrimaryScreen.WorkingArea.Size;
            this.dockContentLayout = new DeserializeDockContent(this.GetLayout);
        }
开发者ID:BroneKot,项目名称:PawnPlus,代码行数:7,代码来源:Main.cs

示例4: MainFrm

 //-------------------------------------------------------------------------------------------------------------------------------
 public MainFrm(string configFile)
 {
     InitializeComponent();
     this.configFile = configFile;
     //decerialization helper
     m_deserializeDockContent = new DeserializeDockContent(GetContentFromPersistString);
 }
开发者ID:VirusFree,项目名称:VFTerminal,代码行数:8,代码来源:MainFrm.cs

示例5: MainForm

		public MainForm()
		{
			InitializeComponent();

#if DockSample1 // todo		// eucaly, 151205
			SetSplashScreen();
#endif      // eucaly, 151205
			Text = "logPLot - program loading";		// Form Title		// eucaly, 151205
			CreateStandardControls();

			showRightToLeft.Checked = (RightToLeft == RightToLeft.Yes);
			RightToLeftLayout = showRightToLeft.Checked;
			// m_solutionExplorer.RightToLeftLayout = RightToLeftLayout;
			m_deserializeDockContent = new DeserializeDockContent(GetContentFromPersistString);
			
#if DockSample1 // todo		// eucaly, 151205
			vS2012ToolStripExtender1.DefaultRenderer = _toolStripProfessionalRenderer;
			vS2012ToolStripExtender1.VS2012Renderer = _vs2012ToolStripRenderer;
			vS2012ToolStripExtender1.VS2013Renderer = _vs2013ToolStripRenderer;
#endif      // eucaly, 151205

			this.topBar.BackColor = this.bottomBar.BackColor = Color.FromArgb(0xFF, 41, 57, 85);

			SetSchema(this.menuItemSchemaVS2013Blue, null);
		}
开发者ID:beZong,项目名称:bZmd,代码行数:25,代码来源:MainForm.cs

示例6: AdditionalCancerRiskFactorsView_Load

        private void AdditionalCancerRiskFactorsView_Load(object sender, EventArgs e)
        {
            if (!ViewClosing)
            {
                theDockPanel.AllowEndUserDocking = SessionManager.Instance.AllowDockDragAndDrop;

                string configFile = SessionManager.SelectDockConfig("AdditionalCancerRiskFactorsView.config");
                DeserializeDockContent m_deserializeDockContent = new DeserializeDockContent(GetContentFromPersistString);

                if (File.Exists(configFile))
                {
                    theDockPanel.LoadFromXml(configFile, m_deserializeDockContent);

                }
                else
                {
                    bcrf = new BreastCancerRiskFactors();
                    bcrf.Show(theDockPanel);
                    bcrf.DockState = DockState.Document;

                    ccrf = new ColonCancerRiskFactors();
                    ccrf.Show(theDockPanel);
                    ccrf.DockState = DockState.Document;
                }
            }
        }
开发者ID:mahitosh,项目名称:HRA4,代码行数:26,代码来源:AdditionalCancerRiskFactorsView.cs

示例7: SpriteForm

        public SpriteForm()
        {
            InitializeComponent();

            _currentPath = Extensions.CheckDirectorySeparator(Path.GetDirectoryName(Assembly.GetExecutingAssembly().Location));

            _spriteListWindow = new SpriteListWindow();
            _spriteListWindow.SpriteChanged += SpriteListWindowSpriteChanged;
            _spritePreviewWindow = new SpritePreviewWindow();
            _spriteDeltasWindow = new SpriteDeltasWindow();
            _spriteDeltasWindow.CheckedDeltaItemsChanged += SpriteDeltasWindowCheckedDeltaItemsChanged;
            _spriteRemapsWindow = new SpriteRemapsWindow();
            _spriteRemapsWindow.RemapChanged += SpriteRemapsWindowRemapChanged;

            _deserializeDockContent += DeserializeDockContent;

            var layoutFile = _currentPath + LayoutFile;
            try
            {
                dockPanel.LoadFromXml(layoutFile, _deserializeDockContent);
            }
            catch (Exception)
            {
                var stream = Assembly.GetAssembly(GetType()).GetManifestResourceStream(GetType().Namespace + ".Resources.SpriteFormDefaultLayout.xml");
                dockPanel.LoadFromXml(stream, _deserializeDockContent);
                if (stream != null)
                    stream.Close();
            }

            //Thread
            LoadPalette(_currentPath + Globals.GraphicsSubDir + Path.DirectorySeparatorChar + Globals.PaletteSuffix + Globals.TextureImageFormat);
            LoadSprites(_currentPath + Globals.GraphicsSubDir + Path.DirectorySeparatorChar + Globals.SpritesSuffix + Globals.XmlFormat);
            LoadDeltas(_currentPath + Globals.GraphicsSubDir + Path.DirectorySeparatorChar + Globals.DeltasSuffix + Globals.XmlFormat);
            CreateSpriteData(_spriteListWindow.TextureAltas);
        }
开发者ID:jpires,项目名称:gta2net,代码行数:35,代码来源:SpriteForm.cs

示例8: DiagnosticReportsView_Load

        private void DiagnosticReportsView_Load(object sender, EventArgs e)
        {
            if (!ViewClosing)
            {
                theDockPanel.AllowEndUserDocking = SessionManager.Instance.AllowDockDragAndDrop;
                string configFile = SessionManager.SelectDockConfig("RiskClinicDiagnosticReportsViewDockPanel.config");

                DeserializeDockContent m_deserializeDockContent = new DeserializeDockContent(GetContentFromPersistString);

                if (File.Exists(configFile))
                    theDockPanel.LoadFromXml(configFile, m_deserializeDockContent);
                else
                {
                    tv = new TestsView();
                    tv.InitialDx = InitialDx;
                    tv.Show(theDockPanel);
                    tv.DockState = WeifenLuo.WinFormsUI.Docking.DockState.Document;

                    ov = new OrdersView();
                    ov.Show(theDockPanel);
                    ov.DockState = WeifenLuo.WinFormsUI.Docking.DockState.Document;
                }

                patientRecordHeader1.setPatient(SessionManager.Instance.GetActivePatient());
            }
        }
开发者ID:mahitosh,项目名称:HRA4,代码行数:26,代码来源:DiagnosticReportsView.cs

示例9: FrmMain

        public FrmMain()
        {
            InitializeComponent();
            var splash = new FrmSplash();

              //      splash.Show();
            _deserializeDockContent = new DeserializeDockContent(GetContentFromPersistString);
        }
开发者ID:CommunityWorkshops,项目名称:EEDev-IDE,代码行数:8,代码来源:frmMain.cs

示例10: MainForm2

		public MainForm2() {
			InitializeComponent();
			showRightToLeft.Checked = ( RightToLeft == RightToLeft.Yes );
			RightToLeftLayout = showRightToLeft.Checked;
			m_solutionExplorer = new DummySolutionExplorer();
			m_solutionExplorer.RightToLeftLayout = RightToLeftLayout;
			m_deserializeDockContent = new DeserializeDockContent( GetContentFromPersistString );
		}
开发者ID:GodLesZ,项目名称:svn-dump,代码行数:8,代码来源:MainForm2.cs

示例11: MainForm

        public MainForm()
        {
            InitializeComponent();
			_deserializeDockContent = new DeserializeDockContent(GetContentFromPersistString);
            _threadList = new Dictionary<string, Thread>();
            _taskManagerList = new Dictionary<string, TaskManager>();
            _hasRemindDialog = false;
        }
开发者ID:jojozhuang,项目名称:Projects,代码行数:8,代码来源:MainForm.cs

示例12: MainForm

 public MainForm()
 {
     InitializeComponent();
     CreateMDIForm();
     //iReaperNotifyManager.InitSysIcon(this.components);
     Application.Idle += new EventHandler(Application_Idle);
     CoreData.CoreDataContent[CoreDataTypes.ApplicationForm] = this;
     this.deserializeDockContent = new DeserializeDockContent(GetContentFromPersistString);
 }
开发者ID:sunnysunhuajun,项目名称:BuilderCode,代码行数:9,代码来源:MainForm.cs

示例13: FormMain

        public FormMain()
        {
            InitializeComponent();
            this.Shown += FormMain_Shown;
            this.WindowState = FormWindowState.Maximized;
            CreateStandardControls();

            m_deserializeDockContent = new DeserializeDockContent(GetContentFromPersistString);
        }
开发者ID:SyedMdKamruzzaman,项目名称:sap_interface,代码行数:9,代码来源:FormMain.cs

示例14: LoadFromXml

 public static void LoadFromXml(DockPanel dockPanel, string fileName,
     DeserializeDockContent deserializeContent)
 {
     FileStream fs = new FileStream(fileName, FileMode.Open, FileAccess.Read);
     try{
         LoadFromXml(dockPanel, fs, deserializeContent);
     } finally{
         fs.Close();
     }
 }
开发者ID:hksonngan,项目名称:sharptracing,代码行数:10,代码来源:DockPanel.Persistor.cs

示例15: DataCreator

		public DataCreator()
		{
			DOMConfigurator.Configure();

			m_deserializeDockContent = new DeserializeDockContent(GetContentFromPersistString);
			InitializeComponent();
			_frmConnection.ChangedDBEvent+=new DBConnection.ChangedDBHandler( this.ChangeDB );
			_frmConnection.ChangedServerEvent += new DBConnection.ChangedServerHandler(this.ChangeServer);
			_frmTables.ScriptEvent+= new TableForm.ScriptHandler(HandleScript);
		}
开发者ID:netordead,项目名称:SqlInserter,代码行数:10,代码来源:DataCreator.cs


注:本文中的DeserializeDockContent类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。