本文整理汇总了C#中System.Windows.Forms.PropertyValueChangedEventArgs类的典型用法代码示例。如果您正苦于以下问题:C# PropertyValueChangedEventArgs类的具体用法?C# PropertyValueChangedEventArgs怎么用?C# PropertyValueChangedEventArgs使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
PropertyValueChangedEventArgs类属于System.Windows.Forms命名空间,在下文中一共展示了PropertyValueChangedEventArgs类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的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);
}
示例2: propertyGrid_main_PropertyValueChanged
private void propertyGrid_main_PropertyValueChanged(object s, PropertyValueChangedEventArgs e)
{
if (toolStrip_main.Visible == false)
{
toolStrip_main.Visible = true;
}
}
示例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);
}
}
示例4: OnPropertyValueChanged
protected virtual void OnPropertyValueChanged(PropertyValueChangedEventArgs e)
{
if (this.PropertyValueChanged != null)
{
this.PropertyValueChanged(this, e);
}
}
示例5: PropertyGridPropertyValueChanged
private void PropertyGridPropertyValueChanged(object s, PropertyValueChangedEventArgs e)
{
if (OnPropertyChanged != null)
{
OnPropertyChanged(s, e);
}
}
示例6: pgSettings_PropertyValueChanged
private void pgSettings_PropertyValueChanged(object s, PropertyValueChangedEventArgs e)
{
if (lbAccounts.SelectedIndex > -1)
{
lbAccounts.Items[lbAccounts.SelectedIndex] = pgSettings.SelectedObject;
}
}
示例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();
}
示例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
);
}
示例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);
}
示例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.
}
示例11: DefinitionObjectPropertyValueChanged
private void DefinitionObjectPropertyValueChanged(object s, PropertyValueChangedEventArgs e)
{
if (this.lastNode != null)
{
this.lastNode.PropertyChanged();
}
}
示例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);
}
示例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();
}
}
示例14: mPropertyGrid_PropertyValueChanged
void mPropertyGrid_PropertyValueChanged(object s, PropertyValueChangedEventArgs e)
{
if (mPropertyGrid.SelectedObjects.Length == 0)
return;
mParent.GetFocusedLevelEditor().UpdateRedraw();
}
示例15: SettingsGrid_PropertyValueChanged
private void SettingsGrid_PropertyValueChanged(object s, PropertyValueChangedEventArgs e)
{
if (AccountsList.SelectedIndex > -1)
{
AccountsList.Items[AccountsList.SelectedIndex] = SettingsGrid.SelectedObject;
}
}