public FormChainage(IHeadsApplication app) { InitializeComponent(); this.hdapp = app; PopulateData(); }
public System.Windows.Forms.Form CreateOpenElementMethodDialog(IHeadsApplication app, CHIPInfo info) { FormElementMethod formelementmethod = null; formelementmethod = new FormElementMethod(app, info); return(formelementmethod); }
public System.Windows.Forms.Form CreateBoundaryDialog(IHeadsApplication app, bool bMakeString) { MakeString.FormMakeString formmakestring = null; //Only one polyline object is selected IHdEntity[] selections = app.ActiveDocument.GetUserSelection(Resources.ST_PROMPT_SELECT_POLYLINE); IHdPolyline3D polyline = null; if (selections.Length == 1) { IHdEntity entity = selections[0]; //DictionaryEntry de = selections[0]; if (entity.EntityName == "POLYLINE3D") { polyline = (IHdPolyline3D)entity; } } if (polyline != null) { MakeString.FormMakeString.OpenMode mode = (bMakeString == true) ? MakeString.FormMakeString.OpenMode.MakeString : HeadsFunctions1.MakeString.FormMakeString.OpenMode.Boundary; formmakestring = new MakeString.FormMakeString(app, polyline, mode); } else { MessageBox.Show(Resources.ST_PROMPT_SELECT_POLYLINE, HeadsUtils.Constants.ProductName); } return(formmakestring); }
public FormHipMethod(IHeadsApplication app, CHIPInfo hipinfo) { InitializeComponent(); this.m_app = app; this.InitGrid(); List <CHHipData> listHhip = new List <CHHipData>(); GetDetailsFromExistingData(hipinfo, ref listHhip); foreach (CHHipData hdata in listHhip) { this.AddRow(hdata); } this.txtModelName_.ReadOnly = true; this.txtStringlabel_.ReadOnly = true; //draw the polyline ApplyHIP(); checkBoxDefaultRead_.Checked = false; this.UpdateRadiousValue(); this.UpdateDeltaValue(); this.m_app.ActiveDocument.RefreshDocument(); this.m_app.ZoomExtents(); }
public FormModellingOffset(IHeadsApplication hdapp) { InitializeComponent(); this.app = hdapp; this.PopulateModels(ref hashReferenceModel, ref hashOffsetModel); }
public FormModellingValign(IHeadsApplication app) { this.app = app; InitializeComponent(); this.btnOK_.Enabled = false; PopulateTree(); }
public System.Windows.Forms.Form CreateOffsetModelDialog(IHeadsApplication app) { Offset.FormOffset formoffset = null; //Only one polyline object is selected IHdEntity[] selections = app.ActiveDocument.GetUserSelection(Resources.ST_PROMPT_SELECT_POLYLINE); IHdPolyline3D polyline = null; if (selections.Length == 1) { IHdEntity entity = selections[0]; //DictionaryEntry de = selections[0]; if (entity.EntityName == "POLYLINE3D") { polyline = (IHdPolyline3D)entity; } } if (polyline != null) { formoffset = new Offset.FormOffset(app, polyline); } else { MessageBox.Show(Resources.ST_PROMPT_SELECT_POLYLINE, HeadsUtils.Constants.ProductName); } return(formoffset); }
public FormValignment(IHeadsApplication hdapp, CValignInfo info) { InitializeComponent(); this.app = hdapp; this.InitVipParamGridData(); this.InfoData = info; this.tbModelName_.ReadOnly = true; this.tbStringlabel_.ReadOnly = true; List <VVIP> listVipData = new List <VVIP>(); GetDetailsFromExistingData(info, ref listVipData); FillDetails(listVipData); this.ApplyValign(); checkBoxDVCL.Checked = false; UpadteGradeValue(); this.app.ActiveDocument.RefreshDocument(); this.app.ZoomExtents(); }
public System.Windows.Forms.Form CreateNewHalignHIPMethodDialog(IHeadsApplication app) { FormHipMethod formhipmethod = null; IHdEntity[] selections = app.ActiveDocument.GetUserSelection(Resources.ST_PROMPT_SELECT_POLYLINE); IHdPolyline3D polyline = null; if (selections.Length == 1) { IHdEntity entity = selections[0]; //DictionaryEntry de = selections[0]; if (entity.EntityName == "POLYLINE3D") { polyline = (IHdPolyline3D)entity; } } if (polyline != null) { formhipmethod = new FormHipMethod(app, polyline); } else { MessageBox.Show(Resources.ST_PROMPT_SELECT_POLYLINE, HeadsUtils.Constants.ProductName); } return(formhipmethod); }
public FormModellingValignViewer(CValignInfo valInfo, double chainageVal, IHeadsApplication app) { this.app = app; this.chainageVal = chainageVal; this.valInfo = valInfo; InitializeComponent(); }
public FormElementMethod(IHeadsApplication app) { InitializeComponent(); PopulateElementTypes(); this.m_app = app; }
public FormOpenValignment(IHeadsApplication hdapp) { InitializeComponent(); this.app = hdapp; this.PopulateSelectionTree(); }
public FormLoadDeflection(IHeadsApplication headsapp) { InitializeComponent(); App = headsapp; ShowPlayerCtrls(false); System.Windows.Forms.Control.CheckForIllegalCrossThreadCalls = false; }
public IWorkingDirSelector CreateWkDirDialog(IHeadsApplication app) { IWorkingDirSelector workingdirselector = new HeadsFunctions1.WorkingFolder.FormWorkingFolderSelector(); workingdirselector.WorkingFolderPath = app.AppDataPath; return(workingdirselector); }
public FormHalignModelViewer(IHeadsApplication headsapp) { InitializeComponent(); this.app = headsapp; util = new CHalignModelUtil(); util.OnShowModelInfo += new CHalignModelUtil.ShowDataEvent(util_OnShowModelInfo); }
public FormModellingHalign(IHeadsApplication headsapp) { InitializeComponent(); this.app = headsapp; this.PopulateSelectionTree(); this.treeViewDesigns_.SelectedNode = this.treeViewDesigns_.Nodes[0]; }
public FormOpenHipMethod(IHeadsApplication hdapp, OpenMode mode) { InitializeComponent(); this.app = hdapp; this.openmode = mode; this.PopulateSelectionTree(); }
public FormDetails(IHeadsApplication app, bool bIsValign) { InitializeComponent(); this.hdapp = app; this.IsValign = bIsValign; this.PopulateData(); }
public FormModellingOffsetViewer(IHeadsApplication hdApp, string strRefMod, string strRefStr, string strOffMod, string strOffStr) { InitializeComponent(); this.App = hdApp; this.RefMod = strRefMod; this.RefStr = strRefStr; this.OffMod = strOffMod; this.OffStr = strOffStr; }
public System.Windows.Forms.Form CreateCoordinateDialog(IHeadsApplication app) { System.Windows.Forms.Form frmCoordinate = null; if (app.ActiveDocument.Entities.Length > 0) { frmCoordinate = new HeadsFunctions1.Coordinates.FormCoordinates(app); } return(frmCoordinate); }
public FormElementMethod(IHeadsApplication app, CHIPInfo info) { InitializeComponent(); this.m_app = app; this.PopulateElementTypes(); this.FillFromExistingData(info); this.txtModelName_.ReadOnly = true; this.txtStringlabel_.ReadOnly = true; }
public FormOffset(IHeadsApplication hdapp, IHdPolyline3D pline) { InitializeComponent(); this.app = hdapp; this.comboOffsetType_.Items.Add(STR_402); this.comboOffsetType_.Items.Add(STR_403); this.comboOffsetType_.Items.Add(STR_404); this.InitDataFromPolyline(pline); this.comboOffsetType_.SelectedItem = STR_402; }
public FormValignment(IHeadsApplication hdapp, IHdPolyline3D pline) { InitializeComponent(); this.app = hdapp; this.InitVipParamGridData(); List <VVIP> listVipData = new List <VVIP>(); this.GetDataFromPolyLine(pline, ref listVipData); this.FillDetails(listVipData); this.MainPolyLineID = pline.ObjectID; this.checkBoxDVCL.Checked = true; }
public System.Windows.Forms.Form CreateOpenValignmentDialog(IHeadsApplication app, CValignInfo info) { FormValignment formvalignmethod = null; if (info != null || info.DataList.Count > 0) { formvalignmethod = new FormValignment(app, info); } else { MessageBox.Show("Error in Valign.fil file" , Resources.ST_ERROR_MSGBOX_CAPTION , System.Windows.Forms.MessageBoxButtons.OK , System.Windows.Forms.MessageBoxIcon.Error); } return(formvalignmethod); }
public FormHipMethod(IHeadsApplication app, IHdPolyline3D polyline) { InitializeComponent(); this.m_app = app; this.InitGrid(); List <CHHipData> listHhip = new List <CHHipData>(); this.m_iMainPolyLine = this.GetPolylineDetails(polyline, ref listHhip); foreach (CHHipData hdata in listHhip) { this.AddRow(hdata); } this.UpdateDeltaValue(); checkBoxDefaultRead_.Checked = true; }
public IHalignFilSelector CreateElementMethodSelectorDialog(IHeadsApplication app) { HeadsFunctions1.Halignment.FormOpenHipMethod formopenhipmethod = null; string strHalignFilePath = Path.Combine(app.AppDataPath, "HALIGN.FIL"); if (File.Exists(strHalignFilePath)) { formopenhipmethod = new FormOpenHipMethod(app, FormOpenHipMethod.OpenMode.ElementMethod); } else { MessageBox.Show(Resources.ST_FILE_NOTFOUND + "\n" + strHalignFilePath , Resources.ST_ERROR_MSGBOX_CAPTION , System.Windows.Forms.MessageBoxButtons.OK , System.Windows.Forms.MessageBoxIcon.Error); } return(formopenhipmethod); }
public System.Windows.Forms.Form CreateOpenHIPMethodDialog(IHeadsApplication app, CHIPInfo info) { FormHipMethod formhipmethod = null; List <CHHipData> listHhip = CHalignHipUtil.GenerateHIPData(info); if (listHhip != null || listHhip.Count > 0) { formhipmethod = new FormHipMethod(app, info); } else { MessageBox.Show("Error in Halign.fil file" , Resources.ST_ERROR_MSGBOX_CAPTION , System.Windows.Forms.MessageBoxButtons.OK , System.Windows.Forms.MessageBoxIcon.Error); } return(formhipmethod); }
public FormMakeString(IHeadsApplication hdapp, IHdPolyline3D polyline, OpenMode mode) { InitializeComponent(); this.app = hdapp; this.ptCords = polyline.Coordinates; if (mode == OpenMode.Boundary) { this.Text = "Boundary"; this.checkMasterString_.Checked = false; this.checkMasterString_.Visible = false; this.tbChainageInterval_.Visible = false; this.labelChainageInterval_.Visible = false; this.tbChainageInterval_.Value = 10000000; this.Height -= (int)((double)this.tbChainageInterval_.Height * 1.5); } }
public System.Windows.Forms.Form CreateChainageDialog(IHeadsApplication app) { System.Windows.Forms.Form frmChainage = null; string strHalignTmpPath = Path.Combine(app.AppDataPath, "HALIGN.TMP"); string strHalignFilPath = Path.Combine(app.AppDataPath, "HALIGN.FIL"); if (File.Exists(strHalignTmpPath) || File.Exists(strHalignFilPath)) { frmChainage = new Chainage.FormChainage(app); } else { MessageBox.Show(Properties.Resources.ST_FILE_NOTFOUND , Properties.Resources.ST_ERROR_MSGBOX_CAPTION , MessageBoxButtons.OK , MessageBoxIcon.Information); } return(frmChainage); }
public System.Windows.Forms.Form CreateModellingOffsetDialog(IHeadsApplication app) { HeadsFunctions1.Offset.Modelling.FormModellingOffset form = null; string strFilePath = Path.Combine(app.AppDataPath, "OFFSET.FIL"); if (File.Exists(strFilePath)) { form = new HeadsFunctions1.Offset.Modelling.FormModellingOffset(app); } else { MessageBox.Show(Resources.ST_FILE_NOTFOUND + "\n" + strFilePath , Resources.ST_ERROR_MSGBOX_CAPTION , System.Windows.Forms.MessageBoxButtons.OK , System.Windows.Forms.MessageBoxIcon.Error); } return(form); }