예제 #1
0
 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();
     }
 }
예제 #2
0
 private void AddNewKernel()
 {
     OpenKernels.Add(new StandardKernel(new ProjectModule(this)));
     ActiveKernelIndex = OpenKernels.Count - 1;
 }