The Wiki for Tale 6 is in read-only mode and is available for archival and reference purposes only. Please visit the current Tale 11 Wiki in the meantime.

If you have any issues with this Wiki, please post in #wiki-editing on Discord or contact Brad in-game.

Difference between revisions of "User:Eugenius"

From ATITD6
Jump to navigationJump to search
 
(26 intermediate revisions by the same user not shown)
Line 1: Line 1:
<syntaxhighlight lang=CSharp>
+
[[File:T7Countdown.zip]]
  
 
+
<br>Under Construction
 
 
    {
 
        public Form1()
 
        {
 
            InitializeComponent();
 
        }
 
 
 
        private void Form1_Load(object sender, EventArgs e)
 
        {
 
            Timer countdownTimer = new Timer();
 
         
 
            countdownTimer.Interval = 1000;
 
            countdownTimer.Tick += new EventHandler(countdownToT7);
 
            countdownTimer.Start();
 
        }
 
        private void countdownToT7(object sender, EventArgs e)
 
        {
 
            DateTime currentDate = DateTime.UtcNow;
 
            DateTime betaLaunch = DateTime.Parse("8/28/2015 3:00:00 PM");
 
            DateTime fullTaleLaunch = DateTime.Parse("9/10/2015 3:00:00 PM");
 
            DateTime oneYearLaunch=DateTime.Parse("9/10/2015 6:00:00 PM");
 
            DateTime sixMonthLaunch=DateTime.Parse("9/10/2015 9:00:00 PM");
 
            DateTime threeMonthLaunch=DateTime.Parse("9/11/2015 12:00:00 AM");
 
            DateTime monthyLaunch=DateTime.Parse("9/11/2015 03:00:00 PM");
 
                   
 
            TimeSpan t1 = betaLaunch - currentDate;
 
            TimeSpan t2 = fullTaleLaunch - currentDate;
 
            TimeSpan t3 = oneYearLaunch - currentDate;
 
            TimeSpan t4 = sixMonthLaunch - currentDate;
 
            TimeSpan t5 = threeMonthLaunch - currentDate;
 
            TimeSpan t6 = monthyLaunch - currentDate;
 
 
 
            labelBetaTimeLeft.Text = string.Format("{0} Days, {1} Hours, {2} Minutes, and {3} Seconds.", t1.Days, t1.Hours, t1.Minutes, t1.Seconds);
 
            labelFullTimeRemaining.Text = string.Format("{0} Days, {1} Hours, {2} Minutes, and {3} Seconds.", t2.Days, t2.Hours, t2.Minutes, t2.Seconds);
 
            labelYearTimeRemaining.Text = string.Format("{0} Days, {1} Hours, {2} Minutes, and {3} Seconds.", t3.Days, t3.Hours, t3.Minutes, t3.Seconds);
 
            label6MonthTimeRemaining.Text = string.Format("{0} Days, {1} Hours, {2} Minutes, and {3} Seconds.", t4.Days, t4.Hours, t4.Minutes, t4.Seconds);
 
            label3MonthTimeRemaining.Text = string.Format("{0} Days, {1} Hours, {2} Minutes, and {3} Seconds.", t5.Days, t5.Hours, t5.Minutes, t5.Seconds);
 
            labelMonthlyTimeRemaining.Text = string.Format("{0} Days, {1} Hours, {2} Minutes, and {3} Seconds.", t6.Days, t6.Hours, t6.Minutes, t6.Seconds);
 
           
 
           
 
           
 
            Refresh();
 
        }
 
    }
 
}
 
</syntaxhighlight>
 

Latest revision as of 04:22, 28 August 2015

File:T7Countdown.zip


Under Construction