Пример #1
0
        public bool DeleteExplorerObject(ExplorerObjectEventArgs e)
        {
            ConfigConnections stream = new ConfigConnections("OGR", "ca7011b3-0812-47b6-a999-98a900c4087d");

            stream.Remove(_name);

            if (ExplorerObjectDeleted != null)
            {
                ExplorerObjectDeleted(this);
            }
            return(true);
        }
Пример #2
0
        public bool DeleteExplorerObject(ExplorerObjectEventArgs e)
        {
            ConfigConnections stream = new ConfigConnections("TileCache", "b9d6ae5b-9ca1-4a52-890f-caa4009784d4");

            stream.Remove(_name);

            if (ExplorerObjectDeleted != null)
            {
                ExplorerObjectDeleted(this);
            }
            return(true);
        }
Пример #3
0
        public bool DeleteExplorerObject(ExplorerObjectEventArgs e)
        {
            ConfigConnections configStream = new ConfigConnections("directories");

            configStream.Remove(this.Name);

            if (ExplorerObjectDeleted != null)
            {
                ExplorerObjectDeleted(this);
            }

            return(true);
        }
Пример #4
0
        public Task <bool> DeleteExplorerObject(ExplorerObjectEventArgs e)
        {
            ConfigConnections stream = new ConfigConnections("eventtable", "546B0513-D71D-4490-9E27-94CD5D72C64A");
            bool ret = stream.Remove(_name);

            if (ret)
            {
                if (ExplorerObjectDeleted != null)
                {
                    ExplorerObjectDeleted(this);
                }
            }
            return(Task.FromResult(ret));
        }
Пример #5
0
        public bool DeleteExplorerObject(ExplorerObjectEventArgs e)
        {
            bool ret = false;

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

            if (ret && ExplorerObjectDeleted != null)
            {
                ExplorerObjectDeleted(this);
            }
            return(ret);
        }
Пример #6
0
        public Task <bool> DeleteExplorerObject(ExplorerObjectEventArgs e)
        {
            //ConfigTextStream stream = new ConfigTextStream("postgis_connections", true, true);
            //stream.Remove(this.Name, _connectionString);
            //stream.Close();
            //if (ExplorerObjectDeleted != null) ExplorerObjectDeleted(this);
            //return true;

            bool ret = false;

            if (_connectionString != null)
            {
                ConfigConnections stream = new ConfigConnections("postgis", "546B0513-D71D-4490-9E27-94CD5D72C64A");
                ret = stream.Remove(_server);
            }

            if (ret && ExplorerObjectDeleted != null)
            {
                ExplorerObjectDeleted(this);
            }
            return(Task.FromResult(ret));
        }
Пример #7
0
        public Task <bool> DeleteExplorerObject(ExplorerObjectEventArgs e)
        {
            //ConfigTextStream stream = new ConfigTextStream("postgis_connections", true, true);
            //stream.Remove(this.Name, _connectionString);
            //stream.Close();
            //if (ExplorerObjectDeleted != null) ExplorerObjectDeleted(this);
            //return true;

            bool ret = false;

            if (_connectionString != null)
            {
                ConfigConnections stream = new ConfigConnections(GeoJsonServiceGroupObject.ConfigName, GeoJsonServiceGroupObject.EncKey);
                ret = stream.Remove(_name);
            }

            if (ret && ExplorerObjectDeleted != null)
            {
                ExplorerObjectDeleted(this);
            }

            return(Task.FromResult(ret));
        }