/// <summary> /// Constructor for Radix /// </summary> /// <param name="inputDataChart">InputDataChart, contains inputted values</param> /// <param name="lunarNode">True if lunar node will be used</param> /// <param name="nodeType">Type of node (mean or oscillating)</param> /// <param name="houseSystem">Indication of the housesystem to use</param> /// <param name="aspectTypes">List with supported aspectTypes</param> /// <param name="midpointOrb">Orb for midpoints</param> public Radix(InputDataChart inputDataChart, Boolean lunarNode, int nodeType, char houseSystem, ArrayList aspectTypes, int midpointOrb) { name = inputDataChart.name; location = inputDataChart.location; datetime = inputDataChart.dateText + " " + inputDataChart.timeText; coordinatesText = inputDataChart.coordinatesText; remarksText = inputDataChart.remarks; sourceText = inputDataChart.sourcetype + "\r\n" + inputDataChart.sourcedescription; chartType = inputDataChart.chartType; this.houseSystem = houseSystem; this.positionSet = new PositionSet(inputDataChart, lunarNode, nodeType, houseSystem); this.midpointOrb = midpointOrb; this.aspectTypes = aspectTypes; this.status = positionSet.status; }
/// <summary> /// Handle the sending of a message /// </summary> /// <param name="msg">The message to handle</param> /// <returns>True if message was recognized, otherwise false</returns> public Boolean sendMessage(RpMessage msg) { Boolean success = true; int x = msg.id; switch (x) { case Messages.MSG_CANCEL: closeAnyForm(msg.sender, msg.sender); break; case Messages.MSG_NEWCASE: openFrm_Dataradix(msg.sender); break; case Messages.MSG_NEWCASE_COMPLETED: this.status = Messages.MSG_NEWCASE_COMPLETED; VOInputDataRadix voir = frm_Dataradix.voInputDataRadix; InputDataChart idc = new InputDataChart(voir); this._rpCase = new RpCase(config, idc); frm_Dataradix.Close(); openFrmShowchart(msg.sender); break; case Messages.MSG_LOADCASE: // handle // openFrm_Loadcase(msg.sender); break; case Messages.MSG_SAVECASE: // handle; break; case Messages.MSG_SHOWCONFIG: openFrmConfiguration(msg.sender); break; case Messages.MSG_SHOWSETTINGS: openFrmSettings(msg.sender); break; case Messages.MSG_SHOWABOUT: openFrmAbout(msg.sender); break; case Messages.MSG_SHOWHELP: // handle; (obsolete ?) break; case Messages.MSG_CALCCASE: // handle; (obsolete ?) break; case Messages.MSG_SHOWCHART: openFrmShowchart(msg.sender); break; case Messages.MSG_SHOWPOSITIONS: openFrmShowpositions(msg.sender); break; case Messages.MSG_SHOWANALYSIS: // handle; break; case Messages.MSG_SHOWASPECTS: openFrmAnalysisAspects(msg.sender); break; case Messages.MSG_SHOWMIDPOINTS: openFrmAnalysisMidpoints(msg.sender); break; case Messages.MSG_NEWEVENT: // handle; break; case Messages.MSG_CALCEVENT: openFrmDataprog(msg.sender); break; case Messages.MSG_SHOWPROGTRANSITS: // handle; break; case Messages.MSG_SHOWPROGSECUNDARY: // handle; break; default: success = false; break; } return(success); }
/// <summary> /// Constructor for a Case /// </summary> /// <param name="config">Actual configuration</param> /// <param name="idc">Input data for a chart</param> public RpCase(Configuration config, InputDataChart idc) { this.xconfig = config; this.radix = new Radix(idc, config.lunarNode, config.nodeType, config.houseSystem, config.aspectTypes, config.midpointOrb); }