/// <summary> Methode: getTonart(eTonart id) /// <para>gibt eine Tonart aus</para> /// </summary> /// <param name="id">ID der Tonart, TYP: <b><i>eTonart</i></b></param> /// <returns>Tonart-Objekt, TYP: <b><i>ds_Tonart</i></b></returns> /// . /// <remarks> /// <para> Programmierer : Michael Pütz</para> /// Version : 0 /// <para> Unterversion : 1</para> /// Revision : 2 /// <para> letzteBearbeitung: 2016-12-17 18:00:11</para> /// <para> ersteBearbeitung : 2016-12-17 17:57:48</para> /// . /// <para> getestet am : </para> /// </remarks> public static ds_Tonart getTonart(eTonart id) { #region DEBUG_INFO #if TEST string MethodenName = KLASSE + ".getTonart(eTonart id)"; #if START MethodeStart = new wnd_StatusOn(MethodenName); #endif //START #if EINGABE MethodeInfo = new wnd_Info(MethodenName, "ID: " + id.ToString()); #endif //EINGABE #endif //TEST #endregion DEBUG_INFO ds_Tonart ausgabe = _liste[(int)id]; #region DEBUG_INFO #if TEST #if AUSGABE AnzeigeTonartData = new Anz_TonartData(MethodenName, ausgabe); #endif //AUSGABE #if START MethodeEnde = new wnd_StatusOff(MethodenName); #endif //START #endif //TEST #endregion DEBUG_INFO return(ausgabe); }
/// <summary> Methode: erzeugeTonart(name,id) /// <para>erzeugt eine neue Datenbank</para> /// </summary> /// <param name="name">lbl_Name der Tonart, TYP: <b><i>STRING</i></b></param> /// <param name="id">ID der Tonart, TYP: <b><i>eTonart</i></b></param> /// <returns>Tonart, TYP: <b><i>ds_Tonart</i></b></returns> /// . /// <remarks> /// <para> Programmierer : Michael Pütz</para> /// Version : 0 /// <para> Unterversion : 1</para> /// Revision : 2 /// <para> letzteBearbeitung: 2016-12-17 17:44:15</para> /// <para> ersteBearbeitung : 2016-11-24 14:07:18</para> /// . /// <para> getestet am : </para> /// </remarks> private static ds_Tonart erzeugeTonart(string name, eTonart id) { #region DEBUG_INFO #if TEST string MethodenName = KLASSE + ".erzeugeTonart(name,id)"; #if START MethodeStart = new wnd_StatusOn(MethodenName); #endif //START #endif //TEST #endregion DEBUG_INFO ds_Tonart ausgabe = new ds_Tonart(name, id); #region DEBUG_INFO #if TEST #if INIT MethodeInfo = new wnd_Info(MethodenName, "Name der Tonart: " + name, "ID der Tonart: " + id.ToString()); MethodeEnde = new wnd_StatusOff(MethodenName); #endif //INIT #endif //TEST #endregion DEBUG_INFO return(ausgabe); }
/// <summary> Konstruktor(name,id) /// <para>initialisiert die Klasse mit:</para> /// <para>- lbl_Name der Tonart</para> /// <para>- ID der Tonart</para> /// </summary> /// <param name="name">lbl_Name der Tonart, TYP: STRING</param> /// <param name="id">ID der Tonart, TYP: INT</param> /// . /// <remarks> /// <para>Der Typ der Instanz ist "Tonart"</para> /// <para> Programmierer : Michael Pütz</para> /// Version : 0 /// <para> Unterversion : 1</para> /// Revision : 2 /// <para> letzteBearbeitung: 2016-12-17 16:04:39</para> /// <para> ersteBearbeitung : 2016-11-23 14:17:24</para> /// . /// <para> getestet am : </para> /// </remarks> public ds_Tonart(string name, eTonart id) : base(name, dType.Tonart, (int)id) { #region DEBUG_INFO #if TEST string MethodenName = KLASSE + "(name,id)"; #if START MethodeStart = new wnd_StatusOn(MethodenName); #endif //START #if INIT MethodeInfo = new wnd_Info(MethodenName, "EINGABEN:", "NAME: " + name, "ID: " + id); MethodeInfo = new wnd_Info(MethodenName, "an BASISKLASSE weitergeleitet:", "Name: " + name, "Typ: " + dType.Tonart, "ID: " + id.ToString()); #endif //INIT #endif //TEST #endregion DEBUG_INFO _id = id; #region DEBUG_INFO #if TEST #if START MethodeEnde = new wnd_StatusOff(MethodenName); #endif //START #endif //TEST #endregion DEBUG_INFO }