Catel.Xamarin.Forms.ArgumentsProxyFactory.AlertArgumentsProxy.AlertArgumentsProxy C# (CSharp) Method

AlertArgumentsProxy() public method

Initializes a new instance of the AlertArgumentsProxy class.
public AlertArgumentsProxy ( string caption, string message, string positiveButton, string negativeButton ) : System
caption string The caption
message string The message
positiveButton string The positive button text
negativeButton string The negative button text
return System
            public AlertArgumentsProxy(string caption, string message, string positiveButton, string negativeButton)
            {
                var assembly = typeof (Application).GetAssemblyEx();
                InternalType = assembly.GetType("Xamarin.Forms.AlertArguments");

                _propertyInfo = InternalType.GetPropertyEx("Result");
                var constructor = InternalType.GetConstructorsEx()[0];
                Object = constructor.Invoke(new object[] {caption, message, positiveButton, negativeButton});
            }
ArgumentsProxyFactory.AlertArgumentsProxy