main window modifications
This commit is contained in:
14
.gitignore
vendored
14
.gitignore
vendored
@@ -1 +1,13 @@
|
|||||||
*/bin/
|
*/bin/
|
||||||
|
*/bin
|
||||||
|
bin/*
|
||||||
|
*/Debug
|
||||||
|
*/*/Debug
|
||||||
|
.vs/
|
||||||
|
*/*/bin/
|
||||||
|
/bin/
|
||||||
|
.vs/*
|
||||||
|
.vs/*
|
||||||
|
/.vs/*
|
||||||
|
/Inst/bin/*
|
||||||
|
*/*/Release/
|
@@ -33,12 +33,30 @@
|
|||||||
<Button Height="50" DockPanel.Dock="Top" Content="Winget" />
|
<Button Height="50" DockPanel.Dock="Top" Content="Winget" />
|
||||||
<Button Content="Activate Windows" DockPanel.Dock="Top" Height="50"/>
|
<Button Content="Activate Windows" DockPanel.Dock="Top" Height="50"/>
|
||||||
<Button Content="Office" DockPanel.Dock="Top" Height="50" />
|
<Button Content="Office" DockPanel.Dock="Top" Height="50" />
|
||||||
|
|
||||||
</DockPanel>
|
</DockPanel>
|
||||||
</Grid>
|
</Grid>
|
||||||
</TabItem>
|
</TabItem>
|
||||||
<TabItem Header="TabItem">
|
<TabItem Header="TabItem">
|
||||||
<Grid Background="#FFE5E5E5"/>
|
<Grid Background="#FFE5E5E5"/>
|
||||||
</TabItem>
|
</TabItem>
|
||||||
|
<TabItem Header="Tweaks">
|
||||||
|
<Grid Background="#FFE5E5E5">
|
||||||
|
<DockPanel HorizontalAlignment="Left" Height="480" LastChildFill="False" VerticalAlignment="Center" Width="207">
|
||||||
|
<Button Content="Task Scheduler" DockPanel.Dock="Top" Width="207" Height="50"/>
|
||||||
|
</DockPanel>
|
||||||
|
<DockPanel HorizontalAlignment="Left" Height="480" LastChildFill="False" VerticalAlignment="Center" Width="Auto">
|
||||||
|
<Grid>
|
||||||
|
|
||||||
|
<TextBox HorizontalAlignment="Left" Margin="273,10,0,0" TextWrapping="Wrap" VerticalAlignment="Top" Width="780" TextChanged="TaskName_TextChanged" ToolTip="Task Name" />
|
||||||
|
<TextBox HorizontalAlignment="Left" Margin="273,30,0,0" TextWrapping="Wrap" VerticalAlignment="Top" Width="780" TextChanged="TaskPath_TextChanged" ToolTip="Task Paths" />
|
||||||
|
<TextBox HorizontalAlignment="Left" Margin="273,50,0,0" TextWrapping="Wrap" VerticalAlignment="Top" IsReadOnly="True" Width="680" TextChanged="TaskPath_TextChanged" Name="Pathus"/>
|
||||||
|
<TextBox HorizontalAlignment="Left" Margin="273,70,0,0" TextWrapping="Wrap" VerticalAlignment="Top" IsReadOnly="True" Width="380" TextChanged="Argusy_TextChanged" Name="Argusy"/>
|
||||||
|
<Button Content="Button" HorizontalAlignment="Left" Margin="963,50,0,0" Width="90" VerticalAlignment="Top" Click="Button_Click_2"/>
|
||||||
|
|
||||||
|
</Grid>
|
||||||
|
</DockPanel>
|
||||||
|
</Grid>
|
||||||
|
</TabItem>
|
||||||
</TabControl>
|
</TabControl>
|
||||||
</Window>
|
</Window>
|
||||||
|
@@ -1,19 +1,19 @@
|
|||||||
using Installizer;
|
using Installizer;
|
||||||
using System.Windows;
|
using System.Windows;
|
||||||
namespace Inst
|
namespace Inst {
|
||||||
{
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Interaction logic for MainWindow.xaml
|
/// Interaction logic for MainWindow.xaml
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public partial class MainWindow : Window
|
public partial class MainWindow : Window {
|
||||||
{
|
public string? TaskName;
|
||||||
public MainWindow()
|
public string? TaskPath;
|
||||||
{
|
public string? FilePath;
|
||||||
|
public string? ArugmentLists;
|
||||||
|
public MainWindow() {
|
||||||
InitializeComponent();
|
InitializeComponent();
|
||||||
}
|
}
|
||||||
|
|
||||||
private void Button_Click(object sender, RoutedEventArgs e)
|
private void Button_Click(object sender, RoutedEventArgs e) {
|
||||||
{
|
|
||||||
Tasker tasker = new Tasker("ab", "cd");
|
Tasker tasker = new Tasker("ab", "cd");
|
||||||
int[] i = new int[] { 1, 2 };
|
int[] i = new int[] { 1, 2 };
|
||||||
tasker.TaskActionsDefine(@"C:\Program Files\PowerShell\7\pwsh.exe", null, null);
|
tasker.TaskActionsDefine(@"C:\Program Files\PowerShell\7\pwsh.exe", null, null);
|
||||||
@@ -24,14 +24,37 @@ namespace Inst
|
|||||||
System.Console.WriteLine("now");
|
System.Console.WriteLine("now");
|
||||||
}
|
}
|
||||||
|
|
||||||
private void Button_Click_1(object sender, RoutedEventArgs e)
|
private void Button_Click_1(object sender, RoutedEventArgs e) {
|
||||||
{
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
private void SvgCanvas_SourceUpdated(object sender, System.Windows.Data.DataTransferEventArgs e)
|
private void SvgCanvas_SourceUpdated(object sender, System.Windows.Data.DataTransferEventArgs e) {
|
||||||
{
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
private void TaskName_TextChanged(object sender, System.Windows.Controls.TextChangedEventArgs e) {
|
||||||
|
TaskName = e.OriginalSource.ToString();
|
||||||
|
}
|
||||||
|
|
||||||
|
private void TaskPath_TextChanged(object sender, System.Windows.Controls.TextChangedEventArgs e) {
|
||||||
|
TaskPath = e.OriginalSource.ToString();
|
||||||
|
}
|
||||||
|
|
||||||
|
private void Button_Click_2(object sender, RoutedEventArgs e) {
|
||||||
|
using (System.Windows.Forms.OpenFileDialog fileDialog = new()) {
|
||||||
|
fileDialog.Filter = "exe files (*.exe)|*.exe";
|
||||||
|
fileDialog.Title = "Start a file";
|
||||||
|
fileDialog.InitialDirectory = System.IO.Directory.GetCurrentDirectory();
|
||||||
|
if (fileDialog.ShowDialog() == System.Windows.Forms.DialogResult.OK) {
|
||||||
|
FilePath = fileDialog.FileName;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
Pathus.Text = FilePath;
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
private void Argusy_TextChanged(object sender, System.Windows.Controls.TextChangedEventArgs e) {
|
||||||
|
ArugmentLists = e.OriginalSource.ToString();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user