public void SaveFile(String filePath4MapDescriptor) { string absolutePath = AppDomain.CurrentDomain.BaseDirectory + filePath4MapDescriptor; _mapDatabase.Layers = SaveLayers(); Respawn ctresp = new Respawn { Center = new Point { X = InkCanvas.GetLeft(_counterTerroristStartPos), Y = InkCanvas.GetTop(_counterTerroristStartPos) }, Height = _counterTerroristStartPos.Height, Width = _counterTerroristStartPos.Width }; _mapDatabase.CounterTerroristStartPos = ctresp; Respawn tresp = new Respawn { Center = new Point { X = InkCanvas.GetLeft(_terroristStartPos), Y = InkCanvas.GetTop(_terroristStartPos) }, Height = _terroristStartPos.Height, Width = _terroristStartPos.Width }; _mapDatabase.TerroristStartPos = tresp; Dal.SaveMapDatabase(absolutePath, _mapDatabase); }