void myMenuItemQueryDocument_Click(object sender, EventArgs e) { _currentQueryCommandContext = new CommandContext(); _currentQueryCommandContext.IsFeed = true; // reset continuation token _currentContinuation = null; Program.GetMain() .SetCrudContext(this, string.Format(CultureInfo.InvariantCulture, "Query Documents from Collection {0}", (Tag as DocumentCollection).Id), false, "select * from c", QueryDocuments, _currentQueryCommandContext); }
void myMenuItemDeleteDatabase_Click(object sender, EventArgs e) { string x = Tag.ToString(); CommandContext context = new CommandContext(); context.IsDelete = true; Program.GetMain().SetCrudContext(this, "Delete database", false, x, DeleteDatabase, context); }
void myMenuItemUpdateDocumentCollection_Click(object sender, EventArgs e) { string x = Tag.ToString(); CommandContext context = new CommandContext(); Program.GetMain() .SetCrudContext(this, "Replace DocumentCollection", false, x, UpdateDocumentCollection, context); }