private void UserControl_MouseDoubleClick(object sender, MouseButtonEventArgs e) { StockInfo dlg = new StockInfo(); dlg.StockID = ((StockStateBox)sender).stockid; dlg.Show(); }
private void uEvent(object sender, EventArgs e) { //do something(including send message to other user controls) StockInfo dlg = new StockInfo(); dlg.StockID = Regex.Replace(((StockStateBox)sender).StockName.Text, @"[\r\n]", ""); dlg.colora.Color = this.colora.Color; dlg.colorb.Color = this.colorb.Color; dlg.colorc.Color = this.colorc.Color; dlg.colord.Color = this.colord.Color; dlg.colore.Color = this.colore.Color; dlg.Show(); }
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(); }
private void Button_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.colora.Color = this.colora.Color; dlg.colorb.Color = this.colorb.Color; dlg.colorc.Color = this.colorc.Color; dlg.colord.Color = this.colord.Color; dlg.colore.Color = this.colore.Color; dlg.Show(); }
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(); }
private void UserControl_MouseDoubleClick(object sender, MouseButtonEventArgs e) { StockInfo dlg = new StockInfo(); dlg.StockID = ((StockStateBox)sender).stockid; dlg.Show(); }