예제 #1
0
        //---------------------------------------------------------------------
        public SettingToolWindow() : base(null)
        {
            this.Caption            = WindowCaption;
            this.mainSettingControl = new MainSettingControl();

            // This is the user control hosted by the tool window;
            // Note that, even if this class implements IDisposable,
            // we are not calling Dispose on this object.
            // This is because ToolWindowPane calls Dispose on
            // the object returned by the Content property.
            this.Content = this.mainSettingControl;
        }
예제 #2
0
        //---------------------------------------------------------------------
        public SettingToolWindow() : base(null)
        {
            this.Caption = WindowCaption;
            var control = new MainSettingControl();

            this.Controller = new MainSettingController(
                (settings) => OpenCppCoverageCmdLine.Build(settings, "\n"));
            control.DataContext = this.Controller;
            this.Controller.CloseWindowEvent += (o, e) => Close();

            // This is the user control hosted by the tool window;
            // Note that, even if this class implements IDisposable,
            // we are not calling Dispose on this object.
            // This is because ToolWindowPane calls Dispose on
            // the object returned by the Content property.
            this.Content = control;
        }