/// <summary> /// initializes the form, loads up all its widgets with data /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void DispatchDERForm_Load(object sender, System.EventArgs e) { _log = new XMLForm(); string DERGroupName = DERMSInterface.CIMData.operations.dispatchDER.ToString(); DERMSInterface.CIMData.header header = _cim.DispatchDERHeader; this.endPointText.Text = header.EndPoint; this.messageTypeText.Text = "Dispatch DER"; this.replyAddressText.Text = header.ReplyAddress; this.userIDText.Text = header.UserID; this.organizationText.Text = header.UserOrganization; this.contextText.Text = header.Context; this.verbText.Text = header.Verb; this.ackRequiredCheck.Checked = header.AckRequired; this.commentText.Text = header.Comment; // set to real by default. Why not? this.realRadio.Checked = true; DERMSInterface.CIMData.DERGroup group = this.group; DERGroupMRIDText.Text = group.Mrid; realValue = group.getWattCapacity(); reactiveValue = group.getVarCapacity(); realValueText.Text = realValue.ToString(); reactiveValueText.Text = reactiveValue.ToString(); }
/// <summary> /// initializes the form, filling in the values of all the widgets /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void GetDERGroupForm_Load(object sender, System.EventArgs e) { _log = new XMLForm(); string DERGroupName = DERMSInterface.CIMData.operations.getDER.ToString(); DERMSInterface.CIMData.header header = _cim.GetDERHeader; this.endPointText.Text = header.EndPoint; this.messageTypeText.Text = "Dispatch DER"; this.replyAddressText.Text = header.ReplyAddress; this.userIDText.Text = header.UserID; this.organizationText.Text = header.UserOrganization; this.contextText.Text = header.Context; this.verbText.Text = header.Verb; this.ackRequiredCheck.Checked = header.AckRequired; this.commentText.Text = header.Comment; DERGroupMRIDText.Text = group.Mrid; }