private void restoreToolStripMenuItem_Click(object sender, EventArgs e) { string fileBak = common.OpenFileDialog("Backup File | *.bak"); if (!String.IsNullOrEmpty(fileBak)) { RestoreLocalBackup(fileBak, logedUser); } }
public FormLoteServidores() { InitializeComponent(); string excelFile = common.OpenFileDialog("Excel | *.xls"); if (!String.IsNullOrEmpty(excelFile)) { PreencheGrid(excelFile); } }