private void btnNew_Click(object sender, RoutedEventArgs e) { UCCommissionTemplateMaintain agentInfo = new UCCommissionTemplateMaintain(); agentInfo.Dialog = Window.ShowDialog("添加提成规则模板", agentInfo, (obj, args) => { if (DialogResultType.OK == args.DialogResult) { QueryResultGrid.Bind(); } }, new Size(800, 700)); }
private void Hyperlink_Edit_Click(object sender, RoutedEventArgs e) { UCCommissionTemplateMaintain agentInfo = new UCCommissionTemplateMaintain(); DynamicXml getSelectedItem = this.QueryResultGrid.SelectedItem as DynamicXml; agentInfo.SysNo = (int)getSelectedItem["SysNo"]; agentInfo.Dialog = Window.ShowDialog("编辑提成规则模板", agentInfo, (obj, args) => { if (DialogResultType.OK == args.DialogResult) { QueryResultGrid.Bind(); } }, new Size(800, 420)); }