예제 #1
0
 public void LoadCellsFile(string cellsFilePath)
 {
     if (System.IO.File.Exists(cellsFilePath))
     {
         Debug.WriteLine($"reading abf folder info file: [{cellsFilePath}]");
         abfInfos.Clear();
         string[] cellsFileLines = System.IO.File.ReadAllLines(cellsFilePath);
         string   group          = "no group";
         foreach (string cellsFileLine in cellsFileLines)
         {
             if (cellsFileLine.StartsWith("---"))
             {
                 group = cellsFileLine.Replace("---", "").Trim();
             }
             AbfInfo abfInfo = new AbfInfo(group: group);
             abfInfo.LoadCellsFileLine(cellsFileLine);
             if (abfInfo.IsValid())
             {
                 abfInfos.Add(abfInfo);
             }
         }
     }
     else
     {
         throw new ArgumentException($"abf folder info file does not exist: [{cellsFilePath}]");
     }
 }
예제 #2
0
        private string HtmlMenuLinkForGroup(AbfInfo info)
        {
            string html = "";

            html += $"<div style='font-weight: bold;'><br>";
            html += $"{info.group}";
            html += $"</div>";
            return(html);
        }
예제 #3
0
        private string HtmlMenuLinkForAbf(AbfInfo info)
        {
            string url      = $"?display=cell&path={response.request.path}&identifier={info.abfID}.abf";
            string comment  = response.AbfFolder.abfNotes.GetComment(info.abfID);
            string colorHex = response.AbfFolder.abfNotes.GetColorHex(info.abfID);
            string html     = "";

            html += $"<div>";
            html += $"<a class='menuParent' href='{url}' target='content' style='background-color: {colorHex}'>{info.abfID}</a> ";
            html += $"<span class='menuComment'>{comment}</span>";
            html += $"</div>";
            return(html);
        }