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


C# OpenedFile.ForceInitializeView方法代码示例

本文整理汇总了C#中ICSharpCode.SharpDevelop.OpenedFile.ForceInitializeView方法的典型用法代码示例。如果您正苦于以下问题:C# OpenedFile.ForceInitializeView方法的具体用法?C# OpenedFile.ForceInitializeView怎么用?C# OpenedFile.ForceInitializeView使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在ICSharpCode.SharpDevelop.OpenedFile的用法示例。


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

示例1: TagListViewContent

		public TagListViewContent(OpenedFile file)
		{
			Files.Add(file);
			OnFileNameChanged(file);
			file.ForceInitializeView(this);
			TabPageText = "Design";
		}
开发者ID:garryforreg,项目名称:iview-scada,代码行数:7,代码来源:TagListViewContent.cs

示例2: AppConfigViewContent

		public AppConfigViewContent(OpenedFile file)
		{
			TabPageText = "Design";

			Files.Add(file);
			OnFileNameChanged(file);
			file.ForceInitializeView(this);
		}
开发者ID:garryforreg,项目名称:iview-scada,代码行数:8,代码来源:AppConfigViewContent.cs

示例3: XmlEditorView

 /// <summary>
 /// Default ctor
 /// </summary>
 internal XmlEditorView(OpenedFile file, XmlViewModel viewModel, IDesignerControl control)
 {
     this.viewModel = viewModel;
     this.control = control;
     Files.Add(file);
     file.ForceInitializeView(this);
     ComponentDispatcher.ThreadIdle += OnIdle;
 }
开发者ID:Xtremrules,项目名称:dot42,代码行数:11,代码来源:XmlEditorView.cs

示例4: HexEditView

		public HexEditView(OpenedFile file)
		{
			hexEditContainer = new HexEditContainer();
			hexEditContainer.hexEditControl.DocumentChanged += new EventHandler(DocumentChanged);
			
			this.Files.Add(file);
			
			file.ForceInitializeView(this);
		}
开发者ID:kingjiang,项目名称:SharpDevelopLite,代码行数:9,代码来源:HexEditView.cs

示例5: Editor

		public Editor(OpenedFile file)
		{			
			Files.Add(file);
			OnFileNameChanged(file);
			file.ForceInitializeView(this);

			rtb.Dock = DockStyle.Fill;
			rtb.TextChanged += TextChanged;			
		}
开发者ID:kingjiang,项目名称:SharpDevelopLite,代码行数:9,代码来源:Editor.cs

示例6: XmlView

        public XmlView(OpenedFile file)
            : this()
        {
            this.Files.Add(file);
            OnFileNameChanged(file);
            file.ForceInitializeView(this);

            xmlTreeView = new XmlTreeView(this);
            SecondaryViewContents.Add(xmlTreeView);
        }
开发者ID:BackupTheBerlios,项目名称:nantgui,代码行数:10,代码来源:XmlView.cs

示例7: DriverViewContent

		public DriverViewContent(OpenedFile file)
		{			
			_control = new DriverUserControl(this);
			
			Files.Add(file);
			OnFileNameChanged(file);
			file.ForceInitializeView(this);
			
			TabPageText = "Design";
		}
开发者ID:garryforreg,项目名称:iview-scada,代码行数:10,代码来源:DriverViewContent.cs

示例8: EDMDesignerViewContent

		public EDMDesignerViewContent(OpenedFile primaryFile)
			: base(primaryFile)
		{
			if (primaryFile == null)
				throw new ArgumentNullException("primaryFile");
			
			primaryFile.ForceInitializeView(this); // call Load()

			EDMDesignerChangeWatcher.AddEDMDesignerViewContent(this);
		}
开发者ID:Netring,项目名称:SharpDevelop,代码行数:10,代码来源:EDMDesignerViewContent.cs

示例9: HexEditView

		public HexEditView(OpenedFile file)
		{
			hexEditContainer = new HexEditContainer();
			hexEditContainer.hexEditControl.DocumentChanged += new EventHandler(DocumentChanged);
			
			this.Files.Add(file);
			
			file.ForceInitializeView(this);
			
			AnalyticsMonitorService.TrackFeature(typeof(HexEditView));
		}
开发者ID:nylen,项目名称:SharpDevelop,代码行数:11,代码来源:HexEditView.cs

