コード例 #1
0
ファイル: KSSelector.cs プロジェクト: x893/iNemoSuite
 public KSSelector()
 {
     dataProvider = new KSDataProvider();
     workingKit = null;
     selectedKit = null;
     selectionChanged = false;
     configurationChanged = false;
     InitializeComponent();
     Text = Messages.KS_CAPTION_SELECTOR;
     dcpNoneSocketEditor1.OnParamChanged = (KSNoneSocketEditor.ParamChanged) Delegate.Combine(dcpNoneSocketEditor1.OnParamChanged, new KSNoneSocketEditor.ParamChanged(OnParamChanged));
     dcpSerialSocketEditor1.OnParamChanged = (KSSerialSocketEditor.ParamChanged) Delegate.Combine(dcpSerialSocketEditor1.OnParamChanged, new KSSerialSocketEditor.ParamChanged(OnParamChanged));
     dcpTcpIpSocketEditor1.OnParamChanged = (KSTcpIpSocketEditor.ParamChanged) Delegate.Combine(dcpTcpIpSocketEditor1.OnParamChanged, new KSTcpIpSocketEditor.ParamChanged(OnParamChanged));
     dcpUsbSocketEditor1.OnParamChanged = (KSUsbSocketEditor.ParamChanged) Delegate.Combine(dcpUsbSocketEditor1.OnParamChanged, new KSUsbSocketEditor.ParamChanged(OnParamChanged));
     buttonOk.Enabled = false;
 }
コード例 #2
0
ファイル: MainForm.cs プロジェクト: x893/iNemoSuite
        public MainForm()
        {
            InitializeComponent();

            mDeviceSelected = "";
            KSDataProvider provider = new KSDataProvider();
            provider.Load("inemo.dbk");
            KSKit selKit = provider.MoveTo(KSDataProvider.CursorStep.CursorLast);
            provider = null;
            try
            {
                selKit.Socket.Param = SerialPort.GetPortNames()[SerialPort.GetPortNames().Length - 1];
            }
            catch
            {
                selKit.Socket.Param = "";
            }
            kitSelector = new KSSelector("inemo.dbk", selKit);
            kitSelector.ShowInTaskbar = false;
            SetDeviceAndCommunication();
            FileDataName = null;
            OnTCP_Change(TCP_State.TCP_STATE_SERVER_STOP, "TCP/IP Demo server stopped");
            DeviceSelection();
        }
コード例 #3
0
ファイル: KSDbEditor.cs プロジェクト: x893/iNemoSuite
 private void toolStripButtonNew_Click(object sender, EventArgs e)
 {
     dcpKitDbEditor_FormClosing(null, null);
     kitDataProvider = new KSDataProvider();
     textBoxDbFilePath.Text = "";
     toolStripButtonAdd_Click(null, null);
 }