public MainPage()
        {
            InitializeComponent();

            isoSettings = IsolatedStorageSettings.ApplicationSettings;

            basicJsonObjectConverter = new JsonConverter<BasicJsonObject>();
            // TODO Remove
            App.Settings.APP_ID = "cylinder-manager-e30";
            App.Settings.API_KEY = "d6c6b4b7aa0f4162a04f23ebd34c6d2e";
            App.Settings.ADMIN_KEY = "e4b4709e31924777a4521df5fbf57692";

            data = new BasicJsonObject();
            // use two-way binding to set BasicjsonObject's key/value pairs
            JsonObjectGrid.DataContext = data;

            if (isoSettings.Contains(SETTINGS_BUCKET_NAME))
                BucketName_Box.Text = isoSettings[SETTINGS_BUCKET_NAME] as string;
            if (isoSettings.Contains(SETTINGS_OBJECT_ID))
                ObjectId_Box.Text = isoSettings[SETTINGS_OBJECT_ID] as string;
            if (isoSettings.Contains(SETTINGS_CCID))
                CCID_Box.Text = isoSettings[SETTINGS_CCID] as string;
            if (isoSettings.Contains(SETTINGS_CLIENT_ID))
                ClientId_Box.Text = isoSettings[SETTINGS_CLIENT_ID] as string;
        }
        void SetCompleted(object sender, BucketEventArgs<SetResult> e)
        {
            if (e.Error != null)
            {
                output("Set Error " + e.Error.ToString());
                return;
            }
            output("Received set response OK: " + e.Result.data);

            // if we asked for a response, e.Result.data contains the current object
            // So we just assign it
            if (!String.IsNullOrWhiteSpace(e.Result.data))
            {
                BasicJsonObject result = basicJsonObjectConverter.ConvertJsonToObject(e.Result.data);
                if (result == null)
                {
                    output("Failed to deserialize json response");
                    return;
                }
                data = result;
                JsonObjectGrid.DataContext = data;
            }
            Version_Box.Text = "" + e.Result.version;
            // TODO do anything with clientid and ccid ?
        }
        void GetCompleted(object sender, BucketEventArgs<GetResult> e)
        {
            if (e.Error != null)
            {
                output("Get Error " + e.Error.Message);
                return;
            }
            output("Received get response OK: " + e.Result.data);
            BasicJsonObject result = basicJsonObjectConverter.ConvertJsonToObject(e.Result.data);
            if (result == null)
            {
                output("Failed to deserialize json response");
                return;
            }

            data = result;
            JsonObjectGrid.DataContext = data;
            Version_Box.Text = "" + e.Result.version;
        }