public void SaveXML()
 {
     try
     {
         string orderFilePath = AlertManager.Instance.GetOrderFilePath();
         AlertCustomerExpressionDS alertCustomerExpressionDS = new AlertCustomerExpressionDS();
         if (!Directory.Exists(ApplicationInfo.WORKING_ROOTPATH + "\\AlertOption\\" + ApplicationInfo.UserLoginID))
         {
             Directory.CreateDirectory(ApplicationInfo.WORKING_ROOTPATH + "\\AlertOption\\" + ApplicationInfo.UserLoginID);
         }
         foreach (KeyValuePair<string, AlertItemCollection> current in AlertManager.Instance.Symbols)
         {
             foreach (AlertItem current2 in current.Value)
             {
                 DataRow dataRow = alertCustomerExpressionDS.AlertCollection.NewRow();
                 dataRow["Symbol"] = current2.Symbol;
                 dataRow["ColumnsAlert"] = current2.Field;
                 dataRow["Operator"] = current2.Operator;
                 dataRow["Values"] = current2.Value;
                 dataRow["AlertTime"] = current2.AlertTime.ToString();
                 dataRow["AlertValue"] = current2.ValueMessageRealtime;
                 alertCustomerExpressionDS.AlertCollection.Rows.Add(dataRow);
             }
         }
         if (alertCustomerExpressionDS.AlertCollection != null)
         {
             alertCustomerExpressionDS.WriteXml(orderFilePath);
         }
         alertCustomerExpressionDS = null;
     }
     catch (Exception ex)
     {
         throw ex;
     }
 }