Skip to content

Commit

Permalink
Merge pull request #10 from AngelsSoftwareOrg/angelsburger90_development
Browse files Browse the repository at this point in the history
- Fix the application version display
- Fix the panel layout to display correctly the text box content
- Fix the dashboard display of currency symbol
- Make the ordering of Lotto bet on descending order base on target order and its special ID value
- Add context menu on Lottery Bet listing a separator
- Add new form called Hit Comparison to compare your bet to all draw results to see how it fares
- Fix deleting winning bet record using bet_id column rather than id column
- Improve Read Me Document
- Make the columns click sortable
- Update the labels contents on the bottom of the form
  • Loading branch information
angelsburger90 authored May 16, 2021
2 parents 2091e03 + 7d214a9 commit bb9e0a0
Show file tree
Hide file tree
Showing 31 changed files with 1,492 additions and 112 deletions.
2 changes: 1 addition & 1 deletion App.config
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
<value>0</value>
</setting>
<setting name="version_release" serializeAs="String">
<value>1</value>
<value>2</value>
</setting>
<setting name="repository_name" serializeAs="String">
<value>LottoDataManager</value>
Expand Down
Binary file not shown.
Binary file modified DatabaseMain/Lotto_Main_DB.accdb
Binary file not shown.
Binary file added DatabaseMain/Lotto_Main_DB_Clear.accdb
Binary file not shown.
90 changes: 78 additions & 12 deletions Forms/MainFrm.Designer.cs

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

44 changes: 31 additions & 13 deletions Forms/MainFrm.cs
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
using LottoDataManager.Includes.Model.Structs;
using LottoDataManager.Includes.Utilities;
using AngelsRepositoryLib;
using LottoDataManager.Forms.Ticket;

namespace LottoDataManager
{
Expand Down Expand Up @@ -315,12 +316,10 @@ private void objListVwWinningNum_SelectionChanged(object sender, EventArgs e)
filter.Columns = GenerateOLVColumnForHighlighting();

List<String> regex = new List<string>();
regex.Add("^" + lotteryDrawResult.GetNum1().ToString() + "$");
regex.Add("^" + lotteryDrawResult.GetNum2().ToString() + "$");
regex.Add("^" + lotteryDrawResult.GetNum3().ToString() + "$");
regex.Add("^" + lotteryDrawResult.GetNum4().ToString() + "$");
regex.Add("^" + lotteryDrawResult.GetNum5().ToString() + "$");
regex.Add("^" + lotteryDrawResult.GetNum6().ToString() + "$");
foreach (int n in lotteryDrawResult.GetAllNumberSequenceSorted())
{
regex.Add("^" + n.ToString() + "$");
}
filter.RegexStrings = regex;

HighlightTextRenderer highlightTextRenderer = new HighlightTextRenderer(filter);
Expand All @@ -332,6 +331,7 @@ private void objListVwWinningNum_SelectionChanged(object sender, EventArgs e)
this.objListVwWinningNum.ModelFilter = filter;
this.objListVwWinningNum.DefaultRenderer = highlightTextRenderer;
this.objListVwWinningNum.SelectedForeColor = Color.Black;
this.objListVwWinningNum.Refresh();
}
private void objectLstVwLatestBet_SelectionChanged(object sender, EventArgs e)
{
Expand All @@ -340,12 +340,10 @@ private void objectLstVwLatestBet_SelectionChanged(object sender, EventArgs e)
TextMatchFilter filter = new TextMatchFilter(this.objectLstVwLatestBet);

List<String> regex = new List<string>();
regex.Add("^" + lotteryBet.GetNum1().ToString() + "$");
regex.Add("^" + lotteryBet.GetNum2().ToString() + "$");
regex.Add("^" + lotteryBet.GetNum3().ToString() + "$");
regex.Add("^" + lotteryBet.GetNum4().ToString() + "$");
regex.Add("^" + lotteryBet.GetNum5().ToString() + "$");
regex.Add("^" + lotteryBet.GetNum6().ToString() + "$");
foreach (int n in lotteryBet.GetAllNumberSequenceSorted())
{
regex.Add("^" + n.ToString() + "$");
}
filter.RegexStrings = regex;

HighlightTextRenderer highlightTextRenderer = new HighlightTextRenderer(filter);
Expand All @@ -357,6 +355,7 @@ private void objectLstVwLatestBet_SelectionChanged(object sender, EventArgs e)
this.objectLstVwLatestBet.ModelFilter = filter;
this.objectLstVwLatestBet.DefaultRenderer = highlightTextRenderer;
this.objectLstVwLatestBet.SelectedForeColor = Color.Black;
this.objectLstVwLatestBet.Refresh();
}
#endregion

Expand Down Expand Up @@ -681,14 +680,31 @@ private void updatesToolStripMenuItem_Click(object sender, EventArgs e)
{
try
{
UpdatesFrm updateFrm = new UpdatesFrm(AppSettings.GetRepositoryName);
UpdatesFrm updateFrm = new UpdatesFrm(AppSettings.GetRepositoryName, AppSettings.GetAppVersion());
updateFrm.ShowDialog();
}
catch (Exception ex)
{
MessageBox.Show(ex.Message);
}
}
private void hitComparisonToolStripMenuItem_Click(object sender, EventArgs e)
{
ShowHitComparisonForm();
}
private void toolStripBtnHitCompare_Click(object sender, EventArgs e)
{
ShowHitComparisonForm();
}
private void hitComparisonToolStripMenuItem1_Click(object sender, EventArgs e)
{
ShowHitComparisonForm();
}
private void ShowHitComparisonForm()
{
HitComparisonFrm hitFrm = new HitComparisonFrm(this.lotteryDataServices);
hitFrm.ShowDialog();
}
#endregion

#region "Main Form"
Expand All @@ -712,6 +728,8 @@ private void MainForm_Load(object sender, EventArgs e)
SplashScreenFrm.GetIntance().DisposeInstance();
this.Show();
}


#endregion


Expand Down
Loading

0 comments on commit bb9e0a0

Please sign in to comment.