示例#1
0
    public virtual UniProcessModalEvent GetAloneProcess(ModalProcessType type)
    {
        try
        {
            UniProcessModalEvent oldprocess;
            if (aloneProcessList.TryGetValue((int)type, out oldprocess))
            {
                return(oldprocess);
            }
        }
        catch (System.Exception ex)
        {
            ShowExceptionError(ex);
        }

        return(null);
    }
示例#2
0
 public virtual void CloseAloneProcess(ModalProcessType type)
 {
     try
     {
         UniProcessModalEvent oldprocess;
         if (aloneProcessList.TryGetValue((int)type, out oldprocess))
         {
             try
             {
                 oldprocess.processStatus = UniProcessModalEvent.ProcessStatus.Status_Dispose;
                 oldprocess.Dispose();
             }
             catch (System.Exception ex)
             {
                 ShowExceptionError(ex);
             }
             aloneProcessRemoveList.Add((int)type);
         }
     }
     catch (System.Exception ex)
     {
         ShowExceptionError(ex);
     }
 }