public void showMain(System.Windows.Forms.TreeNode currentNode) { clearCellValueChangedEvent(); clearCellClickEvent(); if (currentNode.Name == "ctiDrive") { ConfigLeaf.ctiDrive cti = new ConfigLeaf.ctiDrive(); cti.showDataGridView(dataGridView1); MainConfigAreaTitle.Text = "CTI数据库配置"; } else if (currentNode.Name == "drivesConfig") { drivesConfig drivesConfig = new drivesConfig(); drivesConfig.showDataGridView(dataGridView1); MainConfigAreaTitle.Text = "分机,坐席设备"; } else if (currentNode.Name == "URLConfig") { URLConfig URLConfig = new URLConfig(); URLConfig.showDataGridView(dataGridView1); MainConfigAreaTitle.Text = "URL跳转配置"; } else if (currentNode.Name == "agent" || currentNode.Name == "agentConfig") { agent agent = new agent(); agent.showDataGridView(dataGridView1); MainConfigAreaTitle.Text = "坐席配置"; } else if (currentNode.Name == "agentGroup") { showSonNode(currentNode); agentGroup ag = new agentGroup(); ag.esunnetConfig = this; ag.showDataGridView(dataGridView1); MainConfigAreaTitle.Text = "坐席组配置"; } else if (currentNode.Name == "agentStatus") { agentStatus ageSta = new agentStatus(); ageSta.showDataGridView(dataGridView1); MainConfigAreaTitle.Text = "坐席忙碌原因"; } else if (currentNode.Parent != null) { if (currentNode.Parent.Name == "agentGroup") { string[] fullName = currentNode.Name.Split('<'); agentGroupLeaf aGL = new agentGroupLeaf(); aGL.groupId = fullName[1]; aGL.showDataGridView(dataGridView1); MainConfigAreaTitle.Text = "坐席组" + fullName[1]; } ; } ; }
public void Awake() { string m_JsonString = ""; try { //todo Set In Outside File //json parser ***all data commeing from json file var confFile = FileFinder.Find(Application.streamingAssetsPath, "URLConfig" + ".json"); //todo Set In Outside File m_JsonString = File.ReadAllText(confFile); IpFromJSon = JsonUtility.FromJson <URLConfig>(m_JsonString); RosBridgeServerUrl = IpFromJSon.URL; new Thread(ConnectAndWait).Start(); } catch (Exception) { Debug.LogError("m_JsonString=" + m_JsonString); } }
public IEnumerator Init() { //支付初始化 StorageManager.Inst.Init(); InitDebugCanvas(); #if !UNITY_EDITOR && (UNITY_ANDROID || UNITY_IOS) AssetBundleConfig.Inst.UseAssetBundle = true; #endif #if UNITY_EDITOR EventDispatcher.Inst.Init(); #endif Application.targetFrameRate = 60; Screen.sleepTimeout = (int)SleepTimeout.NeverSleep; //初始化需要提前初始化的东西================== URLConfig.Init(); SystemClock.Inst.Init(); SoundPlay.Init(); // AssetBundleManager初始化 yield return(AssetBundleManager.Inst.Init()); Res.Init(); Table.Init(); //检查版本 yield return(AppUpdate.Update()); yield return(ConstUpdate.Update()); // FaceBook SDK初始化 //FBTool.init(); EventDispatcher.TriggerEvent(EventKey.FinishGameInit); SceneLoadManager.Inst.LoadScene(SceneName.StartScene); //返回键侦听 //BackEventManager.Subscribe(WaitingManager.Inst.Back, int.MinValue, "WaitingManager.Back"); //BackEventManager.Subscribe(GuideManager.Inst.Back, -5, "Guide.Back"); BackEventManager.Subscribe(UIManager.Inst.Back, 1, "CK_UIManager.Back"); BackEventManager.Subscribe(BackEventManager.Inst.HandleBackAction, int.MaxValue, "Exit Panel"); }
public BasketController(IOptions <URLConfig> config, ICartService cartService) { _urls = config.Value; _cartService = cartService; }
public CartService(HttpClient httpClient, IOptions <URLConfig> config) { _apiClient = httpClient; _urls = config.Value; }
public OrderController(IOptions <URLConfig> config, IOrderService service) { _urls = config.Value; _service = service; }