private void bnRestore_Click(object sender, EventArgs e) { // XXX Restore button handler try { OpenFileDialog openFileDialog = new OpenFileDialog(); openFileDialog.Filter = "VRS Files|*.vrs"; openFileDialog.InitialDirectory = Application.StartupPath; if (openFileDialog.ShowDialog() != DialogResult.OK) { return; } // XXX BookShopControl.deSerializeData(openFileDialog.SafeFileName); } catch (Exception ex) { MessageBox.Show("DeSerialization Failed"); } }