private void button1_Click(object sender, RoutedEventArgs e) { // name = textBlock1.Text.Trim(); textEventArgs E = new textEventArgs(textBox1.Text.Trim()); //close_window(); if (type == 0) { if (getdata != null) { // textEventArgs E = new textEventArgs(textBox1.Text.Trim()); getdata(this, E); } } if (type == 1) { if (getnote != null) { //textEventArgs E = new textEventArgs(textBox1.Text.Trim()); getnote(this, E); } } if (type == 2) { if (get_fujiannewname != null) { //textEventArgs E = new textEventArgs(textBox1.Text.Trim()); get_fujiannewname(this, E); } } this.Close(); }
private void button1_Click(object sender, RoutedEventArgs e) { // name = textBlock1.Text.Trim(); textEventArgs E = new textEventArgs(textBox1.Text.Trim()); getdata(this, E); this.Close(); }