private void saveMenu_Click(object sender, EventArgs e) { if (humandb.dblist.Count != 0) { if (open_dlg != null && humandb != null) { humandb.WtiteToTxt(open_dlg.FileName); } } }