12345678910111213141516171819202122232425262728293031323334353637383940 |
- using PaintDotNet;
- using System;
- using System.Collections.Generic;
- using System.ComponentModel;
- using System.Data;
- using System.Drawing;
- using System.Linq;
- using System.Text;
- using System.Threading.Tasks;
- using System.Windows.Forms;
- namespace Metis.AutoAnalysis
- {
- public partial class AddUser : Form
- {
- public AddUser()
- {
- InitializeComponent();
- this.Load += (s, e) => InitializeText();
- }
- public void InitializeText()
- {
- btnOK.Text = PdnResources.GetString("AutoAnalysis.Button.OK");
- btnCancel.Text = PdnResources.GetString("AutoAnalysis.Button.Cancel");
- }
- public Action<string> CallOK;
- private void btnOK_Click(object sender, EventArgs e)
- {
- CallOK?.Invoke(txbName.Text);
- Close();
- }
- private void btnCancel_Click(object sender, EventArgs e)
- {
- Close();
- }
- }
- }
|