本文整理汇总了C#中System.Windows.Forms.PropertyValueChangedEventArgs类的典型用法代码示例。如果您正苦于以下问题:C# PropertyValueChangedEventArgs类的具体用法?C# PropertyValueChangedEventArgs怎么用?C# PropertyValueChangedEventArgs使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
PropertyValueChangedEventArgs类属于System.Windows.Forms命名空间,在下文中一共展示了PropertyValueChangedEventArgs类的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的C#代码示例。
示例1: PropertyValueChanged
public void PropertyValueChanged(PropertyValueChangedEventArgs e, PropertyGrid mPropertyGrid)
{
UnreferencedFilesManager.Self.ProcessRefreshOfUnreferencedFiles();
#region Check for Errors
if (mPropertyGrid == null)
{
System.Windows.Forms.MessageBox.Show("There has been an internal error in Glue related to updating the PropertyGrid. This likely happens if there has been an earlier error in Glue. You should probably restart Glue.");
MainGlueWindow.Self.HasErrorOccurred = true;
}
#endregion
string changedMember = e.ChangedItem.PropertyDescriptor.Name;
object oldValue = e.OldValue;
string variableName = e.ChangedItem.Label;
string parentGridItemName = null;
if (e.ChangedItem != null && e.ChangedItem.Parent != null)
{
parentGridItemName = e.ChangedItem.Parent.Label;
}
ReactToPropertyChanged(changedMember, oldValue, variableName, parentGridItemName);
}
开发者ID:vchelaru,项目名称:FlatRedBall,代码行数:25,代码来源:SetVariableLogic.cs
示例2: propertyGrid_main_PropertyValueChanged
private void propertyGrid_main_PropertyValueChanged(object s, PropertyValueChangedEventArgs e)
{
if (toolStrip_main.Visible == false)
{
toolStrip_main.Visible = true;
}
}
开发者ID:socoolch,项目名称:fancy2d,代码行数:7,代码来源:BoundingBoxEditor.cs
示例3: OnPropertyValueChanged
protected override void OnPropertyValueChanged(PropertyValueChangedEventArgs args) {
if (args == null) {
Logging.LogNullError(nameof(args));
return;
}
base.OnPropertyValueChanged(args);
ASFConfig.Save();
BotConfig botConfig = ASFConfig as BotConfig;
if (botConfig != null) {
if (!botConfig.Enabled) {
return;
}
Tutorial.OnAction(Tutorial.EPhase.BotEnabled);
if (!string.IsNullOrEmpty(botConfig.SteamLogin) && !string.IsNullOrEmpty(botConfig.SteamPassword)) {
Tutorial.OnAction(Tutorial.EPhase.BotReady);
}
return;
}
GlobalConfig globalConfig = ASFConfig as GlobalConfig;
if (globalConfig == null) {
return;
}
if (globalConfig.SteamOwnerID != 0) {
Tutorial.OnAction(Tutorial.EPhase.GlobalConfigReady);
}
}
开发者ID:Kasp42,项目名称:ArchiSteamFarm,代码行数:31,代码来源:EnhancedPropertyGrid.cs
示例4: OnPropertyValueChanged
protected virtual void OnPropertyValueChanged(PropertyValueChangedEventArgs e)
{
if (this.PropertyValueChanged != null)
{
this.PropertyValueChanged(this, e);
}
}
开发者ID:nHydrate,项目名称:nHydrate,代码行数:7,代码来源:BaseModelObjectController.cs
示例5: PropertyGridPropertyValueChanged
private void PropertyGridPropertyValueChanged(object s, PropertyValueChangedEventArgs e)
{
if (OnPropertyChanged != null)
{
OnPropertyChanged(s, e);
}
}
开发者ID:Bruhankovi4,项目名称:Emotyper,代码行数:7,代码来源:DiagramFormProperties.cs
示例6: pgSettings_PropertyValueChanged
private void pgSettings_PropertyValueChanged(object s, PropertyValueChangedEventArgs e)
{
if (lbAccounts.SelectedIndex > -1)
{
lbAccounts.Items[lbAccounts.SelectedIndex] = pgSettings.SelectedObject;
}
}
开发者ID:andre-d,项目名称:ShareXYZ,代码行数:7,代码来源:AccountsControl.cs
示例7: OnPropertyValueChanged
protected override void OnPropertyValueChanged(PropertyValueChangedEventArgs e)
{
base.OnPropertyValueChanged(e);
//String property = e.ChangedItem.Label;
//GridItem gridItem = e.ChangedItem;
//while (gridItem.Parent.Parent.Parent != null)
//{
// gridItem = gridItem.Parent;
// property = gridItem.Label;
//}
//Object oldValue = mTemp.GetType().InvokeMember(
// property,
// BindingFlags.Public |
// BindingFlags.NonPublic |
// BindingFlags.Instance |
// BindingFlags.GetProperty,
// null,
// mTemp,
// null
//);
//mActionManager.ExecuteCommand(new SetProperty(SelectedObject, property, gridItem.Value, oldValue));
//mActionManager.ExecuteCommand(new SetProperty(mTemp, property, gridItem.Value));
//mActionManager.FinaliseCommand();
}
开发者ID:weimingtom,项目名称:isilme,代码行数:28,代码来源:ObjectPropertyGrid.cs
示例8: PropertyGridPropertyValueChanged
private void PropertyGridPropertyValueChanged(object s, PropertyValueChangedEventArgs e)
{
mIsBackgroundMove = mParticleSystem.IsBackgroundMove;
mPlayToolStripButton.Enabled = !mParticleSystem.IsLoop;
mDll.Invoke<MParticleChanged, bool>(mParticleSystem.Scale,mParticleSystem.IsBackgroundMove, mParticleSystem.Angle, mParticleSystem.AngleVar, (int)mParticleSystem.DestBlendFunc, (int)mParticleSystem.SrcBlendFunc,
mParticleSystem.Duration, mParticleSystem.EmissionRate, (int)mParticleSystem.Mode,
mParticleSystem.EndColor.R, mParticleSystem.EndColor.G, mParticleSystem.EndColor.B, mParticleSystem.EndColor.A,
mParticleSystem.EndColorVar.R, mParticleSystem.EndColorVar.G, mParticleSystem.EndColorVar.B, mParticleSystem.EndColorVar.A,
mParticleSystem.EndRadius, mParticleSystem.EndRadiusVar,
mParticleSystem.EndSize, mParticleSystem.EndSizeVar,
mParticleSystem.EndSpin, mParticleSystem.EndSpinVar,
mParticleSystem.GravityX, mParticleSystem.GravityY,
mParticleSystem.IsAutoRemoveOnFinish,
mParticleSystem.Life, mParticleSystem.LifeVar,
(int)mParticleSystem.PositionType,
mParticleSystem.PosVarX, mParticleSystem.PosVarY,
mParticleSystem.RadialAccel, mParticleSystem.RadialAccelVar,
mParticleSystem.RotatePerSecond, mParticleSystem.RotatePerSecondVar,
mParticleSystem.SourcePositionX, mParticleSystem.SourcePositionY,
mParticleSystem.Speed, mParticleSystem.SpeedVar,
mParticleSystem.StartColor.R, mParticleSystem.StartColor.G, mParticleSystem.StartColor.B, mParticleSystem.StartColor.A,
mParticleSystem.StartColorVar.R, mParticleSystem.StartColorVar.G, mParticleSystem.StartColorVar.B, mParticleSystem.StartColorVar.A,
mParticleSystem.StartRadius, mParticleSystem.StartRadiusVar,
mParticleSystem.StartSize, mParticleSystem.StartSizeVar,
mParticleSystem.StartSpin, mParticleSystem.StartSpinVar,
mParticleSystem.TangentialAccel, mParticleSystem.TangentialAccelVar,
mParticleSystem.PlistPath,mParticleSystem.TexturePath,mParticleSystem.TextureImageData,
mParticleSystem.TotalParticles
);
}
开发者ID:06linux,项目名称:Cocos2d-x-ParticleEditor-for-Windows,代码行数:33,代码来源:ParticleEditorForm.cs
示例9: PropertyGridPropertyValueChanged
private void PropertyGridPropertyValueChanged(object s, PropertyValueChangedEventArgs e)
{
PropertyInfo pInfo = typeof(ColorArray).GetProperty(e.ChangedItem.PropertyDescriptor.Name,
BindingFlags.Public | BindingFlags.Instance);
pInfo.SetValue(StyleManager.GetControlDescription(treeView.SelectedNode.Text).ColorArray,
((OColor) e.ChangedItem.Value).ToColor4(), null);
}
开发者ID:yong-ja,项目名称:starodyssey,代码行数:7,代码来源:StyleEditor.cs
示例10: propertyGrid1_PropertyValueChanged
private void propertyGrid1_PropertyValueChanged(object s, PropertyValueChangedEventArgs e)
{
//form view click on propertygrid1 goto prop and click on events and doubleclick on propertyvaluechanged to generat this.
Reload();//reload method
//form view prop select 'selectedObject' choose button1 and at runtime can get propery's for button1 or any object is set.
}
开发者ID:ChrisPaine,项目名称:C-sharp,代码行数:7,代码来源:Form1.cs
示例11: DefinitionObjectPropertyValueChanged
private void DefinitionObjectPropertyValueChanged(object s, PropertyValueChangedEventArgs e)
{
if (this.lastNode != null)
{
this.lastNode.PropertyChanged();
}
}
开发者ID:vanloc0301,项目名称:mychongchong,代码行数:7,代码来源:WorkbenchTreeControl.cs
示例12: onChanged
/// <summary>
/// Record the changes made to properties.
/// </summary>
/// <param name="pSender"></param>
/// <param name="pEventArgs"></param>
private void onChanged(object pSender, PropertyValueChangedEventArgs pEventArgs)
{
string name = pEventArgs.ChangedItem.Label ?? "";
object val = pEventArgs.ChangedItem.Value ?? "";
val = (name.ToLower() == "password") ? "*****" : val;
_logger.Fine("Changed {0}:{1} to {2}:{3}", _oldName, _oldValue, name, val);
}
开发者ID:thinkingmedia,项目名称:gems,代码行数:12,代码来源:Options.cs
示例13: OnPropertyValueChanged
void OnPropertyValueChanged(object s, PropertyValueChangedEventArgs e)
{
string propertyName = e.ChangedItem.Label;
CustomVariable customVariable = null;
if (mCurrentNos.SourceType == SourceType.Entity && !string.IsNullOrEmpty(mCurrentNos.SourceClassType))
{
IElement entitySave = ObjectFinder.Self.GetIElement(mCurrentNos.SourceClassType);
customVariable = entitySave.GetCustomVariable(propertyName).Clone();
}
else
{
customVariable = new CustomVariable();
customVariable.Name = propertyName;
}
customVariable.DefaultValue = e.ChangedItem.Value;
customVariable.Type = mCurrentNos.GetCustomVariable(propertyName).Type;
mCurrentElementRuntime.SetCustomVariable(customVariable);
if (mRuntimeOptions.ShouldSave)
{
GlueViewCommands.Self.GlueProjectSaveCommands.SaveGlux();
}
}
开发者ID:vchelaru,项目名称:FlatRedBall,代码行数:29,代码来源:PropertyGridManager.cs
示例14: mPropertyGrid_PropertyValueChanged
void mPropertyGrid_PropertyValueChanged(object s, PropertyValueChangedEventArgs e)
{
if (mPropertyGrid.SelectedObjects.Length == 0)
return;
mParent.GetFocusedLevelEditor().UpdateRedraw();
}
开发者ID:Megamatt01,项目名称:peggle-edit,代码行数:7,代码来源:PropertiesToolWindow.cs
示例15: SettingsGrid_PropertyValueChanged
private void SettingsGrid_PropertyValueChanged(object s, PropertyValueChangedEventArgs e)
{
if (AccountsList.SelectedIndex > -1)
{
AccountsList.Items[AccountsList.SelectedIndex] = SettingsGrid.SelectedObject;
}
}
开发者ID:modulexcite,项目名称:ShareX_Google_Code,代码行数:7,代码来源:AccountsControl.cs
示例16: PropertyGrid_PropertyValueChanged
private void PropertyGrid_PropertyValueChanged(object s, PropertyValueChangedEventArgs e)
{
var assemblyBrowser = ServiceProvider.GetInstance().GetService<IAssemblyBrowser>();
var selection = assemblyBrowser.ActiveItem;
assemblyBrowser.ActiveItem = null;
assemblyBrowser.ActiveItem = selection;
}
开发者ID:dbremner,项目名称:cecilstudio,代码行数:7,代码来源:PreviewControl.cs
示例17: volumesPropertyGrid_PropertyValueChanged
void volumesPropertyGrid_PropertyValueChanged(object s, PropertyValueChangedEventArgs e)
{
Sound.SFX sfx = (Client.Sound.SFX)Enum.Parse(typeof(Client.Sound.SFX), e.ChangedItem.Label);
float newValue = (float)e.ChangedItem.Value;
newValue = Common.Math.Clamp(newValue, 0, 1);
if (soundManager != null)
soundManager.SetSoundEffectBaseVolume(sfx, newValue);
}
开发者ID:ChristianMarchiori,项目名称:DeadMeetsLead,代码行数:8,代码来源:DeveloperSettings.cs
示例18: propertyGrid1_PropertyValueChanged
private void propertyGrid1_PropertyValueChanged(object s, PropertyValueChangedEventArgs e)
{
var o = disenchantrixPropertyGrid.SelectedObject as ItemSettings;
if(o != null) {
o.Save();
}
}
开发者ID:Wigglez,项目名称:Disenchantrix,代码行数:8,代码来源:DisenchantrixGUI.cs
示例19: OnPropertyValueChanged
protected override void OnPropertyValueChanged(PropertyValueChangedEventArgs e)
{
if (CommandRegister != null)
{
RegisterCommand(e);
}
base.OnPropertyValueChanged(e);
}
开发者ID:UGTU,项目名称:UGTUKadrProject,代码行数:8,代码来源:CommandPropertyGrid.cs
示例20: propertyGrid_PropertyValueChanged
private void propertyGrid_PropertyValueChanged(object s, PropertyValueChangedEventArgs e)
{
var sceneObject = context.Instance as SceneObject;
if (sceneObject != null)
{
sceneObject.UpdateAndRender();
}
}
开发者ID:bitzhuwei,项目名称:CSharpGL,代码行数:8,代码来源:FormPropertyGridEditor.cs
注:本文中的System.Windows.Forms.PropertyValueChangedEventArgs类示例由纯净天空整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论