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 MeterVision.Patch
{
    /// <summary>
    /// EditStandResultDialog.xaml 的交互逻辑
    /// </summary>
    public partial class EditStandResultDialog : Window
    {
        public string NewStandResult { get; private set; }

        public EditStandResultDialog(string currentStandResult)
        {
            InitializeComponent();
            NewStandResultTextBox.Text = currentStandResult;
        }

        private void OkButton_Click(object sender, RoutedEventArgs e)
        {
            // 获取用户输入的新值
            NewStandResult = NewStandResultTextBox.Text.Trim();
            DialogResult = true;
        }

        private void CancelButton_Click(object sender, RoutedEventArgs e)
        {
            DialogResult = false;
        }

    }
}
