Exemplo n.º 1
0
        void game_OnFactionWon(object sender, FactionEventArgs e)
        {
            string factionName = game.GetFaction(e.FactionId).Name;

            NotificationBar.AddNotification(NotificationIcon.GameFinished).Clicked += delegate
            {
                ShowNotification($"{factionName} has won!",
                                 $"The war is over!" + Environment.NewLine +
                                 $"{factionName} has conquered the world and established a new world order!",
                                 NotificationType.Informational,
                                 NotificationStyle.Big,
                                 new Size2D(256, 192));
            };
        }
Exemplo n.º 2
0
        void game_OnFactionRevived(object sender, FactionEventArgs e)
        {
            string factionName = game.GetFaction(e.FactionId).Name;

            NotificationBar.AddNotification(NotificationIcon.FactionDestroyed).Clicked += delegate
            {
                ShowNotification($"{factionName} revived!",
                                 $"A significant development in the war just took place, " +
                                 $"as {factionName} was revived!",
                                 NotificationType.Informational,
                                 NotificationStyle.Big,
                                 new Size2D(256, 192));
            };
        }