本文整理汇总了C#中MonoDevelop.Core.PropertyChangedEventArgs类的典型用法代码示例。如果您正苦于以下问题:C# PropertyChangedEventArgs类的具体用法?C# PropertyChangedEventArgs怎么用?C# PropertyChangedEventArgs使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
PropertyChangedEventArgs类属于MonoDevelop.Core命名空间,在下文中一共展示了PropertyChangedEventArgs类的18个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的C#代码示例。
示例1: PropertyChanged
void PropertyChanged (object sender, PropertyChangedEventArgs prop)
{
var name = (string)prop.NewValue ?? styleSource.Style.FontDescription.ToString ();
Update (name);
if (resizer != null)
resizer ();
}
开发者ID:transformersprimeabcxyz,项目名称:monodevelop-1,代码行数:7,代码来源:PadFontChanger.cs
示例2: PropertyServiceChanged
void PropertyServiceChanged (object sender, PropertyChangedEventArgs e)
{
switch (e.Key) {
case "ColorScheme": {
string val = (string) e.NewValue;
if (string.IsNullOrEmpty (val))
val = "Default";
base.ColorScheme = val;
break;
}
}
}
开发者ID:fedorw,项目名称:monodevelop,代码行数:12,代码来源:CommonTextEditorOptions.cs
示例3: HandlePropertiesPropertyChanged
static void HandlePropertiesPropertyChanged (object sender, PropertyChangedEventArgs e)
{
if (e.Key == ShowSchemaAnnotationPropertyName) {
showSchemaAnnotation = (bool)e.NewValue;
} else if (e.Key == AutoCompleteElementsPropertyName) {
autoCompleteElements = (bool)e.NewValue;
} else if (e.Key == AutoInsertFragmentsPropertyName) {
autoInsertFragments = (bool)e.NewValue;
} else if (XmlFileAssociationChanged != null && e.Key.StartsWith (AssociationPrefix, StringComparison.Ordinal)) {
var ext = e.Key.Substring (AssociationPrefix.Length);
var assoc = e.NewValue as XmlFileAssociation;
XmlFileAssociationChanged (null, new XmlFileAssociationChangedEventArgs (ext, assoc));
}
}
开发者ID:FreeBSD-DotNet,项目名称:monodevelop,代码行数:14,代码来源:XmlEditorOptions.cs
示例4: HandleIdeAppPreferencesDefaultHideMessageBubblesChanged
void HandleIdeAppPreferencesDefaultHideMessageBubblesChanged (object sender, PropertyChangedEventArgs e)
{
currentErrorMarkers.ForEach (marker => marker.IsVisible = !IdeApp.Preferences.DefaultHideMessageBubbles);
this.TextEditor.QueueDraw ();
}
开发者ID:nocache,项目名称:monodevelop,代码行数:5,代码来源:SourceEditorView.cs
示例5: UpdatePreferences
// Need to be picky about only updating individual properties when they change.
// The old approach called LoadAllPrefs on any prefs event, which sometimes caused
// massive change event storms.
void UpdatePreferences (object sender, PropertyChangedEventArgs args)
{
try {
switch (args.Key) {
case "TabIsReindent":
this.TabIsReindent = (bool)args.NewValue;
break;
case "EnableSemanticHighlighting":
this.EnableSemanticHighlighting = (bool)args.NewValue;
break;
case "AutoInsertMatchingBracket":
this.AutoInsertMatchingBracket = (bool)args.NewValue;
break;
case "UnderlineErrors":
this.UnderlineErrors = (bool)args.NewValue;
break;
case "IndentStyle":
if (args.NewValue == null) {
LoggingService.LogWarning ("tried to set indent style == null");
} else if (!(args.NewValue is IndentStyle)) {
LoggingService.LogWarning ("tried to set indent style to " + args.NewValue + " which isn't from type IndentStyle instead it is from:" + args.NewValue.GetType ());
this.IndentStyle = (IndentStyle)Enum.Parse (typeof(IndentStyle), args.NewValue.ToString ());
} else
this.IndentStyle = (IndentStyle)args.NewValue;
break;
case "ShowLineNumberMargin":
base.ShowLineNumberMargin = (bool)args.NewValue;
break;
case "ShowFoldMargin":
base.ShowFoldMargin = (bool)args.NewValue;
break;
case "HighlightCaretLine":
base.HighlightCaretLine = (bool)args.NewValue;
break;
case "EnableSyntaxHighlighting":
base.EnableSyntaxHighlighting = (bool)args.NewValue;
break;
case "HighlightMatchingBracket":
base.HighlightMatchingBracket = (bool)args.NewValue;
break;
case "ShowRuler":
base.ShowRuler = (bool)args.NewValue;
break;
case "FontName":
base.FontName = (string)args.NewValue;
break;
case "GutterFontName":
base.GutterFontName = (string)args.NewValue;
break;
case "ColorScheme":
base.ColorScheme = (string)args.NewValue;
break;
case "DefaultRegionsFolding":
this.DefaultRegionsFolding = (bool)args.NewValue;
break;
case "DefaultCommentFolding":
this.DefaultCommentFolding = (bool)args.NewValue;
break;
case "UseViModes":
this.UseViModes = (bool)args.NewValue;
break;
case "OnTheFlyFormatting":
this.OnTheFlyFormatting = (bool)args.NewValue;
break;
case "ControlLeftRightMode":
this.ControlLeftRightMode = (ControlLeftRightMode)args.NewValue;
break;
case "EnableAnimations":
base.EnableAnimations = (bool)args.NewValue;
break;
case "UseAntiAliasing":
base.UseAntiAliasing = (bool)args.NewValue;
break;
case "DrawIndentationMarkers":
base.DrawIndentationMarkers = (bool)args.NewValue;
break;
case "EnableQuickDiff":
base.EnableQuickDiff = (bool)args.NewValue;
break;
}
} catch (Exception ex) {
LoggingService.LogError ("SourceEditorOptions error with property value for '" + (args.Key ?? "") + "'", ex);
}
}
开发者ID:GCrean,项目名称:monodevelop,代码行数:87,代码来源:SourceEditorOptions.cs
示例6: OnPropertyUpdated
void OnPropertyUpdated (object sender, PropertyChangedEventArgs e)
{
bool change = false;
if (e.Key == "Monodevelop.UserTasksHighPrioColor" && e.NewValue != e.OldValue)
{
highPrioColor = StringToColor ((string)e.NewValue);
change = true;
}
if (e.Key == "Monodevelop.UserTasksNormalPrioColor" && e.NewValue != e.OldValue)
{
normalPrioColor = StringToColor ((string)e.NewValue);
change = true;
}
if (e.Key == "Monodevelop.UserTasksLowPrioColor" && e.NewValue != e.OldValue)
{
lowPrioColor = StringToColor ((string)e.NewValue);
change = true;
}
if (change)
{
TreeIter iter;
if (store.GetIterFirst (out iter))
{
do
{
Task task = (Task) store.GetValue (iter, (int)Columns.Task);
store.SetValue (iter, (int)Columns.Foreground, GetColorByPriority (task.Priority));
} while (store.IterNext (ref iter));
}
}
}
开发者ID:Tak,项目名称:monodevelop-novell,代码行数:32,代码来源:CommentTasksView.cs
示例7: OnPropertyUpdated
void OnPropertyUpdated (object sender, PropertyChangedEventArgs e)
{
if (e.Key == "EnableCodeCompletion" && e.NewValue != e.OldValue)
enableCodeCompletion = (bool)e.NewValue;
if (e.Key == "EnableParameterInsight" && e.NewValue != e.OldValue)
enableParameterInsight = (bool)e.NewValue;
}
开发者ID:yayanyang,项目名称:monodevelop,代码行数:7,代码来源:CompletionTextEditorExtension.cs
示例8: HandleCustomFontChanged
void HandleCustomFontChanged (object sender, PropertyChangedEventArgs e)
{
UpdateCustomFont ((string)e.NewValue);
}
开发者ID:kthguru,项目名称:monodevelop,代码行数:4,代码来源:LogView.cs
示例9: ScrollBarModeChanged
void ScrollBarModeChanged (object sender, PropertyChangedEventArgs args)
{
var newMode = (ScrollBarMode)args.NewValue;
this.ScrollBarMode = newMode;
}
开发者ID:Kalnor,项目名称:monodevelop,代码行数:5,代码来源:QuickTaskStrip.cs
示例10: XmlEditorPropertyChanged
void XmlEditorPropertyChanged(object o, PropertyChangedEventArgs e)
{
switch (e.Key) {
case "AutoCompleteElements":
view.AutoCompleteElements = XmlEditorAddInOptions.AutoCompleteElements;
break;
case "ShowSchemaAnnotation":
view.ShowSchemaAnnotation = XmlEditorAddInOptions.ShowSchemaAnnotation;
break;
default:
string extension = Path.GetExtension(fileName).ToLower();
if (e.Key == extension) {
SetDefaultSchema(extension);
} else {
Console.WriteLine("XmlEditor: Unhandled property change: " + e.Key);
}
break;
}
}
开发者ID:Kalnor,项目名称:monodevelop,代码行数:19,代码来源:XmlEditorViewContent.cs
示例11: HandlePropertiesChanged
static void HandlePropertiesChanged (object sender, PropertyChangedEventArgs e)
{
LoadProperties ();
changed (null, EventArgs.Empty);
}
开发者ID:yayanyang,项目名称:monodevelop,代码行数:5,代码来源:AnalysisOptions.cs
示例12: HandlePropertyChanged
void HandlePropertyChanged(object sender, PropertyChangedEventArgs e)
{
switch (e.Key)
{
case DiffbasedHighlighting.DiffBasedHighlightingProp:
if (DiffbasedHighlighting.Enabled)
{
TryInjectDiffbasedMarker();
SemanticHighlightingEnabled = false;
RemoveOldTypeMarkers(true);
}
else
{
TryRemoveDiffbasedMarker();
if (SemanticHighlightingEnabled = PropertyService.Get("EnableSemanticHighlighting", true))
HandleDocumentParsed(sender, e);
}
break;
case "EnableSemanticHighlighting":
SemanticHighlightingEnabled = PropertyService.Get("EnableSemanticHighlighting", true);
if (!SemanticHighlightingEnabled)
RemoveOldTypeMarkers();
break;
}
}
开发者ID:foerdi,项目名称:Mono-D,代码行数:25,代码来源:DSyntaxMode.cs
示例13: OnPropertyChanged
void OnPropertyChanged (object sender, PropertyChangedEventArgs e) {
if (e.Key != "EnableAutoCorrection")
return;
if (!(e.NewValue is bool) || !(e.OldValue is bool))
return;
bool newValue = (bool)e.NewValue;
bool oldValue = (bool)e.OldValue;
if (newValue && !oldValue) {
db.ParseInformationChanged += OnParseInformationChanged;
} else if (!newValue && oldValue) {
ResetUnderlineChangement ();
db.ParseInformationChanged -= OnParseInformationChanged;
}
}
开发者ID:transformersprimeabcxyz,项目名称:monodevelop-1,代码行数:16,代码来源:SourceEditorView.cs
示例14: UpdatePreferences
public void UpdatePreferences( object sender, PropertyChangedEventArgs args )
{
isEnabled = PropertyService.Get("UseViModes", false);
SetupMode ();
}
开发者ID:csammis,项目名称:VimAddin,代码行数:5,代码来源:VimTextEditorExtension.cs
示例15: SourceEditorPropertyChanged
void SourceEditorPropertyChanged(object o, PropertyChangedEventArgs e)
{
switch (e.Key) {
case "DefaultFont":
view.ModifyFont(TextEditorProperties.Font);
break;
case "ShowLineNumbers":
view.ShowLineNumbers = TextEditorProperties.ShowLineNumbers;
break;
case "ConvertTabsToSpaces":
view.InsertSpacesInsteadOfTabs = TextEditorProperties.ConvertTabsToSpaces;
break;
case "ShowBracketHighlight":
((SourceBuffer)view.Buffer).HighlightMatchingBrackets = TextEditorProperties.ShowMatchingBracket;
break;
case "ShowVRuler":
view.ShowRightMargin = TextEditorProperties.ShowVerticalRuler;
break;
case "VRulerRow":
if (TextEditorProperties.VerticalRulerRow > -1)
view.RightMarginPosition = (uint) TextEditorProperties.VerticalRulerRow;
else
view.RightMarginPosition = 80;
break;
case "TabIndent":
if (TextEditorProperties.TabIndent > -1)
view.TabWidth = (uint) TextEditorProperties.TabIndent;
else
view.TabWidth = (uint) 4;
break;
case "IndentStyle":
view.AutoIndent = (TextEditorProperties.IndentStyle == IndentStyle.Auto);
break;
case "HighlightCurrentLine":
view.HighlightCurrentLine = TextEditorProperties.HighlightCurrentLine;
break;
case "GtkSourceViewStyleScheme":
UpdateStyleScheme ();
break;
default:
MonoDevelop.Core.LoggingService.LogWarning ("XmlEditor: Unhandled source editor property change: " + e.Key);
break;
}
}
开发者ID:Kalnor,项目名称:monodevelop,代码行数:44,代码来源:XmlEditorViewContent.cs
示例16: HandleIdeAppPreferencesShowMessageBubblesChanged
void HandleIdeAppPreferencesShowMessageBubblesChanged (object sender, PropertyChangedEventArgs e)
{
UpdateTasks (null, null);
}
开发者ID:nocache,项目名称:monodevelop,代码行数:4,代码来源:SourceEditorView.cs
示例17: HandlePropertyChanged
static void HandlePropertyChanged (object sender, PropertyChangedEventArgs e)
{
if (e.Key == "MonoDevelop.Ide.MSBuildVerbosity") {
DefaultMSBuildVerbosity = (MSBuildVerbosity) e.NewValue;
}
}
开发者ID:drasticactions,项目名称:monodevelop,代码行数:6,代码来源:MSBuildProjectService.cs
示例18: PropertiesChanged
void PropertiesChanged (object sender, PropertyChangedEventArgs e)
{
switch (e.Key) {
case "DefaultFont":
se.View.ModifyFont (TextEditorProperties.Font);
se.UpdateMarkerSize ();
break;
case "ShowLineNumbers":
se.View.ShowLineNumbers = TextEditorProperties.ShowLineNumbers;
break;
case "ShowBracketHighlight":
se.Buffer.HighlightMatchingBrackets = TextEditorProperties.ShowMatchingBracket;
break;
case "ShowVRuler":
se.View.ShowRightMargin = TextEditorProperties.ShowVerticalRuler;
break;
case "EnableCodeCompletion":
se.View.EnableCodeCompletion = TextEditorProperties.EnableCodeCompletion;
break;
case "ConvertTabsToSpaces":
se.View.InsertSpacesInsteadOfTabs = TextEditorProperties.ConvertTabsToSpaces;
break;
case "IndentStyle":
se.View.AutoIndent = (TextEditorProperties.IndentStyle == IndentStyle.Auto);
break;
case "AutoInsertTemplates":
se.View.AutoInsertTemplates = TextEditorProperties.AutoInsertTemplates;
break;
case "SyntaxHighlight":
se.Buffer.HighlightSyntax = TextEditorProperties.SyntaxHighlight;
break;
case "VRulerRow":
if (TextEditorProperties.VerticalRulerRow > -1)
se.View.RightMarginPosition = (uint) TextEditorProperties.VerticalRulerRow;
else
se.View.RightMarginPosition = 80;
break;
case "TabIndent":
if (TextEditorProperties.TabIndent > -1)
se.View.TabWidth = (uint) TextEditorProperties.TabIndent;
else
se.View.TabWidth = (uint) 4;
break;
case "TabsToSpaces":
se.View.InsertSpacesInsteadOfTabs = TextEditorProperties.ConvertTabsToSpaces;
break;
case "EnableFolding":
// TODO
break;
case "WrapMode":
se.View.WrapMode = TextEditorProperties.WrapMode;
break;
case "ShowClassBrowser":
se.DisplayBinding.ClassBrowserVisible = TextEditorProperties.ShowClassBrowser;
break;
case "HighlightCurrentLine":
se.View.HighlightCurrentLine = TextEditorProperties.HighlightCurrentLine;
break;
case "HighlightSpaces":
SourceEditorView.HighlightSpacesEnabled = TextEditorProperties.HighlightSpaces;
se.View.QueueDraw ();
break;
case "HighlightTabs":
SourceEditorView.HighlightTabsEnabled = TextEditorProperties.HighlightTabs;
se.View.QueueDraw ();
break;
case "HighlightNewlines":
SourceEditorView.HighlightNewlinesEnabled = TextEditorProperties.HighlightNewlines;
se.View.QueueDraw ();
break;
case "GtkSourceViewStyleScheme":
UpdateStyleScheme ();
break;
default:
break;
}
}
开发者ID:transformersprimeabcxyz,项目名称:monodevelop-1,代码行数:77,代码来源:SourceEditorDisplayBinding.cs
注:本文中的MonoDevelop.Core.PropertyChangedEventArgs类示例由纯净天空整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论