예제 #1
0
        private void showDetailsWindow(string message, string caption, List <Link> links, int maxWidth)
        {
            var hasTestDetails = _testDetails != null;
            var x = -1;
            var y = -1;

            if (hasTestDetails)
            {
                x = _testDetails.Left;
                y = _testDetails.Top;
            }

            _testDetails = new TestDetailsForm((file, line) => _provider.GoTo(file, line, 0), (assembly, type) => _provider.GoTo(assembly, type), x, y, message, caption, links, maxWidth);
            _testDetails.Show();
            _testDetails.BringToFront();
        }
예제 #2
0
        private void showDetailsWindow(string message, string caption, List <Link> links, int maxWidth)
        {
            var hasTestDetails = _testDetails != null;
            var x = -1;
            var y = -1;

            if (hasTestDetails)
            {
                x = _testDetails.Left;
                y = _testDetails.Top;
            }

            _testDetails = new TestDetailsForm((file, line) => goToReference(file, line, 0), goToType, x, y, message, caption, links, maxWidth);
            _testDetails.Show();
            _testDetails.BringToFront();
        }
예제 #3
0
        private void showDetailsWindow(string message, string caption, List<Link> links, int maxWidth)
        {
            var hasTestDetails = _testDetails != null;
            var x = -1;
            var y = -1;
            if (hasTestDetails)
            {
                x = _testDetails.Left;
                y = _testDetails.Top;
            }

            _testDetails = new TestDetailsForm((file, line) => goToReference(file, line, 0), goToType, x, y, message, caption, links, maxWidth);
            _testDetails.Show();
            _testDetails.BringToFront();
        }
예제 #4
0
 private void showDetailsWindow(string message, string caption, List<Link> links, int maxWidth)
 {
     if (_testDetails == null)
     {
         _testDetails = new TestDetailsForm((file, line) => goToReference(file, line, 0), goToType);
         _testDetails.Show();
     }
     _testDetails.SetCaption(caption);
     _testDetails.SetText(message, links, maxWidth);
     _testDetails.Visible = true;
     _testDetails.BringToFront();
 }
예제 #5
0
        private void showDetailsWindow(string message, string caption, List<Link> links, int maxWidth)
        {
            var hasTestDetails = _testDetails != null;
            var x = -1;
            var y = -1;
            if (hasTestDetails)
            {
                x = _testDetails.Left;
                y = _testDetails.Top;
            }

            _testDetails = new TestDetailsForm((file, line) => _provider.GoTo(file, line, 0), (assembly, type) => _provider.GoTo(assembly, type), x, y, message, caption, links, maxWidth);
            _testDetails.Show();
            _testDetails.BringToFront();
        }