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); }
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); } }