コード例 #1
0
        private void Connect(object sender, EventArgs e)
        {
            ProgramTransferSrv srv = new ProgramTransferSrv(_view.IpAddress);

            _view.bindingProgram.DataSource = srv.GetProgramList();
            if (_view.bindingProgram.DataSource != null)
            {
                _view.Connected = true;
            }
        }
コード例 #2
0
        private void GetProgramList(object sender, EventArgs e)
        {
            if (!_view.Connected)
            {
                MessageBox.Show("Please connect Machine!", "Error", MessageBoxButtons.OK, MessageBoxIcon.Error);
                return;
            }

            ProgramTransferSrv srv      = new ProgramTransferSrv(_view.IpAddress);
            string             fileName = System.IO.Path.GetFileName(_view.FilePath);

            _view.bindingProgram.DataSource = srv.GetProgramList();
        }