本文整理汇总了C#中ValueChangedEventArgs类的典型用法代码示例。如果您正苦于以下问题:C# ValueChangedEventArgs类的具体用法?C# ValueChangedEventArgs怎么用?C# ValueChangedEventArgs使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
ValueChangedEventArgs类属于命名空间,在下文中一共展示了ValueChangedEventArgs类的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的C#代码示例。
示例1: OnSelectedCompletionSetSelectionStatusChanged
private void OnSelectedCompletionSetSelectionStatusChanged(object sender, ValueChangedEventArgs<CompletionSelectionStatus> e)
{
if (e.NewValue != null && e.NewValue.Completion != null)
{
this.view.Select(e.NewValue.Completion);
}
}
开发者ID:BEllis,项目名称:SpecFlow,代码行数:7,代码来源:CompletionSessionPresenter.cs
示例2: OnActivityChanged
private void OnActivityChanged(object sender, ValueChangedEventArgs<Activity> valueChangedEventArgs)
{
if (valueChangedEventArgs.NewValue != null)
{
_semaphore.Release();
}
}
开发者ID:india-rose,项目名称:xamarin-indiarose,代码行数:7,代码来源:ServiceInitializerWrapper.cs
示例3: InitTts
//todo a tester sur faible api
private void InitTts(object sender, ValueChangedEventArgs<Activity> valueChangedEventArgs)
{
if (_speakerSpeech == null)
{
Initialize();
}
}
开发者ID:india-rose,项目名称:xamarin-indiarose,代码行数:8,代码来源:TextToSpeechService.cs
示例4: rate_ValueChanged_1
private void rate_ValueChanged_1(object sender, ValueChangedEventArgs<double> e)
{
Rating r = sender as Rating;
if (EventOutput != null)
{
EventOutput.Text = string.Format("You selected '{0}'", e.NewValue.ToString());
EventOutput.Text += string.Format("\nOld Value: {0}, New Value: {1}", e.OldValue.ToString(), e.NewValue.ToString());
}
}
开发者ID:sk8tz,项目名称:callisto,代码行数:9,代码来源:RatingControl.xaml.cs
示例5: OnSourceServerChanged
protected override void OnSourceServerChanged(object sender, ValueChangedEventArgs<SourceTileServer> e)
{
base.OnSourceServerChanged(sender, e);
var mapTileProvider = TileProvider as MapTileProvider;
if (mapTileProvider == null)
throw new ArgumentException("MercatorShaderMap's TileProvider should be only MapTileProvider.");
mercatorTransform = new MercatorTransform(mapTileProvider.MaxShaderLatitude);
}
开发者ID:XiBeichuan,项目名称:hydronumerics,代码行数:10,代码来源:MercatorShaderMap.cs
示例6: MapScreenControl_MapChanged
/// <summary>
/// Handles the corresponding event.
/// </summary>
/// <param name="sender">The source of the event.</param>
/// <param name="e">The <see cref="ValueChangedEventArgs{EditorMap}"/> instance containing the event data.</param>
void MapScreenControl_MapChanged(MapScreenControl sender, ValueChangedEventArgs<EditorMap> e)
{
// When the map changes, and it was our map that made the ToolBar visibile, then update the reference on the ToolBar
var tb = ToolBar.GetToolBar(ToolBarVisibility);
if (tb == null)
return;
var dispObj = GetToolBarObject();
if (dispObj != null && tb.DisplayObject == dispObj)
tb.DisplayObject = dispObj;
}
开发者ID:Vizzini,项目名称:netgore,代码行数:17,代码来源:EditMapForm.cs
示例7: ChildTable_ValueChanged
//If a child row switches to a new parent, both the old and
//the new parents are affected. (eg, depositing a payment)
void ChildTable_ValueChanged(object sender, ValueChangedEventArgs e)
{
if (e.Column == ChildRelation.ChildColumn) {
var oldRow = (Row)e.OldValue;
if (oldRow != null)
OnRowInvalidated(oldRow);
var newRow = e.Row.Field<Row>(e.Column);
if (newRow != null)
OnRowInvalidated(newRow);
}
}
开发者ID:ShomreiTorah,项目名称:Libraries,代码行数:14,代码来源:Concrete+Row+Dependencies.cs
示例8: _echoPin_ValueChanged
/// <summary>
/// Handles the pin's value changed event.
/// </summary>
/// <param name="sender"></param>
/// <param name="args"></param>
private void _echoPin_ValueChanged(IGpioPin sender, ValueChangedEventArgs args)
{
if (args.Edge == GpioPinEdge.RisingEdge)
{
_timer.Reset();
_timer.Start();
}
if (args.Edge == GpioPinEdge.FallingEdge)
{
_timer.Stop();
this.OnDistanceSensed(this, new DistanceSensedEventArgs(_timer.Elapsed));
}
}
开发者ID:CaptainBart,项目名称:Windows.Devices.Gpio.Components,代码行数:19,代码来源:UltraSonicSensor.cs
示例9: viewport_PanningStateChanged
private void viewport_PanningStateChanged(object sender, ValueChangedEventArgs<Viewport2DPanningState> e)
{
if (e.CurrentValue == Viewport2DPanningState.Panning && e.PreviousValue == Viewport2DPanningState.NotPanning)
{
prevVisible = Visible;
}
else if (e.CurrentValue == Viewport2DPanningState.NotPanning && e.PreviousValue == Viewport2DPanningState.Panning)
{
notMineEvent = true;
try
{
Visible = viewport.Visible;
}
finally { notMineEvent = false; }
}
}
开发者ID:XiBeichuan,项目名称:hydronumerics,代码行数:16,代码来源:Viewport2dDeferredPanningProxy.cs
示例10: trackBar1_ValueChanged
private void trackBar1_ValueChanged(object sender, EventArgs e)
{
if (this.ValueUpdated != null)
{
TrackBar bar = (TrackBar)sender;
//reduce # of unnecessary value changed events
if (Math.Abs(bar.Value - prevValue) >= bar.SmallChange)
{
prevValue = bar.Value;
//Console.WriteLine(prevValue);
ValueChangedEventArgs args = new ValueChangedEventArgs(bar.Value);
this.ValueUpdated(this, args);
}
}
}
开发者ID:nguyenq,项目名称:VietOCR3.NET,代码行数:16,代码来源:TrackbarDialog.cs
示例11: p_ValueDelegate
private static void p_ValueDelegate(object sender, ValueChangedEventArgs args)
{
#if BASIC // comment/uncomment first line to switch logic path
// basic event handling
Console.WriteLine("{0} changed to {1}", args.OldValue, args.NewValue);
Console.WriteLine(sender.ToString()); // call overridden ToString() on the sender object (person in this case)
#else
// more advanced event handling; allows for reflection inside the object to get property NAME, the value of which is compared to the argument value
PropertyInfo[] properties = sender.GetType().GetProperties();
string changedProperty = "";
foreach (PropertyInfo property in properties)
{
if (property.GetValue(sender).Equals(args.NewValue)) // may be more efficient with a do or while loop
{
changedProperty = property.Name;
}
}
Console.WriteLine("{0} changed from {1} to {2}", changedProperty, args.OldValue, args.NewValue);
Console.WriteLine(sender.ToString());
#endif
}
开发者ID:nzjohnah,项目名称:cpp,代码行数:23,代码来源:Program.cs
示例12: OnOverlayDisplayModeChanged
private void OnOverlayDisplayModeChanged(object sender, ValueChangedEventArgs<OverlayDisplayMode> e)
{
OverlayWindow overlay = sender as OverlayWindow;
if (overlay != null)
{
Settings.Default.OverlayDisplayMode = (int)overlay.DisplayMode;
Settings.Default.Save();
}
}
开发者ID:308465570,项目名称:FFXIV-Zodiac-Glass,代码行数:10,代码来源:App.xaml.cs
示例13: OnDataPointValueChanged_EventHandler
private void OnDataPointValueChanged_EventHandler(object sender, ValueChangedEventArgs e)
{
this.OnDataPointValueChanged(sender as DataPoint, e.ValueName, e.OldValue, e.NewValue);
if (this.DataPointValueChanged == null)
return;
this.DataPointValueChanged(sender, e);
}
开发者ID:sulerzh,项目名称:chart,代码行数:7,代码来源:Series.cs
示例14: hsb3_ValueChanged
void hsb3_ValueChanged(object sender, ValueChangedEventArgs e)
{
if (btnTitle.Text == "Sprite Change Attribute") {
lbl3.Text = "Value: " + hsb3.Value;
} else if (btnTitle.Text == "Arena Attribute") {
lbl1.Text = "Maps: " + hsb3.Value;
} else if (btnTitle.Text == "Drop Shop Attribute") {
lbl3.Text = "Given Value: " + hsb3.Value;
}
}
开发者ID:ChaotixBluix,项目名称:PMU-Client,代码行数:10,代码来源:winGame.MapEditor.cs
示例15: OnValueChanged
protected internal void OnValueChanged(ValueChangedEventArgs<decimal> args)
{
this.Invoke(VALUE_CHANGED_ID, args);
}
开发者ID:TheFlyingFiddle,项目名称:Project-Monocle,代码行数:4,代码来源:NumberBox.cs
示例16: hTilesetSelect_ValueChanged
void hTilesetSelect_ValueChanged(object sender, ValueChangedEventArgs e)
{
if (lblSelectedTileset.Text != "Tileset " + e.NewValue.ToString()) {
lblSelectedTileset.Text = "Tileset " + e.NewValue.ToString();
for (int i = 0; i < picTilesetPreview.Length; i++) {
if (picTilesetPreview[i].Image != null) {
picTilesetPreview[i].Image.Dispose();
picTilesetPreview[i].Image = null;
}
picTilesetPreview[i].Image = new Surface(Graphics.GraphicsManager.Tiles[e.NewValue][(i + 1)]);
}
}
}
开发者ID:ChaotixBluix,项目名称:PMU-Client,代码行数:13,代码来源:winGame.MapEditor.cs
示例17: CallEvent
public override void CallEvent(FirebaseException firebaseException)
{
var valueChangedEventArgs = new ValueChangedEventArgs(firebaseException);
@event(valueChangedEventArgs);
}
开发者ID:snargledorf,项目名称:Sharpbase,代码行数:5,代码来源:ValueChangedEventContract.cs
示例18: Tickets_ValueChanged
void Tickets_ValueChanged(object sender, ValueChangedEventArgs<RaffleTicket> e)
{
UpdateStats();
}
开发者ID:ShomreiTorah,项目名称:Rafflizer,代码行数:4,代码来源:TicketsForm.cs
示例19: ViewGroup_DockStateChanging
private void ViewGroup_DockStateChanging(object sender, ValueChangedEventArgs<ViewGroup, DockState> e)
{
if (e.NewValue == DockingLibrary.DockState.Hide)
Hide();
if (DockState != DockingLibrary.DockState.Hide && e.NewValue != DockingLibrary.DockState.Hide)
OnDockStateChangingInternal(e.OldValue, e.NewValue);
}
开发者ID:pedone,项目名称:DockingLibrary,代码行数:8,代码来源:View.cs
示例20: World_MapChanged
/// <summary>
/// Handles the map change event for targeting.
/// </summary>
/// <param name="sender">The source of the event.</param>
/// <param name="e">The <see cref="ValueChangedEventArgs{Map}"/> instance containing the event data.</param>
void World_MapChanged(World sender, ValueChangedEventArgs<Map> e)
{
MouseOverTarget = null;
_target = null;
}
开发者ID:Vizzini,项目名称:netgore,代码行数:10,代码来源:Targeter.cs
注:本文中的ValueChangedEventArgs类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论