我正在尝试检查一个字符串是否包含数字值,如果不包含,则返回一个标签;如果包含,则显示主窗口。如何实现呢?
If (mystring = a numeric value)
//do this:
var newWindow = new MainWindow();
newWindow.Show();
If (mystring = non numeric)
//display mystring in a label
label1.Text = mystring;
else return error to message box