private void btnAlert_Click(object sender, RoutedEventArgs e) { if (gvList.SelectedItem == null) { MessageBox.Show("请选择要编辑的场景!"); return; } TP_ButtonSetPropertyEdit _Win = new TP_ButtonSetPropertyEdit(this, OpType.Alert); _Win.Show(); }
private void btnAdd_Click(object sender, RoutedEventArgs e) { TP_ButtonSetPropertyEdit _Win = new TP_ButtonSetPropertyEdit(this,OpType.Add); _Win.Owner = this; _Win.Show(); }