internal virtual void UpdateSettings(NodePropertiesDialog dlg) { if (dlg != null) { dlg.UpdateSettings(); if (base.TreeView != null && dlg.PropertiesPage.ParentGroup != null && base.Parent != dlg.PropertiesPage.ParentGroup) { ServerTree.Instance.MoveNode(this, dlg.PropertiesPage.ParentGroup); } } }
private void VMConsoleConnectCheckBox_CheckedChanged(object sender, EventArgs e) { bool @checked = _vmConsoleConnectCheckBox.Checked; _vmIdLabel.Visible = @checked; _vmIdTextBox.Visible = @checked; _vmIdTextBox.Enabled = @checked; EnableTabsEventArgs enableTabsEventArgs = new EnableTabsEventArgs(); enableTabsEventArgs.Enabled = !@checked; enableTabsEventArgs.Reason = "for virtual machine console connect"; enableTabsEventArgs.TabNames = new string[4] { "Local Resources", "Remote Desktop Settings", "Security Settings", "Connection Settings" }; EnableTabsEventArgs args = enableTabsEventArgs; NodePropertiesDialog nodePropertiesDialog = FindForm() as NodePropertiesDialog; nodePropertiesDialog.EnableTabs(args); }