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

            donate.ShowDialog();
        }
예제 #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();
            }
        }
예제 #3
0
파일: About.cs 프로젝트: Kolky/open3mod
 private void linkLabel3_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e)
 {
     var d = new DonationDialog();
     d.ShowDialog();
 }
예제 #4
0
        private void linkLabel3_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e)
        {
            var d = new DonationDialog();

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