//*************************************************************************
// Constructor: ClusterUserSettingsDialog()
//
/// <summary>
/// Initializes a new instance of the <see cref="ClusterUserSettingsDialog"
/// /> class.
/// </summary>
///
/// <param name="mode">
/// Indicates the mode in which the dialog is being used.
/// </param>
///
/// <param name="clusterUserSettings">
/// The object being edited.
/// </param>
//*************************************************************************
public ClusterUserSettingsDialog
(
DialogMode mode,
ClusterUserSettings clusterUserSettings
)
{
Debug.Assert(clusterUserSettings != null);
clusterUserSettings.AssertValid();
m_oClusterUserSettings = clusterUserSettings;
InitializeComponent();
if (mode == DialogMode.EditOnly)
{
this.Text += " Options";
}
// Instantiate an object that saves and retrieves the user settings for
// this dialog. Note that the object automatically saves the settings
// when the form closes.
m_oClusterUserSettingsDialogUserSettings =
new ClusterUserSettingsDialogUserSettings(this);
DoDataExchange(false);
AssertValid();
}