/// <summary> /// Applies a loaded string /// </summary> /// <param name="value">value to apply</param> public void ApplyString(StringValue value) { if (value.Key.Equals("Cooldowns")) { foreach (CooldownOption o in options) { mainGrid.Children.Remove(o); } options.Clear(); string[] pieces = value.String.Split(SPLITTER); if (pieces == null) return; for (int i = 0; i < pieces.Length / 2; i++) { CooldownOption option = AddOption(); option.Skill = pieces[i * 2]; option.SetModification(pieces[i * 2 + 1]); } } }
/// <summary> /// Applies a loaded string /// </summary> /// <param name="value">value to apply</param> public void ApplyString(StringValue value) { }
/// <summary> /// Applies a loaded string /// </summary> /// <param name="value">value to apply</param> public void ApplyString(StringValue value) { if (value.Key.Equals("World")) { worldBox.Text = value.String; } }