Add message of the day

This commit is contained in:
2026-02-17 09:14:08 +09:00
parent 3b7caffb15
commit de57ef9e2c
2 changed files with 60 additions and 1 deletions
+7 -1
View File
@@ -40,7 +40,13 @@ class MainViewModel : BaseViewModel, IFontResolver
{
_processDir = Path.GetDirectoryName(Environment.ProcessPath) ?? "";
_isCreatingPDF = false;
_createPDFLog = "Ready to create PDF! Choose a folder to begin...";
var quotes = Constants.GetQuotes();
Random random = new Random();
var quoteIndex = random.Next(0, quotes.Length);
_createPDFLog = "----- Receipt PDF Builder ------" + Environment.NewLine;
_createPDFLog += quotes[quoteIndex] + Environment.NewLine;
_createPDFLog += "--------------------------------" + Environment.NewLine;
_createPDFLog += "Ready to create PDF! Choose a folder to begin...";
_workingFolder = "";
_reportFiles = new ObservableCollection<ReportFile>();
_reportFiles.CollectionChanged += ( sender, e ) => { NotifyPropertyChanged(nameof(IsCreatePDFButtonEnabled)); };