-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Instances are working now and progressbar finally displays progress
- Loading branch information
1 parent
e978b06
commit 31fd5a0
Showing
11 changed files
with
480 additions
and
18 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
<ui:ContentDialog x:Class="Fluetta.Pages.EditDialog" | ||
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" | ||
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" | ||
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" | ||
xmlns:d="http://schemas.microsoft.com/expression/blend/2008" | ||
xmlns:local="clr-namespace:Fluetta.Pages" | ||
xmlns:ui="http://schemas.modernwpf.com/2019" | ||
xmlns:res="clr-namespace:Fluetta.Properties" | ||
x:Name="Dialog" | ||
Title="{x:Static res:Resources.Edit}" | ||
PrimaryButtonText="{x:Static res:Resources.Save}" | ||
PrimaryButtonStyle="{DynamicResource AccentButtonStyle}" | ||
SecondaryButtonText="{x:Static res:Resources.Cancel}" | ||
mc:Ignorable="d" | ||
d:DesignHeight="1000" d:DesignWidth="800"> | ||
<ScrollViewer> | ||
<ui:SimpleStackPanel Spacing="12" Margin="0 0 21 0"> | ||
<TextBox ui:ControlHelper.Header="{x:Static res:Resources.Name}" x:Name="Name"/> | ||
<ComboBox ui:ControlHelper.Header="{x:Static res:Resources.Version}" x:Name="Version" HorizontalAlignment="Stretch"/> | ||
<TextBox ui:ControlHelper.Header="{x:Static res:Resources.FolderName}" x:Name="FolderName"/> | ||
<ui:SimpleStackPanel Orientation="Horizontal" Spacing="5"> | ||
<TextBox ui:ControlHelper.Header="{x:Static res:Resources.JavaPath}" MinWidth="300" MaxWidth="312" x:Name="JavaDir" Width="291"/> | ||
<Button Content="{x:Static res:Resources.Browse}" VerticalAlignment="Bottom" Click="BrowseJavaClick" Height="32"/> | ||
</ui:SimpleStackPanel> | ||
<ui:SimpleStackPanel Orientation="Horizontal" Spacing="5"> | ||
<TextBox ui:ControlHelper.Header="{x:Static res:Resources.Resolution}" x:Name="ResX" Width="128"/> | ||
<TextBlock Text="x" VerticalAlignment="Bottom" Margin="0 10" Foreground="Gray"/> | ||
<TextBox ui:ControlHelper.Header=" " x:Name="ResY" Width="128"/> | ||
<Button Content="{x:Static res:Resources.Reset}" VerticalAlignment="Bottom" Height="32" Click="ResResetClick" MinWidth="89"/> | ||
</ui:SimpleStackPanel> | ||
<TextBox ui:ControlHelper.Header="{x:Static res:Resources.JVMArgs}" x:Name="JVMArgs"/> | ||
<TextBox ui:ControlHelper.Header="{x:Static res:Resources.MaxRAM}" x:Name="MaxRAM"/> | ||
</ui:SimpleStackPanel> | ||
</ScrollViewer> | ||
</ui:ContentDialog> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
using System; | ||
using System.Collections.Generic; | ||
using System.Text; | ||
using System.Windows; | ||
using System.Windows.Controls; | ||
using System.Windows.Data; | ||
using System.Windows.Documents; | ||
using System.Windows.Input; | ||
using System.Windows.Media; | ||
using System.Windows.Media.Imaging; | ||
using System.Windows.Navigation; | ||
using System.Windows.Shapes; | ||
using ModernWpf.Controls; | ||
using static Fluetta.Pages.Settings; | ||
|
||
namespace Fluetta.Pages | ||
{ | ||
/// <summary> | ||
/// Логика взаимодействия для EditDialog.xaml | ||
/// </summary> | ||
public partial class EditDialog : ContentDialog | ||
{ | ||
public EditDialog() | ||
{ | ||
InitializeComponent(); | ||
} | ||
|
||
private void BrowseJavaClick(object sender, RoutedEventArgs e) | ||
{ | ||
Ookii.Dialogs.Wpf.VistaOpenFileDialog fileDialog = new Ookii.Dialogs.Wpf.VistaOpenFileDialog | ||
{ | ||
DefaultExt = "exe" | ||
}; | ||
fileDialog.ShowDialog(); | ||
JavaDir.Text = fileDialog.FileName; | ||
} | ||
|
||
private void ResResetClick(object sender, RoutedEventArgs e) | ||
{ | ||
ResX.Text = SettingsData.resX; | ||
ResY.Text = SettingsData.resY; | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.