public frmPrivateKeyEditor(PrivateKeyDTO dto) { PrivateKeyDTO = dto; InitializeComponent(); if (!string.IsNullOrEmpty(dto.PrivateKeyFileName)) { rdoSelect.Checked = true; txtFileName.Text = dto.PrivateKeyFileName; } else if (!string.IsNullOrEmpty(dto.PrivateKeyString)) { rdoPaste.Checked = true; txtKeyData.Text = dto.PrivateKeyString; } }
// Call to load from the XIB/NIB file public PrivateKeyEditorWindowController(PrivateKeyDTO privateKey) : base("PrivateKeyEditorWindow") { PrivateKeyDTO = privateKey; }