nuget_package_config_manager /nuget.packages/InputDialog.xaml.cs

Language C# Lines 73
MD5 Hash f5e4267fb521dceb781f1c0d4e372acf Estimated Cost $1,507 (why?)
Repository https://bitbucket.org/nisbus/nuget_package_config_manager.git View Raw File View Project SPDX
 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Linq;
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.Shapes;

namespace nuget.packages
{
    /// <summary>
    /// Interaction logic for InputDialog.xaml
    /// </summary>
    public partial class InputDialog : Elysium.Theme.Controls.Window, INotifyPropertyChanged
    {
        private string header;
        public string Header 
        {
            get { return header; }
            set 
            { 
                header = value; 
                if(PropertyChanged != null) 
                    PropertyChanged(this, new PropertyChangedEventArgs("Header")); 
            }
        }
        private string message;
        public string Message
        {
            get { return message; }
            set
            {
                message = value;
                if (PropertyChanged != null)
                    PropertyChanged(this, new PropertyChangedEventArgs("Message"));
            }
        }

        private string result;
        public string Result
        {
            get { return result; }
            set
            {
                result = value;
                if (PropertyChanged != null)
                    PropertyChanged(this, new PropertyChangedEventArgs("Result"));
            }
        }

        public InputDialog(string header, string message)
        {
            InitializeComponent();
            Header = header;
            Message = message;
            this.DataContext = this;
        }

        private void Button_Click_1(object sender, RoutedEventArgs e)
        {
            this.DialogResult = true;
        }

        public event PropertyChangedEventHandler PropertyChanged;
    }
}
Back to Top