Exemplo n.º 1
0
        private void formMain_Deactivate(object sender, EventArgs e)
        {
            config = Util.JsonHelper.DeserializeFile <Entity.Config>();

            if (config != null && config.Connections.Count > 0)
            {
                tvwConnection.Nodes.Clear();
                foreach (Entity.Connection cn in config.Connections)
                {
                    tvwConnection.Nodes.Add(cn.ConnectionName);
                }
            }
        }
Exemplo n.º 2
0
        private void RefreshConfig()
        {
            config = Util.JsonHelper.DeserializeFile <Entity.Config>();

            if (config != null && config.Connections.Count > 0)
            {
                tvwConnection.Nodes.Clear();
                foreach (Entity.Connection cn in config.Connections)
                {
                    tvwConnection.Nodes.Add(cn.ConnectionName);
                }
            }
        }