Пример #1
0
        private void btnNewItem_Click(object sender, RoutedEventArgs e)
        {
            //属性添加
            PropertyMaintain propertyMainUC = new PropertyMaintain();

            propertyMainUC.Dialog = Window.ShowDialog(ECCentral.Portal.UI.IM.Resources.ResPropertyMaintain.Dialog_AddProperty, propertyMainUC, (s, args) =>
            {
                if (args.DialogResult == Newegg.Oversea.Silverlight.Controls.Components.DialogResultType.OK)
                {
                    dgPropertyQueryResult.Bind();
                }
            }, new Size(500, 200));
        }
Пример #2
0
        private void hyperlinkPropertySysNo_Click(object sender, RoutedEventArgs e)
        {
            dynamic property = this.dgPropertyQueryResult.SelectedItem as dynamic;

            if (property != null)
            {
                PropertyMaintain propertyMainUC = new PropertyMaintain();
                propertyMainUC.BeginEditing(property.SysNo);

                propertyMainUC.Dialog = Window.ShowDialog(ECCentral.Portal.UI.IM.Resources.ResPropertyMaintain.Dialog_EditProperty, propertyMainUC, (s, args) =>
                {
                    if (args.DialogResult == Newegg.Oversea.Silverlight.Controls.Components.DialogResultType.OK)
                    {
                        dgPropertyQueryResult.Bind();
                    }
                }, new Size(500, 200));
            }
            else
            {
                Window.Alert(ResPropertyQuery.Msg_OnSelectProperty, MessageType.Error);
            }
        }