public home() { InitializeComponent(); connect = new ConnectProlog(); string filePath1 = @"C:\Users\HuynhDuc\Desktop\ComputerProblem\Interface1\Interface1\bin\Debug\Diagnose.pl"; connect.Load_file(filePath1); addCheckBoxs(); }
private void button2_Click(object sender, EventArgs e) { OpenFileDialog op = new OpenFileDialog(); op.Filter = "Prolog file|*.pl"; op.ShowDialog(); String FilePath = op.FileName; connect.Load_file(FilePath); MessageBox.Show("Load file success !"); this.btn_query.Enabled = true; isLoad = 1; }