本文整理汇总了C#中MonoDevelop.Projects.ProjectFileEventArgs.Any方法的典型用法代码示例。如果您正苦于以下问题:C# ProjectFileEventArgs.Any方法的具体用法?C# ProjectFileEventArgs.Any怎么用?C# ProjectFileEventArgs.Any使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类MonoDevelop.Projects.ProjectFileEventArgs
的用法示例。
在下文中一共展示了ProjectFileEventArgs.Any方法的11个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: OnFilePropertyChangedInProject
void OnFilePropertyChangedInProject (object sender, ProjectFileEventArgs args)
{
var pad = IdeApp.Workbench.GetPad <PropertyPad> ();
if (pad == null)
return;
var grid = ((PropertyPad)pad.Content).PropertyGrid;
if (args.Any (arg => arg.ProjectFile == file))
grid.Refresh ();
}
示例2: OnFilePropertyChangedInProject
void OnFilePropertyChangedInProject (object sender, ProjectFileEventArgs args)
{
var pad = IdeApp.Workbench.GetPad <PropertyPad> ();
if (pad == null)
return;
var grid = ((PropertyPad)pad.Content).PropertyGrid;
if (grid.IsEditing)
return;
if (args.Any (arg => arg.ProjectFile == file))
grid.Populate (saveEditSession: false);
}
示例3: HandleProjectChanged
void HandleProjectChanged (object sender, ProjectFileEventArgs e)
{
if (e.Any (f => f.ProjectFile.FilePath == DocumentContext.Name))
UpdateOwnerProjects ();
}
示例4: FileRemovedFromProject
void FileRemovedFromProject (object sender, ProjectFileEventArgs e)
{
if (!SyncingEnabled)
return;
XC4Debug.Log ("Files removed from project '{0}'", dnp.Name);
foreach (var file in e)
XC4Debug.Log (" * Removed: {0}", file.ProjectFile.ProjectVirtualPath);
XC4Debug.Indent ();
try {
if (e.Any (finf => finf.Project == dnp && IsInterfaceDefinition (finf.ProjectFile))) {
if (!dnp.Files.Any (IsInterfaceDefinition)) {
XC4Debug.Log ("Last Interface Definition file removed from '{0}', disabling Xcode sync.", dnp.Name);
DisableSyncing ();
return;
}
}
} finally {
XC4Debug.Unindent ();
}
CheckFileChanges (e);
}
示例5: FileRemovedFromProject
void FileRemovedFromProject (object sender, ProjectFileEventArgs e)
{
if (syncing && e.Any (finf => finf.Project == dnp && IsInterfaceDefinition (finf.ProjectFile))) {
if (!dnp.Files.Any (IsInterfaceDefinition)) {
XC4Debug.Log ("All page files removed, disabling sync");
DisableSyncing ();
return;
}
}
CheckFileChanges (e);
}
示例6: FilePropertyChangedInProject
void FilePropertyChangedInProject (object sender, ProjectFileEventArgs e)
{
if (!xcodeProjectDirty && syncing && e.Any (finf => IsContent (finf.ProjectFile)))
xcodeProjectDirty = true;
//FIXME: make this async
UpdateTypes (true);
UpdateXcodeProject ();
}
示例7: FileRemovedFromProject
void FileRemovedFromProject (object sender, ProjectFileEventArgs e)
{
//FIXME: do we need to disable syncing here?
if (syncing && e.Any (finf => IsPage (finf.ProjectFile)))
if (!dnp.Files.Any (IsPage))
DisableSyncing ();
//FIXME: make this async
UpdateTypes (true);
}
示例8: OnFilePropertyChangedInProject
protected override void OnFilePropertyChangedInProject (ProjectFileEventArgs e)
{
base.OnFilePropertyChangedInProject (e);
if (Loading)
return;
if (e.Any (f => f.ProjectFile.BuildAction == MonoDroidBuildAction.AndroidResource))
QueueResgenUpdate ();
}
示例9: FilePropertyChangedInProject
void FilePropertyChangedInProject (object sender, ProjectFileEventArgs e)
{
if (!syncing && e.Any (finf => IsPage (finf.ProjectFile)))
EnableSyncing ();
if (!xcodeProjectDirty && syncing && e.Any (finf => IsContent (finf.ProjectFile)))
xcodeProjectDirty = true;
if (syncing)
UpdateTypes (true);
UpdateXcodeProject ();
}
示例10: FileAddedToProject
void FileAddedToProject (object sender, ProjectFileEventArgs e)
{
if (!syncing && e.Any (finf => IsPage (finf.ProjectFile)))
EnableSyncing ();
if (syncing)
UpdateTypes (true);
UpdateXcodeProject ();
}
示例11: FileRemovedFromProject
void FileRemovedFromProject (object sender, ProjectFileEventArgs e)
{
if (syncing && e.Any (finf => IsPage (finf.ProjectFile)))
if (!dnp.Files.Any (IsPage))
DisableSyncing ();
if (syncing)
UpdateTypes (true);
}