/// <summary> /// Gets the formatted image of the key signature corresponding to the index-th part. /// NOTE: The first part has index 0. /// </summary> /// <param name="Name"></param> /// <param name="Clef"></param> /// <param name="index"></param> /// <returns></returns> public static Image DrawKeySignature(string Name, Clef Clef, byte index) { Image image = new Image(); image.Source = LayoutController.GetKeySignature(Name, Clef.ToString()); image.VerticalAlignment = VerticalAlignment.Top; image.Width = 60; image.Margin = new Thickness(0, LayoutController.KeySignatureTopMargin[index], 0, 0); return(image); }
/// <summary>Gets the sentence.</summary> /// <param name="key">The key.</param> /// <returns>The sentence.</returns> public static string GetSentence(Clef key) { return(CurrentLanguage.ContainsKey(key.ToString()) ? CurrentLanguage[key.ToString()] : string.Empty); }