-
Notifications
You must be signed in to change notification settings - Fork 18
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
d48e966
commit f5169dd
Showing
13 changed files
with
242 additions
and
46 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
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
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,25 @@ | ||
<Window x:Class="EasyJob.Windows.RenameTabDialog" | ||
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" | ||
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" | ||
xmlns:d="http://schemas.microsoft.com/expression/blend/2008" | ||
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" | ||
xmlns:ui="http://schemas.modernwpf.com/2019" | ||
ui:WindowHelper.UseModernWindowStyle="True" | ||
xmlns:local="clr-namespace:EasyJob.Windows" | ||
mc:Ignorable="d" ResizeMode="NoResize" WindowStartupLocation="CenterScreen" | ||
Title="Rename tab" Height="260" Width="400"> | ||
<Grid> | ||
<Grid.RowDefinitions> | ||
<RowDefinition Height="90"/> | ||
<RowDefinition Height="36"/> | ||
<RowDefinition Height="*"/> | ||
<RowDefinition Height="40"/> | ||
</Grid.RowDefinitions> | ||
|
||
<TextBlock Padding="12" Grid.Row="0" Text="Rename current tab" Style="{StaticResource HeaderTextBlockStyle}" Background="#E2E2E2"/> | ||
<Label Content="Please specify new tab name" Margin="8" Grid.Row="1"/> | ||
<TextBox x:Name="RenameTabTextBox" Grid.Row="2" Margin="10,10,10,10" Height="16"/> | ||
<Button Grid.Row="3" Content="Rename" Margin="0,0,10,0" HorizontalAlignment="Right" Click="RenameTabButton_Click"/> | ||
<Button Grid.Row="3" Content="Cancel" Margin="0,0,85,0" HorizontalAlignment="Right" Click="CancelRenameButton_Click"/> | ||
</Grid> | ||
</Window> |
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,47 @@ | ||
using System; | ||
using System.Collections.Generic; | ||
using System.Linq; | ||
using System.Text; | ||
using System.Threading.Tasks; | ||
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.Shapes; | ||
|
||
namespace EasyJob.Windows | ||
{ | ||
/// <summary> | ||
/// Interaction logic for RenameTabDialog.xaml | ||
/// </summary> | ||
public partial class RenameTabDialog : Window | ||
{ | ||
public string NewTabName = ""; | ||
|
||
public RenameTabDialog() | ||
{ | ||
InitializeComponent(); | ||
} | ||
|
||
private void CancelRenameButton_Click(object sender, RoutedEventArgs e) | ||
{ | ||
DialogResult = false; | ||
} | ||
|
||
private void RenameTabButton_Click(object sender, RoutedEventArgs e) | ||
{ | ||
if(RenameTabTextBox.Text.Length > 0) | ||
{ | ||
NewTabName = RenameTabTextBox.Text; | ||
DialogResult = true; | ||
} | ||
else | ||
{ | ||
MessageBox.Show("Please specify new name for the tab"); | ||
} | ||
} | ||
} | ||
} |
Oops, something went wrong.