Example #1
0
        public OperationState StartUpload(object oid = null)
        {
            try
            {
                NavigationToken token;
                if (fileAttribute == null || fileAttribute.Count() <= 0)
                {
                    return(OperationState.STOP);
                }
                else
                {
                    if (oid is int)
                    {
                        token = NavigationToken.GetModifyViewToken(FunctionalitiesCode.AUTOMATIC_SOURCING_EDIT, oid);
                    }
                    else
                    {
                        token = NavigationToken.GetCreateViewToken(FunctionalitiesCode.AUTOMATIC_SOURCING_EDIT);
                    }
                    return(openEditionPage(token));
                }

                //   return OperationState.CONTINUE;
            }
            catch (Exception)
            {
                return(OperationState.STOP);
            }
        }
Example #2
0
 /// <summary>
 ///
 /// </summary>
 public void OpenDefaultFile()
 {
     if (!string.IsNullOrWhiteSpace(FilePath))
     {
         NavigationToken token = NavigationToken.GetModifyViewToken(FunctionalitiesCode.PROJECT, FilePath);
         HistoryHandler.openPage(token);
     }
 }