private void DocFileDinh(string FileName) { string pathFile = pathDinh + FileName + ".txt"; if (!File.Exists(pathFile)) { MessageBox.Show("file không tồn tại"); return; } var xx = File.ReadAllLines(pathFile); foreach (var item in xx) { var s = item.Split(';'); dT.ThemDinh(int.Parse(s[0]), int.Parse(s[1])); } }
private void Form1_MouseClick(object sender, MouseEventArgs e) { dt.ThemDinh(e.Location.X, e.Location.Y); }