private void OnDonate(object sender, LinkLabelLinkClickedEventArgs e) { linkLabelDonate.LinkVisited = false; var donate = new DonationDialog(); donate.ShowDialog(); }
private static void MaybeShowDonationDialog() { // first time: init donation countdown if (CoreSettings.CoreSettings.Default.DonationUseCountDown == 0) { CoreSettings.CoreSettings.Default.DonationUseCountDown = DonationCounterStart; } // -1 means the countdown is disabled, otherwise the dialog is shown when 0 is reached if (CoreSettings.CoreSettings.Default.DonationUseCountDown != -1 && --CoreSettings.CoreSettings.Default.DonationUseCountDown == 0) { CoreSettings.CoreSettings.Default.DonationUseCountDown = DonationCounterStart; var don = new DonationDialog(); don.ShowDialog(); } }
private void linkLabel3_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e) { var d = new DonationDialog(); d.ShowDialog(); }