コード例 #1
0
        public ExpressionBox(object thisObject)
        {
            this.thisObject = thisObject;

            InitializeComponent();

            intellisense = new IntellisensePopup();
            intellisense.Show();
            intellisense.Hide();
            intellisense.Deactivate   += new EventHandler(intellisense_Deactivate);
            intellisense.MemberChosen += new EventHandler(intellisense_MemberChosen);
        }
コード例 #2
0
        /// <summary>
        /// Clean up any resources being used.
        /// </summary>
        /// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param>
        protected override void Dispose(bool disposing)
        {
            if (disposing && (components != null))
            {
                components.Dispose();
            }

            if (disposing && intellisense != null)
            {
                intellisense.Close();
                intellisense.Dispose();
                intellisense = null;
            }
            base.Dispose(disposing);
        }