public void ShowException(Exception e)
 {
     VOB.OutputWindow o = this.GetService(typeof(VOB.OutputWindow)) as VOB.OutputWindow;
     if (o != null)
     {
         o.ShowException(e);
     }
 }
 public void ShowMessage(string msg, bool bMsgBox)
 {
     VOB.OutputWindow o = this.GetService(typeof(VOB.OutputWindow)) as VOB.OutputWindow;
     if (o != null)
     {
         o.AppendMessage(msg);
     }
     if (bMsgBox)
     {
         MessageBox.Show(msg);
     }
 }
示例#3
0
        void componentChangeService_ComponentRemoving(object sender, ComponentEventArgs e)
        {
            IDesignerHost host = (IDesignerHost)this.GetService(typeof(IDesignerHost));

            if (host != null)
            {
                VOB.OutputWindow O = (VOB.OutputWindow)host.GetService(typeof(VOB.OutputWindow));
                if (O != null)
                {
                    O.AppendMessage("ComponentRemoving " + e.Component.Site.Name);
                }
            }
        }