예제 #1
0
 /// <summary>Koordinatendatei nach Punktnummern sortieren</summary>
 internal static void sortByNumber()
 {
     if (cuTabWhatIsThis == enWhatIAm.CADdyCoord)
     {
         cADdyPoints.getPointsFromCurrentCADdy(pluginSettings);
         cADdyPoints.sortBy(enPointColumn.colPointnumber);
         cADdyPoints.formatCurrentToCADdy(pluginSettings);
     }
     else
     {
         MessageBox.Show(pluginLanguage.getLanguageText("MSGBox_ClassCADdyPunkte_NoPoints"));
     }
 }
예제 #2
0
        /// <summary>Vergleich erstellen</summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void btnMakeCompare_Click(object sender, EventArgs e)
        {
            String           cuFile = ClassNPPTools.getCurrentFile();
            ClassCADdyPunkte file1  = new ClassCADdyPunkte(ref language);

            ClassNPPTools.switchToFile(cbList1.Text);
            file1.getPointsFromCurrentCADdy(settings);
            displayComparePoints.Clear();
            ClassCADdyPunkte file2 = new ClassCADdyPunkte(ref language);

            ClassNPPTools.switchToFile(cbList2.Text);
            file2.getPointsFromCurrentCADdy(settings);
            ClassNPPTools.switchToFile(cuFile);
            file1.sortBy(enPointColumn.colPointnumber);
            file2.sortBy(enPointColumn.colPointnumber);

            foreach (ClassCADdyPunkt point1 in file1.Punkte)
            {
                ClassCADdyPunkt point2 = file2.getPointByName(point1.Punktnummer);
                if (point2 != null)
                {
                    displayComparePoints.Add(new ClassCADdyPointCompare(point1, point2, 3, 4));
                }
            }
            file1.clear();
            file1 = null;
            file2.clear();
            file2 = null;
            this.dgvCompare.Refresh();
        }