Ejemplo n.º 1
0
 public PSMouse()
 {
     cmds = Properties.Settings.Default.CmdPairs;
     if (cmds == null)
     {
         cmds = new SortBindingList <CmdPair>();
     }
     cmds.AllowNew      = true;
     cmds.AllowEdit     = true;
     cmds.AllowRemove   = true;
     port               = new SerialPort();
     port.DataReceived += onReceivedData;
 }
Ejemplo n.º 2
0
 public CmdEditForm(MainForm mf, CmdPair cp, SortBindingList <CmdPair> cpl)
 {
     InitializeComponent();
     mainf = mf;
     if (cp.cmd != 0)
     {
         tb_Char.Text     = cp.cmd.ToString();
         tb_Char.ReadOnly = true;
         tbScripts.Select();
     }
     else
     {
         tb_Char.Text = String.Empty;
     }
     tbScripts.Text    = cp.scripts;
     cmdPairs          = cpl;
     lbAlreadyMsg.Text = "";
     if (tb_Char.Text.Equals(String.Empty))
     {
         bt_Ok.Enabled = false;
     }
 }