private void SetValue_Click(object sender, RoutedEventArgs e)
{
string res = Microsoft.VisualBasic.Interaction.InputBox($"Enter new value", "Set Value", point.Value.OutVal.ToString());
float result = 0;
if (float.TryParse(res, out result))
{
Y = graph.localY(result);
graph.Paint(true);
}
}