1234567891011121314151617181920212223242526272829303132333435363738 |
- using LYFZ.Model;
- using System;
- using System.Collections.Generic;
- using System.Linq;
- using System.Text;
- namespace LYFZ.Software.MainBusiness.NewCameraControlBook
- {
- public class frmCustomLabel : LYFZ.Software.NewCameraControlBook.frmCustomLabel
- {
- public frmCustomLabel() {
- this.buttonEx1.Click += ButtonEx1_Click;
- this.buttonEx2.Click += ButtonEx2_Click;
- this.Shown += FrmCustomLabel_Shown;
- }
- private void FrmCustomLabel_Shown(object sender, EventArgs e)
- {
- this.txtInfo.Text =String.Join(System.Environment.NewLine, labelData.GetCustomLabelList(_AddCameraType));
- }
- private void ButtonEx2_Click(object sender, EventArgs e)
- {
- this.DialogResult = System.Windows.Forms.DialogResult.Cancel;
- }
- private void ButtonEx1_Click(object sender, EventArgs e)
- {
- labelData.AddCustomLabel(_AddCameraType, this.txtInfo.Text.Trim());
- this.DialogResult = System.Windows.Forms.DialogResult.OK;
- }
- CameraType _AddCameraType = CameraType.拍照客人;
- CustomLabelData labelData = new CustomLabelData();
- public CustomLabelData LabelData { get => labelData; set => labelData = value; }
- public CameraType AddCameraType { get => _AddCameraType; set => _AddCameraType = value; }
- }
- }
|