Esempio n. 1
0
 private void AddToBypassedRdMap(string pn, string rd, string circuitName)
 {
     try
     {
         if (BypassedRefDesMap.ContainsKey(pn))
         {
             if (BypassedRefDesMap[pn].ContainsKey(circuitName))
             {
                 BypassedRefDesMap[pn][circuitName].Add(rd);
             }
             else
             {
                 BypassedRefDesMap[pn].Add(circuitName, new List <string> {
                     rd
                 });
             }
         }
         else
         {
             Dictionary <string, List <string> > dict = new Dictionary <string, List <string> >();
             dict.Add(circuitName, new List <string> {
                 rd
             });
             BypassedRefDesMap.Add(pn, dict);
         }
     }
     catch (Exception e)
     {
         string s = string.Format("Error populating BypassedRefDes Map!\nParameters:\nPart Number : {0}\nRef Des : {1}\nCircuit Name : {2}\nError : {3}", pn, rd, circuitName, e.Message, MessageBoxButton.OK, MessageBoxImage.Error);
         MessageBox.Show(s, "AddToBypassedRdMap() Exception");
         ClearData();
         IsValid = false;
     }
 }
Esempio n. 2
0
 public void ClearData()
 {
     CircuitCount = -1;
     PanelLength  = null;
     PanelWidth   = null;
     CircuitList.Clear();
     FileType        = null;
     FileName        = null;
     FullFilePath    = null;
     CustomerDbName  = null;
     ProgramName     = null;
     MainCircuitName = null;
     MachineName     = null;
     Pass            = null;
     DateCreated     = null;
     Lines.Clear();
     Refdesmap.Clear();
     Feedermap.Clear();
     BypassedRefDesMap.Clear();
     PlacementMap.Clear();
 }