private void btn_BrowseRSA_Click(object sender, EventArgs e) { OpenFileDialog browse = new OpenFileDialog(); browse.InitialDirectory = @"C:\"; browse.FileName = "*.rsa"; browse.FilterIndex = 1; browse.Multiselect = false; if (browse.ShowDialog() == DialogResult.OK) { string fileName = browse.FileName; lb_RSA.Text = Path.GetFileNameWithoutExtension(fileName); ReadRSA readRsa = new ReadRSA(fileName); rsa = readRsa.readRsa(); } }
private void btn_Browse_Click(object sender, EventArgs e) { OpenFileDialog browse = new OpenFileDialog(); browse.InitialDirectory = @"C:\Users\Nicolae\Documents\GitHub\warehouse\docs\vbohudskyi\rsa"; browse.FileName = "*.rsa"; browse.FilterIndex = 1; browse.Multiselect = false; if (browse.ShowDialog() == DialogResult.OK) { string fileName = browse.FileName; txt_RSA.Text = Path.GetFileNameWithoutExtension(fileName); readRsa = new ReadRSA(fileName); readRsa.readRsa(); MessageBox.Show(readRsa.readRsa()); } }