public override void ChangeValue(ChangedEventArgs e, bool undo) { switch (e.SubHint) { case 0x641: { this.Image = (System.Drawing.Image)e.GetValue(undo); return; } case 0x642: { this.ResourceManager = (System.Resources.ResourceManager)e.GetValue(undo); return; } case 0x643: { this.Name = (string)e.GetValue(undo); return; } case 0x644: { this.Alignment = e.GetInt(undo); return; } case 0x645: { this.AutoResizes = (bool)e.GetValue(undo); return; } } base.ChangeValue(e, undo); }
public override void ChangeValue(ChangedEventArgs e, bool undo) { switch (e.SubHint) { case 0xa5b: { this.setDraggableLabel((bool)e.GetValue(undo), true); return; } case 0xa5c: { this.Icon = (DiagramShape)e.GetValue(undo); return; } case 0xa5d: { this.Label = (DiagramText)e.GetValue(undo); return; } case 0xa5e: { this.Port = (DiagramPort)e.GetValue(undo); return; } case 0xa5f: { this.setLabelOffset(e.GetSize(undo), true); return; } } base.ChangeValue(e, undo); }
public override void ChangeValue(ChangedEventArgs e, bool undo) { switch (e.SubHint) { case 0x5ab: { this.StartAngle = e.GetFloat(undo); return; } case 0x5ac: { this.SweepAngle = e.GetFloat(undo); return; } case 0x5ad: { this.ResizableStartAngle = (bool)e.GetValue(undo); return; } case 0x5ae: { this.ResizableEndAngle = (bool)e.GetValue(undo); return; } } base.ChangeValue(e, undo); }
public override void ChangeValue(ChangedEventArgs e, bool undo) { switch (e.SubHint) { case 2310: { base.Initializing = true; this.Anchor = (DiagramShape)e.GetValue(undo); base.Initializing = false; return; } case 0x907: { base.Initializing = true; this.Corner = e.GetSize(undo); base.Initializing = false; return; } case 0x908: { base.Initializing = true; this.BaseWidth = e.GetFloat(undo); base.Initializing = false; return; } } base.ChangeValue(e, undo); }
public override void ChangeValue(ChangedEventArgs e, bool undo) { switch (e.SubHint) { case 0x5c9: { this.MinorRadius = e.GetFloat(undo); return; } case 0x5ca: { this.Orientation = (System.Windows.Forms.Orientation)e.GetValue(undo); return; } case 0x5cb: { this.Perspective = (Perspective)e.GetValue(undo); return; } case 0x5cc: { this.ResizableRadius = (bool)e.GetValue(undo); return; } } base.ChangeValue(e, undo); base.ResetPath(); }
public override void ChangeValue(ChangedEventArgs e, bool undo) { switch (e.SubHint) { case 0x597: { this.A = e.GetPoint(undo); return; } case 0x598: { this.B = e.GetPoint(undo); return; } case 0x599: { this.C = e.GetPoint(undo); return; } case 0x59a: { PointF[] tfArray1 = (PointF[])e.GetValue(undo); this.myPoints = tfArray1; base.ResetPath(); base.InvalidBounds = true; this.Changed(0x59a, 0, null, DiagramShape.NullRect, 0, null, DiagramShape.NullRect); return; } } base.ChangeValue(e, undo); }
public override void ChangeValue(ChangedEventArgs e, bool undo) { switch (e.SubHint) { case 2430: { this.Name = (string)e.GetValue(undo); return; } case 0x97f: { this.Label = (GeneralNodePortLabelText)e.GetValue(undo); return; } case 0x980: { this.SideIndex = e.GetInt(undo); return; } case 0x981: { this.LeftSide = (bool)e.GetValue(undo); return; } } base.ChangeValue(e, undo); }
public override void ChangeValue(ChangedEventArgs e, bool undo) { switch (e.SubHint) { case 2000: { this.UserFlags = e.GetInt(undo); return; } case 0x7d1: { this.UserObject = e.GetValue(undo); return; } case 0x7d2: { this.ToolTipText = (string)e.GetValue(undo); return; } case 0x7d3: { this.PropertiesDelegatedToSelectionObject = (bool)e.GetValue(undo); return; } case 0x7d4: { this.PartID = e.GetInt(undo); return; } } base.ChangeValue(e, undo); }
protected virtual void OnChanged(ChangedEventArgs e) { if (Changed != null) { Changed(this, e); } }
private void SettingsOnChanged(object sender, ChangedEventArgs<KeyValuePair<string, string>> args) { if (logTextBox.InvokeRequired) { logTextBox.Invoke(new EventHandler<ChangedEventArgs<KeyValuePair<string, string>>>(SettingsOnChanged), sender, args); return; } logTextBox.AppendText("Configuration Updated."); }
public override void ChangeValue(ChangedEventArgs e, bool undo) { switch (e.SubHint) { case 0xaf1: { this.Label = (DiagramText)e.GetValue(undo); return; } case 0xaf2: { this.Background = (DiagramShape)e.GetValue(undo); return; } case 0xaf3: { this.TopPort = (DiagramPort)e.GetValue(undo); return; } case 0xaf4: { this.RightPort = (DiagramPort)e.GetValue(undo); return; } case 0xaf5: { this.BottomPort = (DiagramPort)e.GetValue(undo); return; } case 0xaf6: { this.LeftPort = (DiagramPort)e.GetValue(undo); return; } case 0xaf7: { base.Initializing = true; this.TopLeftMargin = e.GetSize(undo); base.Initializing = false; return; } case 0xaf8: { base.Initializing = true; this.BottomRightMargin = e.GetSize(undo); base.Initializing = false; return; } case 0xaf9: { this.setAutoResizes((bool)e.GetValue(undo), true); return; } } base.ChangeValue(e, undo); }
public override void ChangeValue(ChangedEventArgs e, bool undo) { if (e.SubHint == 0x58d) { this.Corner = e.GetSize(undo); } else { base.ChangeValue(e, undo); } }
public override void ChangeValue(ChangedEventArgs e, bool undo) { if (e.SubHint == 0x76d) { this.ControlType = (Type)e.GetValue(undo); } else { base.ChangeValue(e, undo); } }
public override void ChangeValue(ChangedEventArgs e, bool undo) { if (e.SubHint == 0x8a3) { this.LinkPointsSpread = (bool)e.GetValue(undo); } else { base.ChangeValue(e, undo); } }
public override void ChangeValue(ChangedEventArgs e, bool undo) { switch (e.SubHint) { case 0x5a2: { this.DistanceLeft = e.GetFloat(undo); return; } case 0x5a3: { this.DistanceRight = e.GetFloat(undo); return; } case 0x5a4: { this.DistanceTop = e.GetFloat(undo); return; } case 0x5a5: { this.DistanceBottom = e.GetFloat(undo); return; } case 0x5a6: { this.Orientation = (System.Windows.Forms.Orientation)e.GetValue(undo); return; } case 0x5a7: { this.ReshapeBehavior = (HexagonGraphReshapeBehavior)e.GetValue(undo); return; } case 0x5a8: { this.ReshapableCorner = (bool)e.GetValue(undo); return; } case 0x5a9: { this.KeepsLengthwiseSymmetry = (bool)e.GetValue(undo); return; } case 1450: { this.KeepsCrosswiseSymmetry = (bool)e.GetValue(undo); return; } } base.ChangeValue(e, undo); }
void Map_ChunkChanged(object sender, ChangedEventArgs<IChunk> e) { if (e.OldValue != null) { ChunkRenderer renderer = _renderers.FirstOrDefault(i => i.Chunk == e.OldValue); if (renderer != null) _renderers.Remove(renderer); } if (e.NewValue != null) { ChunkRenderer renderer = new ChunkRenderer(e.NewValue, _textureAtlas); _renderers.Add(renderer); } }
public override void ChangeValue(ChangedEventArgs e, bool undo) { switch (e.SubHint) { case 0x5bd: { this.Corner = e.GetSize(undo); return; } case 1470: { this.ReshapableCorner = (bool)e.GetValue(undo); return; } } base.ChangeValue(e, undo); }
public override void ChangeValue(ChangedEventArgs e, bool undo) { switch (e.SubHint) { case 2050: { this.MinimumIconSize = e.GetSize(undo); return; } case 0x803: { this.MaximumIconSize = e.GetSize(undo); return; } } base.ChangeValue(e, undo); }
public override void ChangeValue(ChangedEventArgs e, bool undo) { int num1 = e.SubHint; if (num1 != 0x3e9) { switch (num1) { case 0x44d: { object obj1 = e.GetValue(undo); if (!(obj1 is System.Drawing.Pen)) { if (obj1 is GoPenInfo) { this.Pen = ((GoPenInfo)obj1).GetPen(); } return; } this.Pen = (System.Drawing.Pen)obj1; return; } case 0x44e: { object obj2 = e.GetValue(undo); if (!(obj2 is System.Drawing.Brush)) { if (obj2 is GoBrushInfo) { this.Brush = ((GoBrushInfo)obj2).GetBrush(); } return; } this.Brush = (System.Drawing.Brush)obj2; return; } } base.ChangeValue(e, undo); } else { base.ChangeValue(e, undo); this.ResetPath(); } }
/// <summary> /// 设置播放内容为播放列表或电台 /// </summary> /// <param name="source">播放来源,null代表播放列表</param> public void SetPlaybackSource(RadioService source) { if (radio?.Radio == source?.Radio) return; var e = new ChangedEventArgs<IPlaylist>(radio ?? (IPlaylist)PlaylistService.Instance, source ?? (IPlaylist)PlaylistService.Instance); if (source == null) { radio = null; _isPlayingRadio = false; } else { radio = source; _isPlayingRadio = true; } PlaybackSourceChanged?.Invoke(this, e); InternalPlaybackSourceChanged(_isPlayingRadio); SkipNext(); }
public override void ChangeValue(ChangedEventArgs e, bool undo) { switch (e.SubHint) { case 0x51f: { this.RealLink = (Shapes.LineGraph)e.GetValue(undo); return; } case 0x520: { this.FromLabel = (DiagramShape)e.GetValue(undo); return; } case 0x521: { this.MidLabel = (DiagramShape)e.GetValue(undo); return; } case 0x522: { this.ToLabel = (DiagramShape)e.GetValue(undo); return; } case 0x523: { this.FromLabelCentered = (bool)e.GetValue(undo); return; } case 0x524: { this.MidLabelCentered = (bool)e.GetValue(undo); return; } case 0x525: { this.ToLabelCentered = (bool)e.GetValue(undo); return; } } base.ChangeValue(e, undo); }
public override void ChangeValue(ChangedEventArgs e, bool undo) { switch (e.SubHint) { case 0x835: { this.setLabelSpot(e.GetInt(undo), true); return; } case 0x836: { this.Shape = (DiagramGraph)e.GetValue(undo); return; } case 0x837: { this.Label = (DiagramText)e.GetValue(undo); return; } case 0x838: { this.Port = (DiagramPort)e.GetValue(undo); return; } case 0x839: { base.Initializing = true; this.MiddleLabelMargin = e.GetSize(undo); base.Initializing = false; return; } case 0x83a: { this.setAutoResizes((bool)e.GetValue(undo), true); return; } } base.ChangeValue(e, undo); }
public override void ChangeValue(ChangedEventArgs e, bool undo) { switch (e.SubHint) { case 0x5d3: { this.Depth = e.GetSize(undo); return; } case 0x5d4: { this.Perspective = (Perspective)e.GetValue(undo); return; } case 0x5d5: { this.ReshapableDepth = (bool)e.GetValue(undo); return; } } base.ChangeValue(e, undo); }
public override void ChangeValue(ChangedEventArgs e, bool undo) { switch (e.SubHint) { case 0x5ba: { this.Skew = e.GetSize(undo); return; } case 0x5bb: { this.ReshapableSkew = (bool)e.GetValue(undo); return; } case 0x5bc: { this.Direction = (bool)e.GetValue(undo); return; } } base.ChangeValue(e, undo); base.ResetPath(); }
public override void ChangeValue(ChangedEventArgs e, bool undo) { switch (e.SubHint) { case 1460: { this.A = e.GetPoint(undo); return; } case 0x5b5: { this.B = e.GetPoint(undo); return; } case 0x5b6: { this.C = e.GetPoint(undo); return; } case 0x5b7: { this.D = e.GetPoint(undo); return; } case 0x5b8: { this.SetPoints((PointF[])e.GetValue(undo)); return; } case 0x5b9: { this.Orientation = (System.Windows.Forms.Orientation)e.GetValue(undo); return; } } base.ChangeValue(e, undo); }
public override void ChangeValue(ChangedEventArgs e, bool undo) { switch (e.SubHint) { case 0xa29: { this.Text = (string)e.GetValue(undo); return; } case 0xa2a: { this.Icon = (DiagramShape)e.GetValue(undo); return; } case 0xa2b: { this.Label = (DiagramText)e.GetValue(undo); return; } case 0xa2c: { this.InPort = (DiagramPort)e.GetValue(undo); return; } case 0xa2d: { this.OutPort = (DiagramPort)e.GetValue(undo); return; } case 0xa2e: { this.setOrientation((System.Windows.Forms.Orientation)e.GetInt(undo), true); return; } } base.ChangeValue(e, undo); }
public override void ChangeValue(ChangedEventArgs e, bool undo) { switch (e.SubHint) { case 0x8fd: { base.Initializing = true; this.TopLeftMargin = e.GetSize(undo); base.Initializing = false; return; } case 0x8fe: { base.Initializing = true; this.BottomRightMargin = e.GetSize(undo); base.Initializing = false; return; } case 0x8ff: { this.PartID = e.GetInt(undo); return; } case 0x900: { this.Background = (DiagramShape)e.GetValue(undo); return; } case 0x901: { this.Label = (DiagramText)e.GetValue(undo); return; } } base.ChangeValue(e, undo); }
/* * public int UpdateResult(int key, string name, MyResult result) * { * ArrayList resultList = FindResultByKey(key); * if (resultList != null) * { * ResultItem item = FindItemByName(resultList, name); * if (item != null) * { * if (item.Result != result) * { * item.Result = result; * Invalidate(); * } * } * } * * return 0; * } */ public int AddResult(int key, string model, string nameOrg, MyResult result, float cost) { string name = nameOrg; string additional = string.Empty; //Filter SUB ITEMS string[] subItemsResult = nameOrg.Split(':'); if (subItemsResult.Count() > 1) { int count = subItemsResult.Count(); name = subItemsResult[0].ToString(); for (int i = 1; i < count - 1; i++) { additional += subItemsResult[i].ToString(); additional += "|"; } int length = additional.Length; additional = additional.Substring(0, length - 1); } ArrayList resultList = FindResultByKey(key); if (resultList == null) { mDictResult.Add(key, new ArrayList()); resultList = mDictResult[key]; mDictCycle.Add(key, 0); mDictTag.Add(key, string.Empty); mDictTotalCost.Add(key, 0.0f); mDictModel.Add(key, model); } // ResultItem item = FindItemByName(resultList, name); if (item != null) { item.Additional = additional; if (result == MyResult.WORKING) { item.Result = result; //Invalidate(new Rectangle(10, 30 + item.Index * 18, Width, 18)); //mCurrentWorkingIndex = item.Index; mDictWorkingItem[key] = item; if (key == CurrentKey) { Invalidate(); } EventWaitHandle[0].Set(); } else { if (item.Result != result) { item.Result = result; item.Cost = cost; if (key == CurrentKey) { Invalidate(); } //Invalidate(new Rectangle(0, 30 + item.Index * 18, Width, 18)); } } } else { int index = resultList.Count; item = new ResultItem(name, result, index, cost); item.Additional = additional; resultList.Add(item); if (result == MyResult.WORKING) { //mCurrentWorkingIndex = index; //mCycle = 0; //mTag = string.Empty; mDictCycle[key] = 0; mDictTag[key] = string.Empty; mDictWorkingItem[key] = item; EventWaitHandle[0].Set(); } else { ; } mDictHeight[key] = HeadHeight + resultList.Count * LineHeight + FootHeight; if (key == CurrentKey) { this.Height = mDictHeight[key]; Invalidate(); } } if (OnItemChanged != null && key != -1) { ChangedEventArgs args = new ChangedEventArgs(key, string.Empty); args.Elapsed = GetTotalElapsedTestTime(key);// mDictTotalCost[key] + item.Cost; OnItemChanged(this, args); } return(resultList.Count); }
private void OnChangedEvent(object sender, ChangedEventArgs e) { _logger.Debug(e.FormatMessage()); //_saveTrigger.Trigger(); Save(); }
partial void InternalSelectedChanged(ChangedEventArgs <HamburgerButtonInfo> e);
partial void InternalNavigationServiceChanged(ChangedEventArgs <INavigationService> e);
partial void InternalVisualStateWideDisplayModeChanged(ChangedEventArgs <SplitViewDisplayMode> e);
partial void InternalSecondaryButtonOrientationChanged(ChangedEventArgs <Orientation> e);
private void OnSettingsChanged(object sender, ChangedEventArgs <IRuntimeSettings> e) { ClearSettings(e.OldValue); ApplySettings(e.NewValue); }
public override void ChangeValue(ChangedEventArgs e, bool undo) { int num1 = e.SubHint; if (num1 != 0x3e9) { switch (num1) { case 0x9c5: { base.Initializing = true; this.Spacing = e.GetFloat(undo); base.Initializing = false; return; } case 0x9c6: { this.Alignment = e.GetInt(undo); return; } case 0x9c7: { base.Initializing = true; object obj1 = e.GetValue(undo); if (!(obj1 is Pen)) { if (obj1 is DiagramGraph.GoPenInfo) { this.LinePen = ((DiagramGraph.GoPenInfo)obj1).GetPen(); } goto Label_00BB; } this.LinePen = (Pen)obj1; goto Label_00BB; } case 0x9c8: { object obj2 = e.GetValue(undo); if (!(obj2 is Pen)) { if (obj2 is DiagramGraph.GoPenInfo) { this.BorderPen = ((DiagramGraph.GoPenInfo)obj2).GetPen(); } return; } this.BorderPen = (Pen)obj2; return; } case 0x9c9: { object obj3 = e.GetValue(undo); if (!(obj3 is System.Drawing.Brush)) { if (obj3 is DiagramGraph.GoBrushInfo) { this.Brush = ((DiagramGraph.GoBrushInfo)obj3).GetBrush(); } return; } this.Brush = (System.Drawing.Brush)obj3; return; } case 0x9ca: { this.Corner = e.GetSize(undo); return; } case 0x9cb: { base.Initializing = true; this.TopLeftMargin = e.GetSize(undo); base.Initializing = false; return; } case 0x9cc: { base.Initializing = true; this.BottomRightMargin = e.GetSize(undo); base.Initializing = false; return; } case 0x9cd: { base.Initializing = true; this.Orientation = (System.Windows.Forms.Orientation)e.GetInt(undo); base.Initializing = false; return; } } base.ChangeValue(e, undo); return; } base.ChangeValue(e, undo); this.ResetPath(); return; Label_00BB: base.Initializing = false; }
partial void InternalAccentColorChanged(ChangedEventArgs <Color> e) => RefreshStyles(e.NewValue);
partial void InternalHeaderContentChanged(ChangedEventArgs <UIElement> e) => UpdatePaneMarginToShowHamburgerButton();
partial void InternalIsFullScreenChanged(ChangedEventArgs <bool> e) => UpdateControl(e.NewValue);
partial void InternalHamburgerButtonVisibilityChanged(ChangedEventArgs <Visibility> e) { HamburgerButton.Visibility = e.NewValue; UpdatePaneMarginToShowHamburgerButton(); }
partial void InternalDisplayModeChanged(ChangedEventArgs <SplitViewDisplayMode> e) { UpdateControl(); UpdateHamburgerButtonGridWidthToFillAnyGap(); }
public static void ChangeFeedInfo(string feeduri, string property, string intended_value) { NonQueryCommand("update Feeds set "+property+@"="""+EscapeParam(intended_value)+@""" where uri="""+EscapeParam(feeduri)+@""""); ChangedEventArgs args = new ChangedEventArgs(); args.Uri = feeduri; args.Value = intended_value; args.ItemProperty = property; FeedChanged("", args); }
private void RefreshTipo(object sender, EventArgs e) { RefreshDataGrid(this, ChangedEventArgs.AggiornaFiltro()); }
partial void InternalIsOpenChanged(ChangedEventArgs <bool> e) { UpdateIsPaneOpen(e.NewValue); UpdateHamburgerButtonGridWidthToFillAnyGap(); UpdateControl(); }
partial void InternalHamburgerBackgroundChanged(ChangedEventArgs <Brush> e);
partial void InternalVisualStateWideMinWidthChanged(ChangedEventArgs <double> e);
partial void InternalNavButtonCheckedForegroundChanged(ChangedEventArgs <Brush> e);
partial void InternalAccentColorChanged(ChangedEventArgs <Color> e);
partial void InternalNavButtonCheckedIndicatorBrushChanged(ChangedEventArgs <Brush> e);
partial void InternalSecondarySeparatorChanged(ChangedEventArgs <Brush> e);
partial void InternalNavButtonPressedBackgroundChanged(ChangedEventArgs <Brush> e);
partial void InternalIsFullScreenChanged(ChangedEventArgs <bool> e);
partial void InternalNavButtonHoverBackgroundChanged(ChangedEventArgs <Brush> e);
private void sliderRot_RealTimeValueChanged(object sender, ChangedEventArgs e) { this.cubeTransform.LocalRotation = new Vector3(MathHelper.ToRadians(this.sliderRotX.Value), MathHelper.ToRadians(this.sliderRotY.Value), 0); }
partial void InternalHamburgerButtonVisibilityChanged(ChangedEventArgs <Visibility> e);
void Visibility_Changed(object sender, ChangedEventArgs<CardVisibility> e) { ObservableProperty<CardVisibility, CardModel> prop = (ObservableProperty<CardVisibility, CardModel>)sender; if(e.OldValue == CardVisibility.Visible && e.NewValue != CardVisibility.Visible) prop.Owner.hiddenCode = GetFirstAvaiableHiddenCode(); else if(e.OldValue != CardVisibility.Visible && e.NewValue == CardVisibility.Visible) { MakeAvaiableHiddenCode(prop.Owner.hiddenCode); prop.Owner.hiddenCode = 0; } }
partial void InternalDisplayModeChanged(ChangedEventArgs <SplitViewDisplayMode> e);
partial void InternalPaneBorderBrushChanged(ChangedEventArgs <Brush> e);
partial void InternalNavAreaBackgroundChanged(ChangedEventArgs <Brush> e);
public static void ChangeItemInfo(string feeduri, string itemuri, string property, string intended_value) { //optimize NonQueryCommand("update "+GetGeneratedName(feeduri)+" set "+property+@"="""+EscapeParam(intended_value)+@""" where uri="""+EscapeParam(itemuri)+@""""); ChangedEventArgs args = new ChangedEventArgs(); args.Uri = itemuri; args.FeedUri = feeduri; args.Value = intended_value; args.ItemProperty = property; ItemChanged("", args); }
partial void InternalVisualStateNormalDisplayModeChanged(ChangedEventArgs <SplitViewDisplayMode> e) => UpdateVisualStates();