Esempio n. 1
0
        public void UpdateDbSize()
        {
            var res = (double)DatabaseHelpers.GetSizeOnDisk();

            lbDbSize.Text          = Math.Round(res / 1024 / 1024, 2) + " MB";
            lbNumberOfBackups.Text = DatabaseHelpers.GetNumberOfSavegames().ToString();
        }
Esempio n. 2
0
        public void UpdateLastProtected()
        {
            var lastSaveTimestamp = DatabaseHelpers.GetLastSaveTimestamp();

            lbLastProtected.Text = lastSaveTimestamp == null ? "-" : lastSaveTimestamp.Value.ToShortDateString() + " " + lastSaveTimestamp.Value.ToLongTimeString();
        }