private void btnAdd_Click(object sender, RoutedEventArgs e) { CWPageWinEdit medit = new CWPageWinEdit() { Owener = this, OpType = 0 }; medit.Show(); }
private void btnAlert_Click(object sender, RoutedEventArgs e) { var v = gdDataList.SelectedItem; if (v == null) { ShowMsg("请选择窗口页!"); return; } if (v is WCFSV.PageWinOR) { CWPageWinEdit medit = new CWPageWinEdit() { Owener = this, OpType = 1, UpdatePage = (v as WCFSV.PageWinOR) }; medit.Init(); medit.Show(); } }