Пример #1
0
 private void RemoveLogPage()
 {
     logPageView.DeleteView();
     Marshal.ReleaseComObject(logPageView);
     logPageView = null;
     tpHost      = null;
 }
Пример #2
0
        private void AddLogPage()
        {
            string[] img = { @"E:\ownCloud\Projects\Resources\20x.png", @"E:\ownCloud\Projects\Resources\32x.png",
                             @"E:\ownCloud\Projects\Resources\40x.png", @"E:\ownCloud\Projects\Resources\64x.png",
                             @"E:\ownCloud\Projects\Resources\96x.png", @"E:\ownCloud\Projects\Resources\128x.png" };

            logPageView = swApp.CreateTaskpaneView3(img, "Log Page");
            tpHost      = logPageView.AddControl(TP_PROGID, string.Empty);
            LogPage     = new wpfLogPage();
            tpHost.AddWpfControl(LogPage);
        }