public void WeightResultBtn_Click(object sender, EventArgs e) { string getPath = Path.GetFullPath(Path.Combine(Environment.CurrentDirectory, @"..\..\..\")); string _trainDataPath = getPath + "\\DietData\\DataModel\\trainData\\weight_lr_train1.csv"; bool dietResult = MyMethodsLib.CallLogisticRegression(weightBox.Text, Username, _trainDataPath); string inputStrWeightResult = ""; if (dietResult == true) { inputStrWeightResult = "Above Norm"; } else { inputStrWeightResult = "Normal"; } WeightResultBox.Text = inputStrWeightResult; }