Esempio n. 1
0
 /// <summary>
 /// Gets the non-generated InitializeComponents from the compilation unit.
 /// </summary>
 public static IMethod GetInitializeComponents(ICompilationUnit unit)
 {
     foreach (IClass c in unit.Classes)
     {
         if (FormsDesignerSecondaryDisplayBinding.BaseClassIsFormOrControl(c))
         {
             IMethod method = FormsDesignerSecondaryDisplayBinding.GetInitializeComponents(c);
             if (method != null)
             {
                 return(method);
             }
         }
     }
     return(null);
 }
Esempio n. 2
0
 public void BaseClassIsForm()
 {
     Assert.IsTrue(FormsDesignerSecondaryDisplayBinding.BaseClassIsFormOrControl(mainFormClass));
 }