Free cookie consent management tool by TermsFeed Policy Generator

source: trunk/tools/Templates/VS2010Templates/ViewWizardForm.cs @ 4146

Last change on this file since 4146 was 4146, checked in by abeham, 14 years ago

#567

  • Added View Wizard, Wizards GAC installer, and view template
  • Sometimes it works, sometimes it doesn't
File size: 1.3 KB
Line 
1using System.Windows.Forms;
2
3namespace HeuristicLab.VS2010Wizards {
4  public partial class ViewWizardForm : Form {
5    public string BaseClass {
6      get;
7      private set;
8    }
9    public string ViewContentType {
10      get;
11      private set;
12    }
13    public bool IsDefaultView {
14      get;
15      private set;
16    }
17
18    public ViewWizardForm() {
19      InitializeComponent();
20      BaseClass = baseClassTextBox.Text;
21      ViewContentType = viewContentTypeTextBox.Text;
22      IsDefaultView = isDefaultViewCheckBox.Checked;
23    }
24
25    private void okButton_Click(object sender, System.EventArgs e) {
26      DialogResult = System.Windows.Forms.DialogResult.OK;
27      Close();
28    }
29
30    private void cancelButton_Click(object sender, System.EventArgs e) {
31      DialogResult = System.Windows.Forms.DialogResult.Cancel;
32      Close();
33    }
34
35    private void baseClassTextBox_TextChanged(object sender, System.EventArgs e) {
36      BaseClass = baseClassTextBox.Text;
37    }
38
39    private void viewContentTypeTextBox_TextChanged(object sender, System.EventArgs e) {
40      ViewContentType = viewContentTypeTextBox.Text;
41    }
42
43    private void isDefaultViewCheckBox_CheckedChanged(object sender, System.EventArgs e) {
44      IsDefaultView = isDefaultViewCheckBox.Checked;
45    }
46  }
47}
Note: See TracBrowser for help on using the repository browser.