コード例 #1
0
        /// <summary>
        /// Method formats success message.
        /// </summary>
        /// <param name="schedule">Edited schedule.</param>
        /// <param name="info">Operation info.</param>
        /// <returns>Info string.</returns>
        protected override string _FormatSuccessSolveCompletedMsg(Schedule schedule, AsyncOperationInfo info)
        {
            string message = string.Empty;

            // If oreders was assigned to any route.
            if (info.OperationType == SolveOperationType.AssignOrders)
            {
                message = RoutingMessagesHelper.GetAssignOperationCompletedMessage(info);
            }

            // If orders was unassigned.
            else if (info.OperationType == SolveOperationType.UnassignOrders)
            {
                message = RoutingMessagesHelper.GetUnassignOperationCompletedMessage(info);
            }

            else
            {
                // Not supported yet.
                Debug.Assert(false);
            }

            return(message);
        }
コード例 #2
0
 /// <summary>
 /// Gets message string about solve completed successfully.
 /// </summary>
 /// <param name="schedule">Edited schedule.</param>
 /// <param name="info">Operation info.</param>
 /// <returns>Success solve string.</returns>
 protected override string _FormatSuccessSolveCompletedMsg(Schedule schedule, ESRI.ArcLogistics.Routing.AsyncOperationInfo info)
 {
     return(RoutingMessagesHelper.GetAssignOperationCompletedMessage(info));
 }