Exemplo n.º 1
0
 void CurlyCombo_SelectedValueChanged(object sender, EventArgs e)
 {
     UniversalControl.TypeOfCurlies value = CurlyCombo.Value;
     Settings.Current.CurliesInUniversalControl = value;
     using (new Redrawer(CodeUnit))
     {
         foreach (UniversalBlock b in CodeUnit.FindChildrenRecursive <UniversalBlock>())
         {
             b.MyUniversalControl.CurlyType = value;
             b.MyUniversalControl.UpdateOffsetCurlies();
         }
     }
 }
Exemplo n.º 2
0
 public static IEnumerable <MethodBlock> FindMethods(
     CodeUnitBlock root,
     string methodName)
 {
     foreach (MethodBlock method in root.FindChildrenRecursive <MethodBlock>())
     {
         if (method.Name == methodName)
         {
             yield return(method);
         }
     }
 }