Ext.Net.MessageBoxButtonsConfig.ToScript C# (CSharp) Method

ToScript() private method

private ToScript ( ) : string
return string
        public virtual string ToScript()
        {
            JsonObject config = new JsonObject();

            if (this.Ok != null)
            {
                config.Add("ok", this.Ok.Text);
            }

            if (this.Cancel != null)
            {
                config.Add("cancel", this.Cancel.Text);
            }

            if (this.Yes != null)
            {
                config.Add("yes", this.Yes.Text);
            }

            if (this.No != null)
            {
                config.Add("no", this.No.Text);
            }

            return config.Count > 0 ? config.ToJsonString() : "";
        }
MessageBoxButtonsConfig