Ejemplo n.º 1
0
        public DevicePropertyEditorImpl(DevicePropertyImpl devp) : this()
        {
            devp_ = devp as DevicePropertyImpl;

            initialize_ = true;
            {
                /* Address Family Type */
                CBox_AddressFamily.SelectedItem = devp_.AddressFamily.Value;

                /* Local - Bind Mode */
                CBox_LocalBindMode.SelectedItem = devp_.LocalBindMode.Value;

                /* Local - IP Address */
                DnsAddrList_Local.SelectedIPAddress = devp_.LocalIpAddress.Value;

                /* Local - Port No. */
                Num_LocalPortNo.Value = devp_.LocalPortNo.Value;

                /* Connect Limit */
                Num_ConnextMax.Value = (uint)devp_.Capacity.Value;

                /* Send Buffer Size */
                Num_SendBufferSize.Value = devp_.SendBufferSize.Value;

                /* Recv Buffer Size */
                Num_RecvBufferSize.Value = devp_.RecvBufferSize.Value;

                /* Reuse Address */
                ChkBox_ReuseAddr.Checked = devp_.ReuseAddress.Value;

                /* KeepAlive - OnOff */
                ChkBox_KeepAliveOnOff.Checked = devp_.KeepAliveOnOff.Value;

                /* KeepAlive - Time */
                //			ChkBox_KeepAliveTime.Checked = devp_.KeepAliveTime.Value;
                Num_KeepAliveTime.Value = devp_.KeepAliveTime_Value.Value;

                /* KeepAlive - Interval */
                //			ChkBox_KeepAliveInterval.Checked = devp_.KeepAliveInterval.Value;
                //			Num_KeepAliveInterval.Value = devp_.KeepAliveInterval_Value.Value;

                /* KeepAlive - Retry Count */
                //			ChkBox_KeepAliveRetryCount.Checked = devp_.KeepAliveRetryCount.Value;
                //			Num_KeepAliveRetryCount.Value = devp_.KeepAliveRetryCount_Value.Value;

                /* Unicast - TTL */
                ChkBox_Unicast_TTL.Checked = devp_.TTL_Unicast.Value;
                Num_Unicast_TTL.Value      = devp_.TTL_Unicast_Value.Value;
            }
            initialize_ = false;

            UpdateView();
        }
Ejemplo n.º 2
0
 protected override void OnConnectStart()
 {
     devp_ = Property as DevicePropertyImpl;
 }