Пример #1
0
        //────────────────────────────────────────
        public Usercontrol Perform(
            Expression_Node_StringImpl ec_FcName,
            MemoryApplication owner_MemoryApplication
            )
        {
            UsercontrolCombobox uctDdl = new UsercontrolCombobox();

            // 名前だけ初期設定
            uctDdl.Expression_Name_Control = ec_FcName;
            uctDdl.ControlCommon.Owner_MemoryApplication = owner_MemoryApplication;

            return uctDdl;
        }
Пример #2
0
        //────────────────────────────────────────

        /// <summary>
        /// ユーザーコントロールのサイズが変更されたとき。
        ///
        /// ユーザーコントロール内部のサイズも調整します。
        /// </summary>
        /// <param nFcName="sender"></param>
        /// <param nFcName="e"></param>
        private void UcCombobox_SizeChanged(object sender, EventArgs e)
        {
            UsercontrolCombobox uctCmb = (UsercontrolCombobox)sender;

            this.customcontrolCombobox1.Width  = uctCmb.Width;
            this.customcontrolCombobox1.Height = uctCmb.Height;

            // サイズを変更しても、
            // ラベルの設定によってはサイズが変わらないことがあります。
            //
            // ラベルのサイズをフィードバックします。
            uctCmb.Width  = this.customcontrolCombobox1.Width;
            uctCmb.Height = this.customcontrolCombobox1.Height;
        }