Exemplo n.º 1
0
        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);
        }
Exemplo n.º 2
0
        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);
        }
Exemplo n.º 3
0
        public JsonResult AddLine(String line)
        {
            GoldVisionDataAccess gv = new GoldVisionDataAccess();

            gv.WriteLineToOverlay("menueditor", line);

            JsonResult result = new JsonResult();

            result.Data = new { success = true };
            return(result);
        }
Exemplo n.º 4
0
        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);
        }
Exemplo n.º 5
0
        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());
        }
Exemplo n.º 6
0
        private void removeOverlayItem_Click(object sender, EventArgs e)
        {
            GoldVisionDataAccess da = new GoldVisionDataAccess();

            da.RemoveLineFromOverlay("menueditor", txtOverlayItemToRemove.Text);
        }