public IocpParam GetIocpParam() { if (_IocpParam == null) { return(IocpParam.CreateIocpParam()); } else { return(new IocpParam(_IocpParam)); } }
void NetSet() { NetSetViewModel workspace = this.Workspaces.FirstOrDefault(vm => vm is NetSetViewModel) as NetSetViewModel; if (workspace == null) { if (_UserRepository.GetIocpParam() == null) { IocpParam mIocpParam = IocpParam.CreateIocpParam(); workspace = new NetSetViewModel(_UserRepository.GetIocpParam(), _UserRepository); } else { workspace = new NetSetViewModel(_UserRepository.GetIocpParam(), _UserRepository); } this.Workspaces.Add(workspace); } this.SetActiveWorkspace(workspace); }