protected void AddSource(SourceCode code) { if (GpuSource == null) { GpuSource = new List <SourceCode>(); } GpuSource.Add(code); }
protected bool SwitchSellection(string methodname) { int idx = GpuSource.IndexOf(GpuSource.Find(x => x.Name == methodname)); if (idx >= 0) { sellectionIndex = idx; return(true); } else { return(false); } }