private void RefreshDataGridView() { HealingGrid.DataSource = null; if (healingGridBindingSource.Count != 0) { HealingGrid.DataSource = healingGridBindingSource; HealingGrid.Refresh(); //HealingGrid.Show(); // HealingGrid.ClearSelection(); // this.ResetGridColor(); } }
/// <summary> /// Timer to update HealingGrid /// </summary> private void AutomaticRefreshHealingGridTick(object sender, EventArgs e) { try { HealingGrid.Refresh(); } catch { } }
/// <summary> /// Prune the listOfHealableUnits that meet a criteria /// </summary> private void pruneUnitHealingGrid_Click(object sender, EventArgs e) { HealableUnit.Remove(); HealingGrid.Refresh(); }