0

when implementing this code and building the project I got the error someting like this.

Error 3'Ext.Net.X.MessageBox' is a 'property' but is used like a 'type'

am I doing someting wrong? (I use visual studio,and .net4 framework)

  X.Msg.Confirm("Message", "Confirm?", new X.MessageBox.ButtonsConfig
            {
                Yes = new X.MessageBox.ButtonConfig
                {
                    Handler = "CompanyX.DoYes()",
                    Text = "Yes Please"
                },
                No = new X.MessageBox.ButtonConfig
                {
                    Handler = "CompanyX.DoNo()",
                    Text = "No Thanks"
                }
            }).Show();  
4

1 回答 1

1

请用:

X.Msg.Confirm("Message", "Confirm?", new MessageBoxButtonsConfig()
{
    Yes = new MessageBoxButtonConfig()
    {
        Handler = "CompanyX.DoYes()",
        Text = "Yes Please"
    },
    No = new MessageBoxButtonConfig()
    {
        Handler = "CompanyX.DoNo()",
        Text = "No Thanks"
    }
}).Show();
于 2013-06-10T14:27:53.827 回答