| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273 |
- using CoreFS.CA06;
- using System;
- using System.Collections.Generic;
- using System.ComponentModel;
- using System.Data;
- using System.Drawing;
- using System.Linq;
- using System.Text;
- using System.Windows.Forms;
- namespace Core.StlMes.Client.Mcp.Coupling
- {
- public partial class OffLine : FrmBase
- {
- public OffLine()
- {
- InitializeComponent();
- }
- private string strNum = "";
- private string strMemo = "";//备注
- public string StrNum
- {
- get { return strNum; }
- set { strNum = value; }
- }
- public string StrMemo
- {
- get { return strMemo; }
- set { strMemo = value; }
- }
- private string strat = "";
- public string Strat
- {
- get { return strat; }
- set { strat = value; }
- }
- private void DoSave()
- {
- StrNum = txtNum.Value.ToString();
-
- if (txtMemo.Value==null)
- {
- strMemo = "";
- }
- else
- {
- strMemo = txtMemo.Value.ToString();
- }
- Strat = "1";
- this.Close();
- }
- private void ultraToolbarsManager1_ToolClick(object sender, Infragistics.Win.UltraWinToolbars.ToolClickEventArgs e)
- {
- switch (e.Tool.Key)
- {
- case "Save":
- DoSave();
- break;
- case "Close":
- DoClose();
- break;
- }
- }
- private void DoClose()
- {
- this.Close();
- }
- }
- }
|