Step 2 of 9: Add Class Variables and Constants
In this step, add the following code to your simple designer project to add class variables and constants:
' fields
Private _fileName As String ' name of the current file
Private _dirty As Boolean ' current file has changed
' title to display in the form caption
Dim _appName As String = "C1ReportDesigner Demo"
• C#
// fields
private string _fileName; // name of the current file
private bool _dirty; // current file has changed
// title to display in the form caption
private const string _appName = "C1ReportDesigner Demo";
|