private static void Initialize() { if (resourcesWindow == null) { buttonHeight = Screen.height / 8; resourcesWindow = new ResourcesWindow(); structuresWindow = new StructuresWindow(); inventoryWindow = new InventoryWindow(); blueprintWindow = new BlueprintWindow(); } }
private void res_btn_Click(object sender, RoutedEventArgs e) { var dialog = new ResourcesWindow(); dialog.ShowDialog(); }