aboutsummaryrefslogtreecommitdiffstats
path: root/Software/Visual_Studio/VSIX/Tango.BuildExtensions/BuildForm.cs
blob: dea7c324eb4f5c41416c6f2fce5c6734a4ecebdc (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
45
46
47
48
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 BuildForm : Form
    {
        public bool UpdateDataBaseEntities { get; set; }
        public bool GenerateAndBuildObservables { get; set; }
        public bool GenerateAutoPmrMessages { get; set; }
        public bool UpdateAndBuildPmrMessages { get; set; }
        public bool GenerateSQLite { get; set; }
        public bool BuildSolution { get; set; }

        public BuildForm()
        {
            InitializeComponent();

            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)
        {
            DialogResult = DialogResult.OK;

            UpdateDataBaseEntities = chkUpdateDatabase.Checked;
            GenerateAndBuildObservables = chkGenerateObservables.Checked;
            GenerateAutoPmrMessages = chkGeneratePMR.Checked;
            UpdateAndBuildPmrMessages = chkUpdateAndBuildPMR.Checked;

            Close();
        }
    }
}