private void btnSavePoleArea_Click(object sender, EventArgs e) { if (chkUseDefaultPnlProp.Checked) { project.PvHeightGlo = lblHeight2.Text; project.PvWidthGlo = lblWidth2.Text; project.HorzSpaceGlo = txtGridSpacingX.Text; project.VertSpaceGlo = txtGridSpacingY.Text; project.PvTiltGlo = lblTilt2.Text; project.PvAzimuthGlo = lblAzimuth2.Text; project.GridRotAngGlo = Convert.ToString(pvPanelPoleGridCtl1.RotationAngle); project.pvHeightEdit = lblHeight2.Text; project.pvWidthEdit = lblWidth2.Text; project.pvTiltEdit = lblTilt2.Text; project.pvAzimuthEdit = lblAzimuth2.Text; Michael.CreateGridPole(true, true); Michael.CreatePvPanel(); } else { project.HorzSpaceGlo = txtGridSpacingX.Text; project.VertSpaceGlo = txtGridSpacingY.Text; project.GridRotAngGlo = Convert.ToString(pvPanelPoleGridCtl1.RotationAngle); Michael.CreateGridPole(true, false); } Michael.propertyGrid1.Refresh(); Michael.cmdPvPanelAngle.Enabled = true; Michael.btnMovePanels.Enabled = true; Michael.cmdExportSketchUp.Enabled = true; this.Close(); }
private void txtGridSpacingY_TextChanged(object sender, EventArgs e) { project.VertSpaceGlo = txtGridSpacingY.Text; Michael.propertyGrid1.Refresh(); if (FirstRefresh == false) { Michael.CreateGridPole(false); updateLblNumPanels(); //CreateGridPole(false); } }
private void pvPanelPoleGridCtl1_Paint_1(object sender, PaintEventArgs e) { if (FirstRefresh == false) { project.GridRotAngGlo = Convert.ToString(pvPanelPoleGridCtl1.RotationAngle); Michael.propertyGrid1.Refresh(); Michael.CreateGridPole(false); updateLblNumPanels(); //CreateGridPole(false); } FirstRefresh = false; }
private void pvPanelPoleGridCtl1_Paint(object sender, PaintEventArgs e) { Michael.CreateGridPole(); }
private void cmdPole_in_Area_Click(object sender, EventArgs e) { Michael.CreateGridPole(true); updateLblNumPanels(); //CreateGridPole(true); }