public override string ToString() { try { string strPropsToString = string.Empty; strPropsToString += String.Format("{0,11} {1}\n", "Name:", Name); strPropsToString += String.Format("{0,11} {1,6} ( {2} )\n", "From:", ObjectFrom.Name, OrbitFrom.ToString()); strPropsToString += String.Format("{0,11} {1,6} ( {2} )\n", "To:", ObjectTo.Name, OrbitFrom.ToString()); strPropsToString += String.Format("{0,11} {1,6} \n", "Ph. Angle:", strPhAngle); strPropsToString += String.Format("{0,11} {1,6} \n", "Tr. Time:", strTransferTime); strPropsToString += String.Format("{0,11} {1,6} \n", "I.B.L.W:", strInterval); strPropsToString += String.Format("{0,11} {1,6} \n", "Δv:", strInterval); return(strPropsToString); } catch (Exception) { throw; } }
public List <Run> ToShortRunList() { try { List <Run> objPropsRunList = new List <Run>(); objPropsRunList.Clear(); //objPropsRunList.Add(new Run("\t")); objPropsRunList.Add(Globals.coloredRun("[ ", ValueBrush)); objPropsRunList.Add(Globals.coloredRun(ObjectFrom.Name, ObjectFrom.objectColour, "From " + OrbitFrom.ToString())); objPropsRunList.Add(Globals.coloredRun(" --> ", TitleBrush)); objPropsRunList.Add(Globals.coloredRun(ObjectTo.Name, ObjectTo.objectColour, "To " + OrbitTo.ToString())); objPropsRunList.Add(Globals.coloredRun(" ]", ValueBrush)); objPropsRunList.Add(new Run(Environment.NewLine)); objPropsRunList.Add(Globals.coloredRun("Ej. Angle: ", TitleBrush, "Ejection Angle.")); objPropsRunList.Add(Globals.coloredRun(strEjectionAngle, ValueBrush, "Ejection Angle.")); objPropsRunList.Add(new Run(Environment.NewLine)); objPropsRunList.Add(Globals.coloredRun("Ej. ΔV. : ", TitleBrush, "Ejection Velocity.")); objPropsRunList.Add(Globals.coloredRun(strHohmannDV, ValueBrush, "Ejection Velocity.")); objPropsRunList.Add(new Run(Environment.NewLine)); objPropsRunList.Add(Globals.coloredRun("Ph. Angle: ", TitleBrush, "Departure Phase Angle.")); objPropsRunList.Add(Globals.coloredRun(strPhAngle, ValueBrush, "Departure Phase Angle.")); objPropsRunList.Add(new Run(Environment.NewLine)); objPropsRunList.Add(Globals.coloredRun("Tr. ΔV : ", TitleBrush, "Transfer ΔV\r\n(Calculated as summarise of routes from ΔV maps)")); objPropsRunList.Add(Globals.coloredRun(strDv, ValueBrush, "Transfer ΔV\r\n(Calculated as summarise of routes from ΔV maps)")); objPropsRunList.Add(new Run(Environment.NewLine)); objPropsRunList.Add(Globals.coloredRun("Tr. Time : ", TitleBrush, "Hohmann's Transfer Time")); objPropsRunList.Add(Globals.coloredRun(strTransferTime, ValueBrush, "Hohmann's Transfer Time")); objPropsRunList.Add(new Run(Environment.NewLine)); objPropsRunList.Add(Globals.coloredRun("I.B.L.W : ", TitleBrush, "Interval between launch windows.")); objPropsRunList.Add(Globals.coloredRun(strInterval, ValueBrush, "Interval between launch windows.")); return(objPropsRunList); } catch (Exception) { throw; } }