/// <summary> /// 추가 버튼 클릭 /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void BunifuImageButton_Plus_Click(object sender, EventArgs e) { XMenuAmount++; this.label_MenuAmount.Text = XMenuAmount.ToString(); this.XMenuTotalAmount = XMenuUnitPrice * XMenuAmount; if (OnPlusButtonClicked != null) { OnPlusButtonClicked(this, EventArgs.Empty); } }
protected override void OnPaint(PaintEventArgs e) { base.OnPaint(e); // 라벨 폰트 갱신 label_MenuNameKR.Font = Font; label_MenuSize.Font = Font; label_MenuType.Font = Font; label_MenuAmount.Font = Font; // 라벨 텍스트 갱신 label_MenuNameKR.Text = XMenuNameKR; label_MenuSize.Text = XMenuSize; label_MenuType.Text = XMenuType; label_MenuAmount.Text = XMenuAmount.ToString(); // 라벨 글자색 갱신 label_MenuNameKR.ForeColor = label_MenuSize.ForeColor = label_MenuType.ForeColor = label_MenuUnitPrice.ForeColor = label_MenuAmount.ForeColor = XForeTextColor; }