예제 #1
0
 static public void AppendMessage2(string msg)
 {
     if (thisMessageWindow != null)
     {
         thisMessageWindow.AppendMessage(msg);
     }
     else
     {
         ITraceLog log = TraceLogClass.TraceLog;
         log.Log(msg);
     }
 }
 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);
                }
            }
        }