Example #1
0
        public static void OpenProjectValidatorWithProfile(IValidationProfile profile, bool scanProfileImmediately = false)
        {
            ValidationProfileManagerWindow window = GetWindow <ValidationProfileManagerWindow>();

            window.Show();
            window.position = GUIHelper.GetEditorWindowRect().AlignCenter(670, 700);
            window.pager    = new SlidePageNavigationHelper <object>();
            window.pager.PushPage(new ValidationProfileManagerOverview(window.pager), "Overview");

            ValidationProfileEditor editor = new ValidationProfileEditor(profile);

            editor.ScanProfileImmediatelyWhenOpening = scanProfileImmediately;
            window.pager.PushPage(new ValidationProfileEditorWrapper(editor), profile.Name);
        }
Example #2
0
        public static void OpenProjectValidatorWithProfile(IValidationProfile profile, bool scanProfileImmediately = false)
        {
            var window = Resources.FindObjectsOfTypeAll <ValidationProfileManagerWindow>().FirstOrDefault();

            if (window)
            {
                window.Focus();
            }
            else
            {
                window          = GetWindow <ValidationProfileManagerWindow>();
                window.position = GUIHelper.GetEditorWindowRect().AlignCenter(670, 700);
                window.Show();
            }

            window.pager = new SlidePageNavigationHelper <object>();
            window.pager.PushPage(new ValidationProfileManagerOverview(window.pager), "Overview");

            var editor = new ValidationProfileEditor(profile);

            editor.ScanProfileImmediatelyWhenOpening = scanProfileImmediately;
            window.pager.PushPage(new ValidationProfileEditorWrapper(editor), profile.Name);
        }
Example #3
0
#pragma warning restore 0414 // Remove unread private members

            public ValidationProfileEditorWrapper(ValidationProfileEditor validationProfileEditor)
            {
                this.validationProfileEditor = validationProfileEditor;
            }