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

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

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



        #region イベントハンドラー
        //────────────────────────────────────────

        private void UsercontrolTabPane_SizeChanged(object sender, EventArgs e)
        {
            UsercontrolTabPane ucTabPane = (UsercontrolTabPane)sender;

            this.customcontrolTabControl1.Width  = ucTabPane.Width;
            this.customcontrolTabControl1.Height = ucTabPane.Height;

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