/// <summary> /// 地图保存 /// </summary> private void MapSave() { if (File.Exists(AppDomain.CurrentDomain.BaseDirectory + "\\setting.ini")) { IniFile.WriteIniData("AGV", "MapSise", Map_Size.Text, AppDomain.CurrentDomain.BaseDirectory + "\\setting.ini"); } if (mapMessage.UpdateSettingMap(UTC.ConvertDateTimeLong(Convert.ToDateTime(MapList.SelectedValue.ToString())), 1)) { MessageBox.Show("设置保存成功!", "提示", MessageBoxButton.OK, MessageBoxImage.Information); this.Close(); } }