aboutsummaryrefslogtreecommitdiffstats
path: root/Software/Visual_Studio/VSIX/Tango.BuildExtensions/RemoteDebugForm.cs
blob: a59a138e0de5fafc065fe01f03069ad6233e8cd3 (plain)
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
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;

namespace Tango.BuildExtensions
{
    public partial class RemoteDebugForm : Form
    {
        public String HostName { get; set; }
        public String UserName { get; set; }
        public String Password { get; set; }

        public RemoteDebugForm(String projectName)
        {
            InitializeComponent();

            txtProjectName.Text = projectName;

            btnOK.Click += BtnOK_Click;
            btnCancel.Click += BtnCancel_Click;
        }

        private void BtnCancel_Click(object sender, EventArgs e)
        {
            DialogResult = DialogResult.Cancel;
            Close();
        }

        private void BtnOK_Click(object sender, EventArgs e)
        {
            HostName = txtHostName.Text;
            UserName = txtUserName.Text;
            Password = txtPass.Text;
            DialogResult = DialogResult.OK;
            Close();
        }
    }
}