private void showInfoButton_Click(object sender, EventArgs e) { if (PackedData == null && string.IsNullOrWhiteSpace(chainID.Text)) { MessageBox.Show(Resources.NEED_CID_OR_CHAIN_ID_ERROR, "Error", MessageBoxButtons.OK, MessageBoxIcon.Error); return; } if (string.IsNullOrWhiteSpace(chainID.Text)) { var info = new CandidateInfoForm(); info.LoadCandidateInfo(PackedData, Password); info.Show(); } else { var info = new CandidateInfoForm(); var packed = CandidateDelegate.GetPackedCandidate(Convert.FromBase64String(chainID.Text)); info.LoadCandidateInfo(packed, Password, Convert.FromBase64String(chainID.Text)); info.Show(); } }