Beispiel #1
0
        private void OnDonate(object sender, LinkLabelLinkClickedEventArgs e)
        {
            linkLabelDonate.LinkVisited = false;
            var donate = new DonationDialog();

            donate.ShowDialog();
        }
Beispiel #2
0
        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();
            }
        }
Beispiel #3
0
 private void linkLabel3_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e)
 {
     var d = new DonationDialog();
     d.ShowDialog();
 }
Beispiel #4
0
        private void linkLabel3_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e)
        {
            var d = new DonationDialog();

            d.ShowDialog();
        }
Beispiel #5
0
        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();
            }
        }
Beispiel #6
0
 private void OnDonate(object sender, LinkLabelLinkClickedEventArgs e)
 {
     linkLabelDonate.LinkVisited = false;
     var donate = new DonationDialog();
     donate.ShowDialog();
 }