Ejemplo n.º 1
0
 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();
 }
Ejemplo n.º 2
0
 private void txtGridSpacingY_TextChanged(object sender, EventArgs e)
 {
     project.VertSpaceGlo = txtGridSpacingY.Text;
     Michael.propertyGrid1.Refresh();
     if (FirstRefresh == false)
     {
         Michael.CreateGridPole(false);
         updateLblNumPanels();
         //CreateGridPole(false);
     }
 }
Ejemplo n.º 3
0
 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;
 }
Ejemplo n.º 4
0
 private void pvPanelPoleGridCtl1_Paint(object sender, PaintEventArgs e)
 {
     Michael.CreateGridPole();
 }
Ejemplo n.º 5
0
 private void cmdPole_in_Area_Click(object sender, EventArgs e)
 {
     Michael.CreateGridPole(true);
     updateLblNumPanels();
     //CreateGridPole(true);
 }