예제 #1
0
        public override void SetSite(object pUnkSite) {
            if(BandObjectSite != null) {
                Marshal.ReleaseComObject(BandObjectSite);
            }
            BandObjectSite = (IInputObjectSite)pUnkSite;
            /*
            if(pUnkSite != null) {
                Thread.Sleep(10000);
                object obj2;
                _IServiceProvider bandObjectSite = (_IServiceProvider)base.BandObjectSite;
                Guid guid = ExplorerGUIDs.IID_IShellView;
                Guid riid = ExplorerGUIDs.IID_IUnknown;
                try {
                    bandObjectSite.QueryService(ref guid, ref riid, out obj2);
                    IShellBrowser _ShellBrowser = (IShellBrowser)obj2;
                    if(obj2 != null) {
                        Marshal.ReleaseComObject(_ShellBrowser);
                    }
                }
                catch(Exception e) {
                    Console.WriteLine(e);
                }
            }*/

            Application.EnableVisualStyles();
            if(QTUtility.NowDebugging) {
                CheckForIllegalCrossThreadCalls = true;
            }
            ReadSetting();
            InitializeComponent();
            TitleMenuItem.DrawBackground = tsmiVSTitle.Checked;
            Myself = this;
        }
예제 #2
0
 public override void SetSite(object pUnkSite) {
     if(base.BandObjectSite != null) {
         Marshal.ReleaseComObject(base.BandObjectSite);
     }
     base.BandObjectSite = (IInputObjectSite)pUnkSite;
     Application.EnableVisualStyles();
     if(QTUtility.NowDebugging) {
         Control.CheckForIllegalCrossThreadCalls = true;
     }
     this.ReadSetting();
     this.InitializeComponent();
     TitleMenuItem.DrawBackground = this.tsmiVSTitle.Checked;
     Myself = this;
 }