本文整理汇总了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";
}
示例2: AppConfigViewContent
public AppConfigViewContent(OpenedFile file)
{
TabPageText = "Design";
Files.Add(file);
OnFileNameChanged(file);
file.ForceInitializeView(this);
}
示例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;
}
示例4: HexEditView
public HexEditView(OpenedFile file)
{
hexEditContainer = new HexEditContainer();
hexEditContainer.hexEditControl.DocumentChanged += new EventHandler(DocumentChanged);
this.Files.Add(file);
file.ForceInitializeView(this);
}
示例5: Editor
public Editor(OpenedFile file)
{
Files.Add(file);
OnFileNameChanged(file);
file.ForceInitializeView(this);
rtb.Dock = DockStyle.Fill;
rtb.TextChanged += TextChanged;
}
示例6: XmlView
public XmlView(OpenedFile file)
: this()
{
this.Files.Add(file);
OnFileNameChanged(file);
file.ForceInitializeView(this);
xmlTreeView = new XmlTreeView(this);
SecondaryViewContents.Add(xmlTreeView);
}
示例7: DriverViewContent
public DriverViewContent(OpenedFile file)
{
_control = new DriverUserControl(this);
Files.Add(file);
OnFileNameChanged(file);
file.ForceInitializeView(this);
TabPageText = "Design";
}
示例8: EDMDesignerViewContent
public EDMDesignerViewContent(OpenedFile primaryFile)
: base(primaryFile)
{
if (primaryFile == null)
throw new ArgumentNullException("primaryFile");
primaryFile.ForceInitializeView(this); // call Load()
EDMDesignerChangeWatcher.AddEDMDesignerViewContent(this);
}
示例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));
}
示例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);
}
示例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;
}
示例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);
}
}
示例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;
}
示例14: ImageViewContent
public ImageViewContent(OpenedFile file)
{
this.TabPageText = "Image Viewer";
this.Files.Add(file);
file.ForceInitializeView(this);
}
示例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);
}