示例10: SetPrimaryFileUnitTestMode

		/// <summary>
		/// Sets the primary file. Public because it is used by some unit tests.
		/// </summary>
		public void SetPrimaryFileUnitTestMode(OpenedFile file)
		{
			if (PrimaryFile != null)
				throw new InvalidOperationException("primary file is already set");
			
			isInUnitTest = true;
			
			this.Files.Add(file);
			OnFileNameChanged(file);
			file.ForceInitializeView(this);
		}
开发者ID:kingjiang,项目名称:SharpDevelopLite,代码行数:14,代码来源:XmlView.cs

示例11: TagGroupViewContent

		public TagGroupViewContent(OpenedFile file)
		{
			TabPageText = "Design";
			Files.Add(file);
			OnFileNameChanged(file);
			file.ForceInitializeView(this);

			//_control.dataGridViewTagGroup.CurrentCellDirtyStateChanged += new EventHandler(_control_dataGridViewTagGroup_CurrentCellDirtyStateChanged);

			BindingSource bs = _control.dataGridViewTagGroup.DataSource as BindingSource;
			bs.ListChanged += _control_dataGridViewTagGroup_CurrentCellDirtyStateChanged;
		}
开发者ID:garryforreg,项目名称:iview-scada,代码行数:12,代码来源:TagGroupViewContent.cs

示例12: TryOpenAppConfig

		void TryOpenAppConfig(bool createIfNotExists)
		{
			if (appConfigFile != null) // already open
				return;
			if (ProjectService.OpenSolution == null)
				return;
			IProject p = ProjectService.OpenSolution.FindProjectContainingFile(this.PrimaryFileName);
			if (p == null)
				return;
			FileName appConfigFileName = CompilableProject.GetAppConfigFile(p, createIfNotExists);
			if (appConfigFileName != null) {
				appConfigFile = FileService.GetOrCreateOpenedFile(appConfigFileName);
				this.Files.Add(appConfigFile);
				if (createIfNotExists)
					appConfigFile.MakeDirty();
				appConfigFile.ForceInitializeView(this);
			}
		}
开发者ID:hpsa,项目名称:SharpDevelop,代码行数:18,代码来源:SettingsViewContent.cs

示例13: AvalonEditViewContent

		public AvalonEditViewContent(OpenedFile file, Encoding fixedEncodingForLoading = null)
		{
			if (fixedEncodingForLoading != null) {
				codeEditor.UseFixedEncoding = true;
				codeEditor.PrimaryTextEditor.Encoding = fixedEncodingForLoading;
			}
			this.TabPageText = "${res:FormsDesigner.DesignTabPages.SourceTabPage}";
			
			if (file.FileName != null) {
				string filetype = Path.GetExtension(file.FileName);
				if (!ProjectService.GetFileFilters().Any(f => f.ContainsExtension(filetype)))
					filetype = ".?";
				trackedFeature = AnalyticsMonitorService.TrackFeature(typeof(AvalonEditViewContent), "open" + filetype.ToLowerInvariant());
			}
			
			this.Files.Add(file);
			file.ForceInitializeView(this);
			
			file.IsDirtyChanged += PrimaryFile_IsDirtyChanged;
			codeEditor.Document.UndoStack.PropertyChanged += codeEditor_Document_UndoStack_PropertyChanged;
			codeEditor.CaretPositionChanged += CaretChanged;
			codeEditor.TextCopied += codeEditor_TextCopied;
		}
开发者ID:hpsa,项目名称:SharpDevelop,代码行数:23,代码来源:AvalonEditViewContent.cs

示例14: ImageViewContent

		public ImageViewContent(OpenedFile file)
		{
			this.TabPageText = "Image Viewer";
			this.Files.Add(file);
			file.ForceInitializeView(this);
		}
开发者ID:Bombadil77,项目名称:SharpDevelop,代码行数:6,代码来源:ImageViewContent.cs

示例15: EDMDesignerViewContent

		public EDMDesignerViewContent(OpenedFile primaryFile)
			: base(primaryFile)
		{
			if (primaryFile == null)
				throw new ArgumentNullException("primaryFile");
			
			try {
				primaryFile.ForceInitializeView(this); // call Load()
			} catch (WizardCancelledException) {
				this.Files.Clear(); // unregister with OpenedFile
				throw;
			}

			EDMDesignerChangeWatcher.AddEDMDesignerViewContent(this);
		}
开发者ID:siegfriedpammer,项目名称:SharpDevelop,代码行数:15,代码来源:EDMDesignerViewContent.cs


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