public void Cleanup() { test_meiprop = null; prop_obj = null; test_meimensur = null; mensur_obj = null; }
public void Init() { test_meiprop = new Proport(); prop_obj = new Proportion(); test_meimensur = new mei.Mensur(); mensur_obj = new Model.Mensur(); }
/// <summary> /// Adds properties to a Mensur object. /// </summary> /// <param name="_mensobj">Empty mensur object</param> /// <param name="_meimensur">MEI mensur element</param> /// <returns>Mensur object with data</returns> public static Model.Mensur ConvertMensur(Model.Mensur _mensobj, mei.Mensur _meimensur) { //Convert logic mensural values //If Modus and modusmaior are null, set value to 2 _mensobj.Maximodus = ConvertLogicMensurAttribute(_meimensur.GetModusmaiorAttribute(), false, 2); _mensobj.Modus = ConvertLogicMensurAttribute(_meimensur.GetModusminorAttribute(), false, 2); //Tempus and Prolatio are not allowed to be null _mensobj.Tempus = ConvertLogicMensurAttribute(_meimensur.GetTempusAttribute()); _mensobj.Prolatio = ConvertLogicMensurAttribute(_meimensur.GetProlatioAttribute()); //Get sign _mensobj.Sign = GetSign(_meimensur); return(_mensobj); }