示例#1
0
文件: Program.cs 项目: treningit/pile
 static void Main(string[] args)
 {
     Ukraine.Kiyv a = new Kiyv(100000);
     GB.London    b = new London(200000);
     France.Paris c = new Paris(150000);
     Sravn(a.Pop, b.Pop, c.Pop);
 }
        public EmbedBuilder BuildEmbed()
        {
            var eb = new EmbedBuilder
            {
                Title = "Sign up to " + exchange
            };

            if (TimeSpan.Days == 0 && TimeSpan.Hours != 0 || TimeSpan.Days == 0 && TimeSpan.Minutes != 0)
            {
                eb.WithAuthor("Pump will be in " + TimeSpan.Hours + " hours and " + TimeSpan.Minutes + " minutes.");
            }
            else
            {
                eb.WithAuthor("Pump will be in " + TimeSpan.Days + " days, " + TimeSpan.Hours + " hours and " + TimeSpan.Minutes + " minutes.");
            }

            eb.Url          = exchangeReferralLink;
            eb.ThumbnailUrl = "https://puu.sh/zbrt1/01c3a7da72.png";
            eb.Description  = "**" +
                              London.ToString("HH:mm" + " ") + London.DayOfWeek.ToString().Substring(0, 3) + London.ToString(", MMM d tt") + "GMT (London)\n" +
                              NewYork.ToString("HH:mm" + " ") + NewYork.DayOfWeek.ToString().Substring(0, 3) + NewYork.ToString(", MMM d tt") + "EST (New York)\n" +
                              Sweden.ToString("HH:mm" + " ") + Sweden.DayOfWeek.ToString().Substring(0, 3) + Sweden.ToString(", MMM d tt") + "CET (Sweden)\n" +
                              Seoul.ToString("HH:mm" + " ") + Seoul.DayOfWeek.ToString().Substring(0, 3) + Seoul.ToString(", MMM d tt") + "GMT+9 (Seoul)" + "**";
            eb.WithFooter("Countdown can be found on my status, on the right side bar. \n Pump will be on " + exchange + ". Make sure to sign up and transfer funds. We will trade using BTC Pairing.");
            eb.WithColor(10957198);
            return(eb);
        }
示例#3
0
        static void Main(string[] args)
        {
            London l = new London();
            Moscow m = new Moscow();
            Berlin b = new Berlin();

            Console.WriteLine(l > b);
            Console.WriteLine(m == l);
        }
示例#4
0
        static void Main(string[] args)
        {
            Kiev       k = new Kiev();
            London     l = new London();
            Washington w = new Washington();

            Console.WriteLine("Write count of people in Kiev: ");
            k.PeopleCount = Int32.Parse(Console.ReadLine());

            Console.WriteLine("Write count of people in London: ");
            l.PeopleCount = Int32.Parse(Console.ReadLine());

            Console.WriteLine("Write count of people in Washington: ");
            w.PeopleCount = Int32.Parse(Console.ReadLine());

            if (k.PeopleCount >= l.PeopleCount)
            {
                if (k.PeopleCount > w.PeopleCount)
                {
                    Console.WriteLine(" In Kiev are more people");
                }
            }
            if (k.PeopleCount <= l.PeopleCount)
            {
                if (l.PeopleCount > w.PeopleCount)
                {
                    Console.WriteLine(" In London are more people");
                }
            }
            if (w.PeopleCount >= l.PeopleCount)
            {
                if (k.PeopleCount < w.PeopleCount)
                {
                    Console.WriteLine(" In washington are more people");
                }
            }

            //Dictionary<string, long> d = new Dictionary<string, long>;
            //d.Add("Kiev",k.PeopleCount);
            //d.Add("London", l.PeopleCount);
            //d.Add("Washington", w.PeopleCount);

            Console.ReadKey();
        }