private void okclick(object sender, RoutedEventArgs e) { cliwrapper.wrapper sample; sample = new cliwrapper.wrapper(); string message = Convert.ToString(sample.Eval(input.Text)); string caption = "Result"; MessageBoxButton buttons = MessageBoxButton.OK; MessageBox.Show(message, caption, buttons); }
static void Main(string[] args) { cliwrapper.wrapper sample; sample = new cliwrapper.wrapper(); String input; while (true) { input = Console.ReadLine(); Console.WriteLine(sample.Eval(input)); } }