示例#1
0
 protected override void Run()
 {
     var padId = "QuickTest.TestWindow";
     var pad = IdeApp.Workbench.Pads.FirstOrDefault (p => p.Id == padId);
     if (pad == null) {
         var padContent = new TestWindowPadContent ();
         pad = IdeApp.Workbench.AddPad (padContent, "QuickTest.TestWindow", "Quick Test", "", null);
     }
     pad.BringToFront (false);
 }
示例#2
0
        protected override void Run()
        {
            var padId = "QuickTest.TestWindow";
            var pad   = IdeApp.Workbench.Pads.FirstOrDefault(p => p.Id == padId);

            if (pad == null)
            {
                var padContent = new TestWindowPadContent();
                pad = IdeApp.Workbench.AddPad(padContent, "QuickTest.TestWindow", "Quick Test", "", null);
            }
            pad.BringToFront(false);
        }