예제 #1
0
        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;
            }
        }
예제 #2
0
 // Call to load from the XIB/NIB file
 public PrivateKeyEditorWindowController(PrivateKeyDTO privateKey) : base("PrivateKeyEditorWindow")
 {
     PrivateKeyDTO = privateKey;
 }