Пример #1
0
        public override void ConnectedToSolidWorks()
        {
            // Create our taskpane
            mTaskpane = new TaskpaneIntegration <MyTaskpaneUI>()
            {
                Icon       = Path.Combine(PlugInIntegration.PlugInFolder, "logo-small.png"),
                WpfControl = new MyAddinControl()
            };

            mTaskpane.AddToTaskpane();
        }
Пример #2
0
        public override void ConnectedToSolidWorks()
        {
            // Create our taskpane
            mTaskpane = new TaskpaneIntegration <TaskpaneUserControlHost>()
            {
                Icon       = Path.Combine(PlugInIntegration.PlugInFolder, "logo-small.png"),
                WpfControl = new CustomPropertiesUI()
            };

            // Add to taskpane
            Task.Run(() => mTaskpane.AddToTaskpane());
        }