bottom numbers formatting
This commit is contained in:
parent
dd6967e88b
commit
565d34cec9
14
LibationWinForms/Form1.Designer.cs
generated
14
LibationWinForms/Form1.Designer.cs
generated
@ -304,26 +304,26 @@
|
|||||||
// visibleCountLbl
|
// visibleCountLbl
|
||||||
//
|
//
|
||||||
this.visibleCountLbl.Name = "visibleCountLbl";
|
this.visibleCountLbl.Name = "visibleCountLbl";
|
||||||
this.visibleCountLbl.Size = new System.Drawing.Size(61, 17);
|
this.visibleCountLbl.Size = new System.Drawing.Size(53, 17);
|
||||||
this.visibleCountLbl.Text = "Visible: {0}";
|
this.visibleCountLbl.Text = "Visible: 0";
|
||||||
//
|
//
|
||||||
// springLbl
|
// springLbl
|
||||||
//
|
//
|
||||||
this.springLbl.Name = "springLbl";
|
this.springLbl.Name = "springLbl";
|
||||||
this.springLbl.Size = new System.Drawing.Size(375, 17);
|
this.springLbl.Size = new System.Drawing.Size(517, 17);
|
||||||
this.springLbl.Spring = true;
|
this.springLbl.Spring = true;
|
||||||
//
|
//
|
||||||
// backupsCountsLbl
|
// backupsCountsLbl
|
||||||
//
|
//
|
||||||
this.backupsCountsLbl.Name = "backupsCountsLbl";
|
this.backupsCountsLbl.Name = "backupsCountsLbl";
|
||||||
this.backupsCountsLbl.Size = new System.Drawing.Size(336, 17);
|
this.backupsCountsLbl.Size = new System.Drawing.Size(218, 17);
|
||||||
this.backupsCountsLbl.Text = "BACKUPS: No progress: {0} Encrypted: {1} Fully backed up: {2}";
|
this.backupsCountsLbl.Text = "[Calculating backed up book quantities]";
|
||||||
//
|
//
|
||||||
// pdfsCountsLbl
|
// pdfsCountsLbl
|
||||||
//
|
//
|
||||||
this.pdfsCountsLbl.Name = "pdfsCountsLbl";
|
this.pdfsCountsLbl.Name = "pdfsCountsLbl";
|
||||||
this.pdfsCountsLbl.Size = new System.Drawing.Size(218, 17);
|
this.pdfsCountsLbl.Size = new System.Drawing.Size(171, 17);
|
||||||
this.pdfsCountsLbl.Text = "| PDFs: NOT d/l\'ed: {0} Downloaded: {1}";
|
this.pdfsCountsLbl.Text = "| [Calculating backed up PDFs]";
|
||||||
//
|
//
|
||||||
// addFilterBtn
|
// addFilterBtn
|
||||||
//
|
//
|
||||||
|
|||||||
@ -16,10 +16,6 @@ namespace LibationWinForms
|
|||||||
{
|
{
|
||||||
public partial class Form1 : Form
|
public partial class Form1 : Form
|
||||||
{
|
{
|
||||||
private string backupsCountsLbl_Format { get; }
|
|
||||||
private string pdfsCountsLbl_Format { get; }
|
|
||||||
private string visibleCountLbl_Format { get; }
|
|
||||||
|
|
||||||
private string beginBookBackupsToolStripMenuItem_format { get; }
|
private string beginBookBackupsToolStripMenuItem_format { get; }
|
||||||
private string beginPdfBackupsToolStripMenuItem_format { get; }
|
private string beginPdfBackupsToolStripMenuItem_format { get; }
|
||||||
|
|
||||||
@ -28,18 +24,9 @@ namespace LibationWinForms
|
|||||||
InitializeComponent();
|
InitializeComponent();
|
||||||
|
|
||||||
// back up string formats
|
// back up string formats
|
||||||
backupsCountsLbl_Format = backupsCountsLbl.Text;
|
|
||||||
pdfsCountsLbl_Format = pdfsCountsLbl.Text;
|
|
||||||
visibleCountLbl_Format = visibleCountLbl.Text;
|
|
||||||
|
|
||||||
beginBookBackupsToolStripMenuItem_format = beginBookBackupsToolStripMenuItem.Text;
|
beginBookBackupsToolStripMenuItem_format = beginBookBackupsToolStripMenuItem.Text;
|
||||||
beginPdfBackupsToolStripMenuItem_format = beginPdfBackupsToolStripMenuItem.Text;
|
beginPdfBackupsToolStripMenuItem_format = beginPdfBackupsToolStripMenuItem.Text;
|
||||||
|
|
||||||
// after backing up formats: can set default/temp visible text
|
|
||||||
backupsCountsLbl.Text = "[Calculating backed up book quantities]";
|
|
||||||
pdfsCountsLbl.Text = "[Calculating backed up PDFs]";
|
|
||||||
setVisibleCount(null, 0);
|
|
||||||
|
|
||||||
if (this.DesignMode)
|
if (this.DesignMode)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
@ -179,7 +166,7 @@ namespace LibationWinForms
|
|||||||
#endregion
|
#endregion
|
||||||
|
|
||||||
#region bottom: qty books visible
|
#region bottom: qty books visible
|
||||||
private void setVisibleCount(object _, int qty) => visibleCountLbl.Text = string.Format(visibleCountLbl_Format, qty);
|
private void setVisibleCount(object _, int qty) => visibleCountLbl.Text = string.Format("Visible: {0}", qty);
|
||||||
#endregion
|
#endregion
|
||||||
|
|
||||||
#region bottom: backup counts
|
#region bottom: backup counts
|
||||||
@ -193,6 +180,8 @@ namespace LibationWinForms
|
|||||||
}
|
}
|
||||||
private void setBookBackupCounts(int booksFullyBackedUp, int booksDownloadedOnly, int booksNoProgress)
|
private void setBookBackupCounts(int booksFullyBackedUp, int booksDownloadedOnly, int booksNoProgress)
|
||||||
{
|
{
|
||||||
|
var backupsCountsLbl_Format = "BACKUPS: No progress: {0} Encrypted: {1} Fully backed up: {2}";
|
||||||
|
|
||||||
// enable/disable export
|
// enable/disable export
|
||||||
var hasResults = 0 < (booksFullyBackedUp + booksDownloadedOnly + booksNoProgress);
|
var hasResults = 0 < (booksFullyBackedUp + booksDownloadedOnly + booksNoProgress);
|
||||||
exportLibraryToolStripMenuItem.Enabled = hasResults;
|
exportLibraryToolStripMenuItem.Enabled = hasResults;
|
||||||
@ -217,6 +206,8 @@ namespace LibationWinForms
|
|||||||
}
|
}
|
||||||
private void setPdfBackupCounts(int pdfsDownloaded, int pdfsNotDownloaded)
|
private void setPdfBackupCounts(int pdfsDownloaded, int pdfsNotDownloaded)
|
||||||
{
|
{
|
||||||
|
var pdfsCountsLbl_Format = "| PDFs: NOT d/l\'ed: {0} Downloaded: {1}";
|
||||||
|
|
||||||
// update bottom numbers
|
// update bottom numbers
|
||||||
var hasResults = 0 < (pdfsNotDownloaded + pdfsDownloaded);
|
var hasResults = 0 < (pdfsNotDownloaded + pdfsDownloaded);
|
||||||
var statusStripText
|
var statusStripText
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user