private void btnPositions_Click(object sender, EventArgs e) { FormPositions formPositions = new FormPositions(); formPositions.ShowDialog(); RefreshDBEntries(); dgvUsers.Refresh(); }
public void Load() { try { var fullPathFile = Path.Combine(Directory.GetParent(AppContext.BaseDirectory).FullName, SETTINGFILE); string json = File.ReadAllText(fullPathFile); dynamic jsonObj = JsonConvert.DeserializeObject(json); formPositions = jsonObj[nameof(FormPositions)]?.ToObject(typeof(FormPositions)) ?? new FormPositions(); SqlTextWrap = jsonObj[nameof(SqlTextWrap)]?.ToObject(typeof(bool)) ?? false; FVersionDBDefaultSceen = (EAction)(jsonObj[nameof(FVersionDBDefaultSceen)]?.ToObject(typeof(int)) ?? (int)EAction.ProjectScriptReload); } finally { } }