コード例 #1
0
        /// <summary>
        /// Create the form.
        /// </summary>
        public SearchForm()
        {
            InitializeComponent();

            // Allow client applications to modify the form.
            SearchFormProxy.GetInstance().UpdateFormControls(Controls);
        }
コード例 #2
0
        /// <summary>
        /// Get a reference to the SearchFormProxy singleton.
        /// </summary>
        /// <returns>A reference to SearchFormProxy.</returns>
        public static SearchFormProxy GetInstance()
        {
            if (_singleton == null)
            {
                _singleton = new SearchFormProxy();
            }

            return(_singleton);
        }