public ApplicationDebugPropertyPageUI( ApplicationDebugPropertyPage page ) { InitializeComponent(); this.Page = page; // If values change mark this as dirty. outputPath.TextChanged += ( s, a ) => this.IsDirty = true; vaultInput.SelectedIndexChanged += ( s, a ) => this.IsDirty = true; launchMFilesInput.CheckedChanged += ( s, a ) => this.IsDirty = true; launchPowerShellInput.CheckedChanged += ( s, a ) => this.IsDirty = true; mfilesPathInput.TextChanged += ( s, a ) => this.IsDirty = true; powerShellScriptInput.TextChanged += ( s, a ) => this.IsDirty = true; launchMFilesInput.CheckedChanged += ( s, a ) => UpdateControlStates(); launchPowerShellInput.CheckedChanged += ( s, a ) => UpdateControlStates(); UpdateControlStates(); // Resolve the current API version and display it in the label. clientApp = new MFilesAPI.MFilesClientApplication(); apiVersion = clientApp.GetAPIVersion().Display; apiLabel.Text = string.Format( apiLabel.Text, apiVersion ); }
public ApplicationDebugPropertyPageUI(ApplicationDebugPropertyPage page) { InitializeComponent(); this.Page = page; // If values change mark this as dirty. outputPath.TextChanged += (s, a) => this.IsDirty = true; vaultInput.SelectedIndexChanged += (s, a) => this.IsDirty = true; launchMFilesInput.CheckedChanged += (s, a) => this.IsDirty = true; launchPowerShellInput.CheckedChanged += (s, a) => this.IsDirty = true; mfilesPathInput.TextChanged += (s, a) => this.IsDirty = true; powerShellScriptInput.TextChanged += (s, a) => this.IsDirty = true; // Update control enabled state when radio buttons change. launchMFilesInput.CheckedChanged += (s, a) => UpdateControlStates(); launchPowerShellInput.CheckedChanged += (s, a) => UpdateControlStates(); UpdateControlStates(); // Resolve the current API version and display it in the label. clientApp = new MFilesAPI.MFilesClientApplication(); apiVersion = clientApp.GetAPIVersion().Display; apiLabel.Text = string.Format(apiLabel.Text, apiVersion); }