Esempio n. 1
0
 private void Search_Click(object sender, RoutedEventArgs e)
 {
     int id;
     if (int.TryParse(StockID.Text, out id) == false)
     {
         MessageBox.Show("错误的股票编号输入\n请输入纯数字编号");
         return;
     }
     StockInfo dlg = new StockInfo();
     dlg.StockID = StockID.Text;
     dlg.Show();
 }
Esempio n. 2
0
 private void UserControl_MouseDoubleClick(object sender, MouseButtonEventArgs e)
 {
     StockInfo dlg = new StockInfo();
     dlg.StockID = ((StockStateBox)sender).stockid;
     dlg.Show();
 }