public JsonResult UpdateItem(String SourceFile, String LineName, String Line) { GoldVisionDataAccess da = new GoldVisionDataAccess(); da.UpdateOverlayLine(SourceFile, LineName, Line); JsonResult result = new JsonResult(); result.Data = new { success = true }; return(result); }
public JsonResult RemoveLine(String SourceFile, String LineName) { GoldVisionDataAccess gv = new GoldVisionDataAccess(); gv.RemoveLineFromOverlay(SourceFile, LineName); JsonResult result = new JsonResult(); result.Data = new { success = true }; return(result); }
public JsonResult AddLine(String line) { GoldVisionDataAccess gv = new GoldVisionDataAccess(); gv.WriteLineToOverlay("menueditor", line); JsonResult result = new JsonResult(); result.Data = new { success = true }; return(result); }
public JsonResult AddLines(string[] lines) { GoldVisionDataAccess gv = new GoldVisionDataAccess(); foreach (string line in lines) { gv.WriteLineToOverlay("menueditor", line); } JsonResult result = new JsonResult(); result.Data = new { success = true }; return(result); }
public ActionResult Index() { GoldVisionDataAccess gv = new GoldVisionDataAccess(); // Check that the current user has admin level access JavaScriptSerializer jss = new JavaScriptSerializer(); jss.MaxJsonLength = int.MaxValue; SortedSet <String> Functions; ViewBag.AccessOptions = jss.Serialize(gv.ListAccessOptions()); ViewBag.Sections = jss.Serialize(gv.GetSections(out Functions)); ViewBag.Functions = jss.Serialize(Functions); gv.Dispose(); return(View()); }
private void removeOverlayItem_Click(object sender, EventArgs e) { GoldVisionDataAccess da = new GoldVisionDataAccess(); da.RemoveLineFromOverlay("menueditor", txtOverlayItemToRemove.Text); }