示例#1
0
 public bool ReadData()
 {
     try
     {
         if (this.symbols == null)
         {
             this.symbols = new Dictionary<string, AlertItemCollection>();
         }
         else
         {
             this.symbols.Clear();
         }
         AlertCustomerExpressionDS alertCustomerExpressionDS = new AlertCustomerExpressionDS();
         string orderFilePath = this.GetOrderFilePath();
         if (File.Exists(orderFilePath))
         {
             alertCustomerExpressionDS.ReadXml(orderFilePath);
             this.ImportFromXML(alertCustomerExpressionDS);
         }
         alertCustomerExpressionDS.Clear();
     }
     catch (Exception ex)
     {
         throw ex;
     }
     return true;
 }