Exemple #1
0
        public Task <bool> RenameExplorerObject(string newName)
        {
            //bool ret = false;
            //ConfigTextStream stream = new ConfigTextStream("postgis_connections", true, true);
            //ret = stream.ReplaceHoleLine(ConfigTextStream.BuildLine(_server, _connectionString), ConfigTextStream.BuildLine(newName, _connectionString));
            //stream.Close();

            //if (ret == true)
            //{
            //    _server = newName;
            //    if (ExplorerObjectRenamed != null) ExplorerObjectRenamed(this);
            //}
            //return ret;

            bool ret = false;

            if (_connectionString != null)
            {
                ConfigConnections stream = new ConfigConnections("postgis", "546B0513-D71D-4490-9E27-94CD5D72C64A");
                ret = stream.Rename(_server, newName);
            }
            if (ret == true)
            {
                _server = newName;
                if (ExplorerObjectRenamed != null)
                {
                    ExplorerObjectRenamed(this);
                }
            }
            return(Task.FromResult(ret));
        }
Exemple #2
0
        public Task <bool> RenameExplorerObject(string newName)
        {
            ConfigConnections stream = new ConfigConnections("eventtable", "546B0513-D71D-4490-9E27-94CD5D72C64A");
            bool ret = stream.Rename(_name, newName);

            if (ret == true)
            {
                _name = newName;
                if (ExplorerObjectRenamed != null)
                {
                    ExplorerObjectRenamed(this);
                }
            }
            return(Task.FromResult(ret));
        }
        public bool RenameExplorerObject(string newName)
        {
            bool ret = false;
            ConfigConnections stream = new ConfigConnections("OGR", "ca7011b3-0812-47b6-a999-98a900c4087d");

            ret = stream.Rename(_name, newName);

            if (ret == true)
            {
                _name = newName;
                if (ExplorerObjectRenamed != null)
                {
                    ExplorerObjectRenamed(this);
                }
            }
            return(ret);
        }
        public bool RenameExplorerObject(string newName)
        {
            bool ret = false;
            ConfigConnections stream = new ConfigConnections("TileCache", "b9d6ae5b-9ca1-4a52-890f-caa4009784d4");

            ret = stream.Rename(_name, newName);

            if (ret == true)
            {
                _name = newName;
                if (ExplorerObjectRenamed != null)
                {
                    ExplorerObjectRenamed(this);
                }
            }
            return(ret);
        }
Exemple #5
0
        public Task <bool> RenameExplorerObject(string newName)
        {
            bool ret = false;

            if (_connectionString != null)
            {
                ConfigConnections stream = new ConfigConnections(GeoJsonServiceGroupObject.ConfigName, GeoJsonServiceGroupObject.EncKey);
                ret = stream.Rename(_name, newName);
            }
            if (ret == true)
            {
                _name = newName;
                if (ExplorerObjectRenamed != null)
                {
                    ExplorerObjectRenamed(this);
                }
            }
            return(Task.FromResult(ret));
        }
Exemple #6
0
        public bool RenameExplorerObject(string newName)
        {
            bool ret = false;

            if (_connectionString != null)
            {
                ConfigConnections stream = new ConfigConnections("oracle", "546B0513-D71D-4490-9E27-94CD5D72C64A");
                ret = stream.Rename(_server, newName);
            }
            if (ret == true)
            {
                _server = newName;
                if (ExplorerObjectRenamed != null)
                {
                    ExplorerObjectRenamed(this);
                }
            }
            return(ret);
        }