private string RemoveArrayBrackets(IValueTag vortexObject) { var symbol = vortexObject.Symbol; var bracketPosition = symbol.IndexOf('['); return(symbol.Substring(0, bracketPosition)); }
private void ChangeImage(IValueTag sender, ValueChangedEventArgs args) { var scrollPosition = new Dictionary <short, double>() { { 100, 0.0 }, { 200, 220 }, { 300, 524 }, { 400, 819 }, { 500, 1011 }, { 600, 1203 }, { 700, 1395 }, { 800, 1504 } }; var fileName = $@"{rootPath.DirectoryName}\Tutorial\401_ConnectingDots\Images\100-800.png"; if (File.Exists(fileName)) { this.Dispatcher.Invoke(() => { if (scrollPosition.ContainsKey((dynamic)args.NewValue)) { scrollImage.ScrollToVerticalOffset(scrollPosition[(dynamic)args.NewValue]); } }); } }
void ValidateCanExecute(IValueTag sender, ValueChangedEventArgs args) { TcoAppDomain.Current.Dispatcher.Invoke(() => { CanExecuteChanged(sender, args); }); }
public void ValidateCanExecute(IValueTag sender, ValueChangedEventArgs args) { Dispatcher.Get.Invoke(() => { CanExecuteChanged?.Invoke(sender, args); }); }
private void LogShadowChanges(IValueTag valueTag, object original, object newValue) { var userName = ""; try { userName = TcOpen.Inxton.Local.Security.SecurityManager.Manager.Principal.Identity.Name; } catch { userName = "******"; } Changes.Add(new ValueChangeItem() { ValueTag = new ValueItemDescriptor(valueTag), OldValue = original, NewValue = newValue, DateTime = DateTime.Now, UserName = userName }); }
private void AddToFavourites(IValueTag valueTag) => DataContext.FavouriteCommand.Execute(valueTag);
private void TcoToggleTask_StateChanged(IValueTag sender, ValueChangedEventArgs args) { UpdateCaption(); }
public void AddValueTag(IValueTag valueTag) { _valueTags.Add(valueTag); }
public void AddValueTag(IValueTag valueTag) { _obj.AddValueTag(valueTag); }
public ValueItemDescriptor(IValueTag valueTag) { this.HumanReadable = valueTag.HumanReadable; this.Symbol = valueTag.Symbol; }
private void AddNewItem(IValueTag valueTag) => Tree.Add(new TreeItem(valueTag));
public TreeItem(IValueTag tag) { Header = tag.Symbol; Item = tag; }
private void TaskStateChanged(IValueTag sender, ValueChangedEventArgs args) { ButtonState = ViewModel.Component.StateToButtonClass(); IsTaskRunning = ViewModel.Component.GetTaskState(); }
internal void AddItem(IValueTag valueTag) => Children.Add(new TreeItem(valueTag));
internal void RemoveFavourite(IValueTag valueTag) => Favourites.Remove(valueTag);
internal void AddFavourite(IValueTag valueTag) => Favourites.Add(valueTag);
public void ValidateCanExecuteAbortRestore(IValueTag sender, ValueChangedEventArgs args) { Abort.ValidateCanExecute(sender, args); Restore.ValidateCanExecute(sender, args); }
private void AddNewItem(IValueTag tag) => DataContext.AddItemCommand.Execute(parameter: tag);
internal static void EditValueChange(IValueTag valueTag, dynamic original, dynamic newValue) { TcoAppDomain.Current.Logger.Information($"'{valueTag.Symbol}' value changed from '{original}' to '{newValue}' {{@payload}}", new { Path = valueTag.HumanReadable, Symbol = valueTag.Symbol }); }