private void Init()
        {
            _Package = new SetupDirector.SetupPackage( SetupDirector.GetInstance().Package );
            _Comm = SetupDirector.GetInstance().Comm;

            // 이더넷
            NXGTNet_TB.Text = _Package.EthernetInfo.PLC;
            NPrintNet_TB.Text = _Package.EthernetInfo.Printer;

            //시리얼 
            NPort.Text = _Package.SerialInfo.PortName;
            NBaud.Text = _Package.SerialInfo.BaudRate.ToString();
            NParity.Text = _Package.SerialInfo.Parity.ToString();
            NDataBit.Text = _Package.SerialInfo.DataBits.ToString();
            NStopBit.Text = _Package.SerialInfo.StopBits.ToString();
            NLocalPort.Text = _Package.SerialInfo.LocalPort.ToString();

            for (var v = Parity.None; v <= Parity.Space; v++)
                NParity.Items.Add(v);
            for (var v = StopBits.None; v <= StopBits.OnePointFive; v++)
                NStopBit.Items.Add(v);

            NParity.SelectedValue = _Package.SerialInfo.Parity;
            NStopBit.SelectedValue = _Package.SerialInfo.StopBits;

            // 시간 
            NDayStartH.Text = _Package.TimeInfo.Day.BeginTime.Hours.ToString();
            NDayStartM.Text = _Package.TimeInfo.Day.BeginTime.Minutes.ToString();
            NDayEndH.Text = _Package.TimeInfo.Day.EndTime.Hours.ToString();
            NDayEndM.Text = _Package.TimeInfo.Day.EndTime.Minutes.ToString();
            NNightStartH.Text = _Package.TimeInfo.Night.BeginTime.Hours.ToString();
            NNightStartM.Text = _Package.TimeInfo.Night.BeginTime.Minutes.ToString();
            NNightEndH.Text = _Package.TimeInfo.Night.EndTime.Hours.ToString();
            NNightEndM.Text = _Package.TimeInfo.Night.EndTime.Minutes.ToString();

            //라디오 박스
            switch (_Comm)
            {
                case SetupDirector.HOW_TO_CONNECT.ETHERNET:
                    OnEthernetSettingComponent();
                    NRadioNet.IsChecked = true;
                    break;
                case SetupDirector.HOW_TO_CONNECT.SERIAL:
                    OnSerialPortSettingComponent();
                    NRadioSerial.IsChecked = true;
                    break;
            }
        }
 private void NRadioSerial_Checked(object sender, RoutedEventArgs e)
 {
     OnSerialPortSettingComponent();
     _Comm = SetupDirector.HOW_TO_CONNECT.SERIAL;
 }
 private void NRadioNet_Checked(object sender, RoutedEventArgs e)
 {
     OnEthernetSettingComponent();
     _Comm = SetupDirector.HOW_TO_CONNECT.ETHERNET;
 }