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); } } }; }
private void HandleCompileClick(object sender, RoutedEventArgs e) { BuildClicked?.Invoke(this, null); }
private void HandleCompileClick(object sender, EventArgs e) { TextBox.Clear(); BuildClicked?.Invoke(this, null); }