Ejemplo n.º 1
0
 private void btnPktChangeCode_Click(object sender, EventArgs e)
 {
     if (points.HasPunkte)
     {
         if (points.setPointNumberToCode(cbPunktnummer.Text, cbCodePKTNeu.Text))
         {
             points.formatCurrentToCADdy(settings);
         }
     }
     else if (stpks.HasMessdaten)
     {
         stpks.getMeasuresFromCurrentCADdy(settings);
         if (stpks.setPointNumberToCode(cbPunktnummer.Text, cbCodePKTNeu.Text))
         {
             stpks.formatCurrentToCADdy(settings);
         }
     }
 }
Ejemplo n.º 2
0
 /// <summary>CADdy-Messdatenformat</summary>
 internal static void formatCADdyMessaten()
 {
     if (cuTabWhatIsThis == enWhatIAm.CADdyMeasure)
     {
         cADdyMessdaten.getMeasuresFromCurrentCADdy(pluginSettings);
         cADdyMessdaten.formatCurrentToCADdy(pluginSettings);
     }
     else
     {
         MessageBox.Show(pluginLanguage.getLanguageText("MSGBox_ClassCADdyMessdaten_NoMeasures"));
     }
 }
Ejemplo n.º 3
0
 private void btnPktChangeID_Click(object sender, EventArgs e)
 {
     if ((cuMeasures != null) && (cuMeasures.HasMessdaten))
     {
         cuMeasures.getMeasuresFromCurrentCADdy(settings);
         Double newId = Double.NaN;
         if (ClassConverters.StringToDouble(tbNewId.Text, out newId))
         {
             if (cuMeasures.setPointNumberToIDe(cbPunktnummer.Text, newId))
             {
                 cuMeasures.formatCurrentToCADdy(settings);
             }
         }
     }
 }