Esempio n. 1
0
 private void UITeardown()
 {
     mTaskpaneHost = null;
     mTaskpaneView.DeleteView();
     Marshal.ReleaseComObject(mTaskpaneView);
     mTaskpaneView = null;
 }
 private void MainMenu_Click(object sender, EventArgs e)
 {
     LittleTaskPane.MainMenuVisible  = null;
     LittleTaskPane.MainMenuVisible += new LittleTaskPane.HeadMenuOperations(LittleTaskPane.ShowMainHead);
     LittleTaskPane.MainMenuVisible(sender, e);
     userControl.Visible = false;
 }
        private void buildFlapBtn_Click(object sender, EventArgs e)
        {
            MessageObserver.Instance.ReceivedMessage += Instance_ReceivedMessage;

            LittleTaskPane.footer.Controls.Clear();
            userControl      = new FlapBuilderControl();
            userControl.Dock = DockStyle.Fill;
            LittleTaskPane.footer.Controls.Add(userControl);

            LittleTaskPane.MainMenuVisible  = null;
            LittleTaskPane.MainMenuVisible += new LittleTaskPane.HeadMenuOperations(LittleTaskPane.HideMainHead);
            LittleTaskPane.MainMenuVisible(sender, e);
        }
Esempio n. 4
0
 private void UISetup()
 {
     try
     {
         string imagePath;
         imagePath     = @"\Resources\THeme.png";
         mTaskpaneView = SWApplication.CreateTaskpaneView2(imagePath, "AirVentsCAD");
         //bool res = mTaskpaneView.AddCustomButton(imagePath, "Just testing");
         mTaskpaneHost = (LittleTaskPane)mTaskpaneView.AddControl(Class1.SWTASKPANE_PROGID, "");
     }
     catch (Exception e)
     {
         System.Windows.Forms.MessageBox.Show(e.Message);
     }
 }