Example #1
0
 private void UITeardown()
 {
     mTaskpaneHost = null;
     mTaskpaneView.DeleteView();
     Marshal.ReleaseComObject(mTaskpaneView);
     mTaskpaneView = null;
 }
Example #2
0
 private void UISetup()
 {
     try
     {
         string imagePath;
         imagePath     = @"\Resources\Theme.png";
         mTaskpaneView = SWApplication.CreateTaskpaneView2(imagePath, "3DSearch");
         mTaskpaneHost = (LittlePane)mTaskpaneView.AddControl(Loader.SWTASKPANE_PROGID, "");
     }
     catch (Exception e)
     {
         System.Windows.Forms.MessageBox.Show(e.Message);
     }
 }