public static int ReadLastEvent() { DLLEvents temp = lastEvent; lastEvent = DLLEvents.none; return((int)temp); }
public static void Load(double[] x) { values.Clear(); foreach (double a in x) { values.Add(a); } msgBack = "Loaded values: " + String.Join(";", values); if (form != null) { form.LoadValues(); //Form1 has a public method to load the values in the graph } lastEvent = DLLEvents.valuesLoaded; }