f4cc81bb71
- Add theme system (Dark/Light palettes, ModernTheme, ThemeManager) - Add InputDialog, Spinner common view - Add DuplicatesCsvExportService - Refresh views, dialogs, and view models across tabs - Update localization strings (en/fr) - Tweak services (transfer, permissions, search, user access, ownership elevation, bulk operations) Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
29 lines
681 B
C#
29 lines
681 B
C#
using System.Windows;
|
|
|
|
namespace SharepointToolbox.Views.Dialogs;
|
|
|
|
public partial class InputDialog : Window
|
|
{
|
|
public string ResponseText => ResponseBox.Text;
|
|
|
|
public InputDialog(string prompt, string initialValue)
|
|
{
|
|
InitializeComponent();
|
|
PromptText.Text = prompt;
|
|
ResponseBox.Text = initialValue ?? string.Empty;
|
|
Loaded += (_, _) => { ResponseBox.Focus(); ResponseBox.SelectAll(); };
|
|
}
|
|
|
|
private void Ok_Click(object sender, RoutedEventArgs e)
|
|
{
|
|
DialogResult = true;
|
|
Close();
|
|
}
|
|
|
|
private void Cancel_Click(object sender, RoutedEventArgs e)
|
|
{
|
|
DialogResult = false;
|
|
Close();
|
|
}
|
|
}
|