Skip to content

Commit

Permalink
Add Download statistics button
Browse files Browse the repository at this point in the history
  • Loading branch information
LiorBanai committed Jul 16, 2022
1 parent ac7fce1 commit deabe2b
Show file tree
Hide file tree
Showing 8 changed files with 346 additions and 186 deletions.
1 change: 1 addition & 0 deletions Analogy/Forms/AnalogyAboutBox.Designer.cs

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

14 changes: 14 additions & 0 deletions Analogy/Forms/AnalogyAboutBox.cs
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ namespace Analogy.Forms
{
partial class AnalogyAboutBox : XtraForm
{
private int SelectedTab { get; set; }
public AnalogyAboutBox()
{
InitializeComponent();
Expand All @@ -27,6 +28,10 @@ public AnalogyAboutBox()
$"{Environment.NewLine}Created by Lior Banai (2018){Environment.NewLine}Contact info:{Environment.NewLine}mail: [email protected]";
}

public AnalogyAboutBox(int selectedTab):this()
{
SelectedTab = selectedTab;
}
#region Assembly Attribute Accessors

public string AssemblyTitle
Expand Down Expand Up @@ -132,5 +137,14 @@ private async void sbtnFetchReleases_Click(object sender, EventArgs e)
panelChart.Controls.Add(uc);
uc.Dock = DockStyle.Fill;
}

private void AnalogyAboutBox_Load(object sender, EventArgs e)
{
if (SelectedTab > 0)
{
xtraTabControl1.SelectedTabPageIndex = SelectedTab;
sbtnFetchReleases_Click(sender,e);
}
}
}
}
17 changes: 15 additions & 2 deletions Analogy/Forms/FluentDesignMainForm.Designer.cs

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

6 changes: 6 additions & 0 deletions Analogy/Forms/FluentDesignMainForm.cs
Original file line number Diff line number Diff line change
Expand Up @@ -1519,5 +1519,11 @@ private void FluentDesignMainForm_FormClosing(object sender, FormClosingEventArg
BookmarkPersistManager.Instance.SaveFile();
}
}

private void bbiDownloadStatistics_ItemClick(object sender, ItemClickEventArgs e)
{
AnalogyAboutBox ab = new AnalogyAboutBox(2);
ab.ShowDialog(this);
}
}
}
Loading

0 comments on commit deabe2b

Please sign in to comment.