Exemplo n.º 1
0
 public CityOrdersWindow(IGuiServices guiServices, ITexts texts) : base(guiServices)
 {
     //TODO: provide translations for all items here
     ButtonNames = new Dictionary <string, Action <HandledEventArgs> >
     {
         {
             "Podatki", args =>
             {
                 TaxesClicked?.Invoke(args);
                 Closing?.Invoke(args);
             }
         },
         {
             "Nowy Legion", args =>
             {
                 NewLegionClicked?.Invoke(args);
                 Closing?.Invoke(args);
             }
         },
         {
             "Rozbudowa", args =>
             {
                 BuildClicked?.Invoke(args);
                 Closing?.Invoke(args);
             }
         },
         {
             "Budowa Murow", args =>
             {
                 WallsBuildClicked?.Invoke(args);
                 Closing?.Invoke(args);
             }
         },
         {
             texts.Get("exit"), args =>
             {
                 ExitClicked?.Invoke(args);
                 Closing?.Invoke(args);
             }
         }
     };
 }
Exemplo n.º 2
0
 private void HandleCompileClick(object sender, RoutedEventArgs e)
 {
     BuildClicked?.Invoke(this, null);
 }
Exemplo n.º 3
0
 private void HandleCompileClick(object sender, EventArgs e)
 {
     TextBox.Clear();
     BuildClicked?.Invoke(this, null);
 }