Beispiel #1
0
 public override void FreeResource()
 {
     Debug.WriteLine("Soccer App-->FreeResource Addin");
     if (m_objopencommand != null)
     {
         m_objopencommand.FreeResources();
         m_objopencommand = null;
     }
     if (m_objDocument != null)
     {
         m_objDocument.FreeResource();
         m_objDocument = null;
     }
 }
Beispiel #2
0
 private void M_objopencommand_OnCommandClick(object sender, EventArgs e)
 {
     try
     {
         Debug.WriteLine("Soccer App-->M_objopencommand_OnCommandClick");
         if (m_objDocument != null && m_objDocument.IsOpened)
         {
             Debug.WriteLine("Soccer App-->m_objDocument != null && m_objDocument.IsOpened");
             return;
         }
         Debug.WriteLine("Soccer App-->M_objopencommand_OnCommandClick-->m_objDocument == null");
         m_objDocument = new SoccerAppDocument(ID, AddinName);
         m_objDocument.Initialize(ID, AddinName);
         m_objDocument.LoadApp();
         OnWDocumentCreation(this, new WDocumentArgs(m_objDocument));
     }
     catch (Exception ex)
     {
     }
 }