private void uiLoadReportButton_Click(object sender, EventArgs e) { //TODO: this logic is in the load exisiting case panel string filenameWithPath; using (OpenFileDialog openFileDialog = new OpenFileDialog()) { openFileDialog.Filter = "OSR Files|*.osr"; DialogResult result = openFileDialog.ShowDialog(); if (result != DialogResult.OK) return; filenameWithPath = openFileDialog.FileName; } Controls.Clear(); LoadExistingCasePanel exisitingCasePanel = new LoadExistingCasePanel(new System.IO.FileInfo(filenameWithPath), true); Controls.Add(exisitingCasePanel); exisitingCasePanel.PasswordCheckClick += ExisitingCasePanel_PasswordCheckClick; }
private void uiLoadReportButton_Click(object sender, EventArgs e) { //TODO: this logic is in the load exisiting case panel string filenameWithPath; using (OpenFileDialog openFileDialog = new OpenFileDialog()) { openFileDialog.Filter = "OSR Files|*.osr"; DialogResult result = openFileDialog.ShowDialog(); if (result != DialogResult.OK) { return; } filenameWithPath = openFileDialog.FileName; } Controls.Clear(); LoadExistingCasePanel exisitingCasePanel = new LoadExistingCasePanel(new System.IO.FileInfo(filenameWithPath), true); Controls.Add(exisitingCasePanel); exisitingCasePanel.PasswordCheckClick += ExisitingCasePanel_PasswordCheckClick; }
private void FirstLoadPanel_LoadOldCase_Click(object sender, EventArgs e) { string filenameWithPath; using (OpenFileDialog openFileDialog = new OpenFileDialog()) { openFileDialog.Filter = "OSR Files|*.osr"; openFileDialog.InitialDirectory = Environment.GetFolderPath(Environment.SpecialFolder.Desktop); DialogResult result = openFileDialog.ShowDialog(); if (result != DialogResult.OK) { return; } filenameWithPath = openFileDialog.FileName; } Controls.Clear(); LoadExistingCasePanel exisitingCasePanel = new LoadExistingCasePanel(new FileInfo(filenameWithPath)); Controls.Add(exisitingCasePanel); exisitingCasePanel.PasswordCheckClick += ExisitingCasePanel_PasswordCheckClick; }
private void FirstLoadPanel_LoadOldCase_Click(object sender, EventArgs e) { string filenameWithPath; using (OpenFileDialog openFileDialog = new OpenFileDialog()) { openFileDialog.Filter = "OSR Files|*.osr"; DialogResult result = openFileDialog.ShowDialog(); if (result != DialogResult.OK) return; filenameWithPath = openFileDialog.FileName; } Controls.Clear(); LoadExistingCasePanel exisitingCasePanel = new LoadExistingCasePanel(new FileInfo(filenameWithPath)); Controls.Add(exisitingCasePanel); exisitingCasePanel.PasswordCheckClick += ExisitingCasePanel_PasswordCheckClick; }