private void button1_Click(object sender, EventArgs e) { var fbd = new OpenFileDialog(); DialogResult result = fbd.ShowDialog(); if (result == DialogResult.OK) { string path = fbd.FileName; if (db.Restore(path)) { MessageBox.Show("تم عمل نسخه احطياطيه"); } } }