public void UpdateDbSize() { var res = (double)DatabaseHelpers.GetSizeOnDisk(); lbDbSize.Text = Math.Round(res / 1024 / 1024, 2) + " MB"; lbNumberOfBackups.Text = DatabaseHelpers.GetNumberOfSavegames().ToString(); }
public void UpdateLastProtected() { var lastSaveTimestamp = DatabaseHelpers.GetLastSaveTimestamp(); lbLastProtected.Text = lastSaveTimestamp == null ? "-" : lastSaveTimestamp.Value.ToShortDateString() + " " + lastSaveTimestamp.Value.ToLongTimeString(); }