Exemplo n.º 1
0
 public void SetDefaultOptions()
 {
     DictionaryOfOptions.Add("Color Code", "None");
     DictionaryOfOptions.Add("Report Type", "PDF");
     DictionaryOfOptions.Add("Fiber Type", "Default");
     DictionaryOfOptions.Add("MFBFunction", "Focus And Analyze");
     DictionaryOfOptions.Add("AutoSaveFunction", "Never");
     DictionaryOfOptions.Add("IECSpec", "UPC SM RL>=45 DB");
 }
Exemplo n.º 2
0
 public void UpdateOption(string key, string value)
 {
     try
     {
         try
         {
             DictionaryOfOptions.Remove(key);
         }
         catch
         {
         }
         DictionaryOfOptions.Add(key, value);
         Update();
     }
     catch
     {
     }
 }
Exemplo n.º 3
0
 public void UpdateOptions(List <string> keys, List <string> values)
 {
     for (int x = 0; x < keys.Count; x++)
     {
         try
         {
             try
             {
                 DictionaryOfOptions.Remove(keys[x]);
             }
             catch
             {
             }
             DictionaryOfOptions.Add(keys[x], values[x]);
         }
         catch
         {
         }
     }
     Update();
 }
Exemplo n.º 4
0
 public void SaveOptions(Dictionary <string, string> Options)
 {
     try
     {
         ClearOptions();
         foreach (KeyValuePair <string, string> entry in Options)
         {
             try
             {
                 DictionaryOfOptions.Add(entry.Key, entry.Value);
             }
             catch
             {
             }
         }
         Update();
     }
     catch (Exception ex)
     {
         Console.WriteLine(ex);
     }
 }
Exemplo n.º 5
0
 public void Store(string OptionKey, string OptionValue)
 {
     DictionaryOfOptions.Add(OptionKey, OptionValue);
     Update();
 }