public void DeleteRegion(RegionInfo regionInfo) { IRegionInfoConnector connector = Aurora.DataManager.DataManager.RequestPlugin <IRegionInfoConnector>(); if (connector != null) { connector.Delete(regionInfo); } }
private void deleteregion_Click(object sender, EventArgs e) { RegionInfo region = m_connector.GetRegionInfo(CurrentRegionID); if (region != null) //It never should be, but who knows { DialogResult r = Utilities.InputBox("Are you sure?", "Are you sure you want to delete this region?"); if (r == DialogResult.OK) { takeOffline_Click(sender, e); m_connector.Delete(region); //Remove everything from the GUI ChangeRegionInfo(null); //Update the regions in the list box as well RefreshCurrentRegions(); } } }
private void button13_Click(object sender, EventArgs e) { if (CurrentRegionID == UUID.Zero) { MessageBox.Show("Select a region before attempting to delete."); return; } RegionInfo region = m_connector.GetRegionInfo(CurrentRegionID); if (region != null) //It never should be, but who knows { DialogResult r = Utilities.InputBox("Are you sure?", "Are you sure you want to delete this region?"); if (r == DialogResult.OK) { m_connector.Delete(region); //Update the regions in the list box as well RefreshCurrentRegions(); } } }
private void deleteregion_Click(object sender, EventArgs e) { RegionInfo region = m_connector.GetRegionInfo(CurrentRegionID); if (region != null) //It never should be, but who knows { DialogResult r = Utilities.InputBox("Are you sure?", "Are you sure you want to delete this region?"); if (r == DialogResult.OK) { takeOffline_Click(sender, e); m_connector.Delete(region); SceneManager sm = m_OpenSimBase.ApplicationRegistry.RequestModuleInterface <SceneManager>(); if (sm != null) { sm.DeleteRegion(region); } //Remove everything from the GUI ChangeRegionInfo(null); //Update the regions in the list box as well RefreshCurrentRegions(); } } }