Exemplo n.º 1
0
 private void ParseProgram(string data)
 {
     try
     {
         Program = FiringPlan.FromFurnaceString(data);
     }
     catch (Exception ex)
     {
         L.Add(ex.Message);
     }
 }
Exemplo n.º 2
0
 private void LoadProgramsFromSettings()
 {
     if (string.IsNullOrEmpty(Properties.Settings.Default.Plans))
     {
         return;
     }
     try
     {
         string[] programs = Properties.Settings.Default.Plans.Split(Environment.NewLine.ToArray(), StringSplitOptions.RemoveEmptyEntries);
         P = programs.Select(x => FiringPlan.FromFurnaceString(x.Trim())).ToList();
         UpdateAvailablePrograms();
     }
     catch
     {
         L.Add("Wrong data in Programs!");
     }
 }