Esempio n. 1
0
 private ToolsDocumentInspector TryCreateDocumentInspector(out string name, out string description)
 {
     try
     {
         ToolsDocumentInspector inspector = OnCreateDocumentInspector();
         if (null != inspector)
         {
             inspector.InitializeInspector(this);
             if (null != inspector)
             {
                 CurrentInspector = inspector;
                 name             = inspector.Name;
                 description      = inspector.Description;
             }
             else
             {
                 CurrentInspector = null;
                 name             = "<#Error>";
                 description      = String.Empty;
             }
             return(inspector);
         }
         else
         {
             name        = "<#Error>";
             description = String.Empty;
             return(null);
         }
     }
     catch
     {
         name        = "<#Error>";
         description = String.Empty;
         return(null);
     }
 }
Esempio n. 2
0
 void IDocumentInspector.GetInfo(out string Name, out string Desc)
 {
     CurrentInspector = TryCreateDocumentInspector(out Name, out Desc);
 }