Esempio n. 1
0
        private static void CreateWindow()
        {
            var window = (StyleCopIgnoreUtilityWindow)GetWindow(typeof(StyleCopIgnoreUtilityWindow));

            window.Show();

            StyleCopIgnoreUtility.CreateWithView(window);
        }
        //// ====================================================================================================================

        /// <summary>
        /// Creates an instance of the StyleCopIgnoreUtility to be represented by the supplied View
        /// </summary>
        /// <param name="view">The View that should represent the utility</param>
        public static void CreateWithView(IStyleCopIgnoreUtilityView view)
        {
            var utility = new StyleCopIgnoreUtility();

            utility.view = view;
            view.SetUtility(utility);

            utility.Initialize();
        }
Esempio n. 3
0
        /* Methods ============================================================================================================ */

        /// <summary>
        /// Sets a reference to the Utility in order to communicate with it
        /// </summary>
        /// <param name="utility">The StyleCopIgnoreUtility</param>
        public void SetUtility(StyleCopIgnoreUtility utility)
        {
            this.styleCopIgnoreUtility = utility;
        }