Exemplo n.º 1
0
 private void optUG_Click(object sender, EventArgs e)
 {
     if (optUG.Checked)
     {
         ClassObj = "WTR";
         Stake_Misc.set_fStakeProps("WTR");
     }
 }
Exemplo n.º 2
0
 private void optSD_Click(object sender, EventArgs e)
 {
     if (optSD.Checked)
     {
         ClassObj = "SD";
         Stake_Misc.set_fStakeProps("SD");
     }
 }
Exemplo n.º 3
0
 private void optFL_Click(object sender, EventArgs e)
 {
     if (optFL.Checked)
     {
         ClassObj = "FL";
         Stake_Misc.set_fStakeProps("FL");
     }
 }
Exemplo n.º 4
0
 private void optCURB_Click(object sender, EventArgs e)
 {
     if (optCURB.Checked)
     {
         ClassObj = "CURB";
         Stake_Misc.set_fStakeProps("CURB");
     }
 }
Exemplo n.º 5
0
 private void optMISC_Click(object sender, EventArgs e)
 {
     if (optMISC.Checked)
     {
         this.ClassObj = "MISC";
         Stake_Misc.set_fStakeProps("MISC");
         this.Hide();
         fMisc = Forms.Stake_Forms.sForms.fMisc;
         Application.ShowModelessDialog(Application.MainWindow.Handle, fMisc, false);
     }
 }
Exemplo n.º 6
0
        public void frmStake_Load()
        {
            bool     exists = false;
            ObjectId idDict = Dict.getNamedDictionary("STAKE_PNTS", out exists);

            this.Location = new System.Drawing.Point(0, 0);
            if (exists)
            {
                Stake_Misc.updateSTAKE_PNTS(idDict);
            }

            xRef.fixXrefs();

            Stake_XRefStatus.reloadXRefs();
            Stake_GetSurfaceCPNT.getSurfaceFromXRef("CPNT-ON", "GCAL");
            BlockReference br = xRef.getXRefBlockReference("CNTL");

            if (br == null)
            {
                Autodesk.AutoCAD.ApplicationServices.Application.ShowAlertDialog("CNTL drawing not found.  Exiting...");
                return;
            }


            CNTL_LAYER = br.Layer;

            Stake_Dict.updateAlignData();

            optBLDG.Checked = false;

            cboOffset.Items.Add(0);
            cboOffset.Items.Add(3);
            cboOffset.Items.Add(5);
            cboOffset.Items.Add(10);
            cboOffset.Items.Add(15);

            cboOffset.SelectedIndex = 0;

            cboInterval.Items.Add(10);
            cboInterval.Items.Add(20);
            cboInterval.Items.Add(25);
            cboInterval.Items.Add(50);
            cboInterval.Items.Add(100);

            cboInterval.SelectedIndex = 3;

            cboHeight.Items.Add(0);
            cboHeight.Items.Add(6);
            cboHeight.Items.Add(8);

            cboHeight.SelectedIndex = 1;

            cboTolerance.Items.Add(0);
            cboTolerance.Items.Add(5);

            cboTolerance.SelectedIndex = 1;

            cboDelta.Items.Add(2);
            cboDelta.Items.Add(3);
            cboDelta.Items.Add(4);
            cboDelta.Items.Add(8);

            cboDelta.SelectedIndex = 2;

            this.Text = "STAKE - Active Alignment is: NONE";

            try
            {
                if (Environment.UserName == "john")
                {
                    this.Height = 550;
                }
                else
                {
                    this.Height = 500;
                }
            }
            catch (System.Exception)
            {
            }
            //CgPnt_Group.checkPntGroup("SPNT");
            //Layer.manageLayers("SPNT-LABEL");
        }