예제 #1
0
        private void EngineClientWindow_OnLoaded(object sender, RoutedEventArgs e)
        {
            //TbLocalIp.ItemsSource = IpHelper.GetLocalIpList();
            //TbLocalIp.SelectedIndex = 0;

            //var list = new List<string>() { "127.0.0.1", "192.168.10.155", "172.16.100.25" };
            //TbEngineIp.ItemsSource = list;
            //TbEngineIp.SelectedIndex = 0;

            //TbEnginePort.ItemsSource = new string[] { "3456","3455"};
            //TbEnginePort.SelectedIndex = 0;

            //if(EngineClientSetting.AutoStart)
            //{
            //    if (!list.Contains(EngineClientSetting.EngineIp))
            //    {
            //        list.Add(EngineClientSetting.EngineIp);
            //        TbEngineIp.ItemsSource = list;
            //    }

            //    TbLocalIp.SelectedItem = EngineClientSetting.LocalIp;
            //    TbEngineIp.SelectedItem = EngineClientSetting.EngineIp;
            //    StartConnect();
            //}

            EngineClientBox1.Init();
        }
예제 #2
0
        //private void Log_NewLogEvent(string arg1, string arg2)
        //{
        //    //Location.BLL.Tool.Log.NewLogEvent -= ListenToLog;
        //    if (arg1 == LogTags.Engine)
        //    {
        //        Logs.WriteLogLeft(arg2);
        //    }
        //}

        private void EngineClientWindow_Closed(object sender, EventArgs e)
        {
            //Stop();
            EngineClientBox1.Stop();
        }