Beispiel #1
0
        private void btnCategoryNew_Click(object sender, RoutedEventArgs e)
        {
            //类别延保添加
            CategoryExtendWarrantyCategoryDetail mainUC = new CategoryExtendWarrantyCategoryDetail();

            mainUC.Dialog = Window.ShowDialog(ECCentral.Portal.UI.IM.Resources.ResCategoryExtendWarrantyMaintainDetail.Dialog_AddCategory, mainUC, (s, args) =>
            {
                if (args.DialogResult == Newegg.Oversea.Silverlight.Controls.Components.DialogResultType.OK)
                {
                    dgCategoryExtendWarrantyQueryResult.Bind();
                }
            }, new Size(650, 300));
        }
Beispiel #2
0
        private void hyperlinkCategoryEdit_Click(object sender, RoutedEventArgs e)
        {
            dynamic item = this.dgCategoryExtendWarrantyQueryResult.SelectedItem as dynamic;

            if (item == null)
            {
                return;
            }
            var sysNo = Convert.ToInt32(item.SysNo);
            //类别延保编辑
            CategoryExtendWarrantyCategoryDetail detail = new CategoryExtendWarrantyCategoryDetail();

            detail.SysNo  = sysNo;
            detail.Dialog = Window.ShowDialog(ECCentral.Portal.UI.IM.Resources.ResCategoryExtendWarrantyMaintainDetail.Dialog_EditCategory, detail, (s, args) =>
            {
                if (args.DialogResult == Newegg.Oversea.Silverlight.Controls.Components.DialogResultType.OK)
                {
                    dgCategoryExtendWarrantyQueryResult.Bind();
                }
            }, new Size(650, 300));
        }