private void RemoveKernel(IKernel k) { try { if (OpenKernels.Count > 1) { OpenKernels.Remove(k); ActiveKernelIndex = OpenKernels.Count - 1; } else { AddNewKernel(); OpenKernels.Remove(k); ActiveKernelIndex = OpenKernels.Count - 1; } } catch { throw new Exception(); } }
private void AddNewKernel() { OpenKernels.Add(new StandardKernel(new ProjectModule(this))); ActiveKernelIndex = OpenKernels.Count - 1; }