private void SaveNoLoading()
        {
            SessionStore   csSession  = SessionManager.GetSession();
            CSLabel        csobj      = csSession.GetCurrentLabel();
            string         values     = VariableValuesHf.Value;
            List <HFValue> valuesJSON = JsonConvert.DeserializeObject <List <HFValue> >(values);

            foreach (HFValue hf in valuesJSON)
            {
                CodeSoftDTO.Variable variable = csobj.CSVariables.Where(v => v.Name == hf.Name).FirstOrDefault();
                if (variable != null)
                {
                    variable.Value = hf.Value;
                }
            }
        }
        protected void SaveBtn_Click(object sender, EventArgs e)
        {
            try
            {
                //[{"name":"X_MODS~1","value":"X"},{"name":"X_MODS~2","value":"X"},{"name":"X_MODS~3","value":"X"},{"name":"X_MODS~4","value":"X"}]
                if (VariablesLB.SelectedItem != null)
                {
                    int                  selectedIndex = VariablesLB.SelectedIndex;
                    string               variableName  = VariablesLB.SelectedItem.Text;
                    string               variableValue = VariableValueTxt.Text;
                    SessionStore         csSession     = SessionManager.GetSession();
                    CSLabel              csobj         = csSession.GetCurrentLabel();
                    CodeSoftDTO.Variable variable      = csobj.CSVariables.Where(v => v.Name == variableName).First();
                    variable.Value = variableValue;

                    if (selectedIndex >= VariablesLB.Items.Count - 1)
                    {
                        selectedIndex = -1;
                    }

                    VariablesLB.SelectedIndex = selectedIndex + 1;
                    VariableValueTxt.Text     = "";
                    VariableValueTxt.Focus();
                }
                SaveAndLoad();
            }
            catch (UserError ex)
            {
                MessageLbl.Text = "Save error: " + ex.Message;
            }
            catch (Exception ex)
            {
                SessionManager.ClearSession();
                log4net.LogManager.GetLogger("ERROR").Error(ex);
                Response.Redirect("./");
            }
        }
        public string GetPreview(string jsonDTO)
        {
            string result    = "";
            string requestID = Guid.NewGuid().ToString();
            //These are static references so the original values will need to be reset.
            List <VariableStore> originVariables = new List <VariableStore>();
            Document             doc             = null;

            Tkx.Lppa.Application NetApp = null;
            try
            {
                CodeSoftDTO csObject = JsonConvert.DeserializeObject <CodeSoftDTO>(jsonDTO);
                //log4net.LogManager.GetLogger("DEBUG").Error(new Exception(requestID + ": csObject: " + jsonDTO));
                Image        img       = null;
                SessionStore csSession = SessionManager.GetSession(csObject.SessionId);
                //log4net.LogManager.GetLogger("DEBUG").Error(new Exception(requestID + ": csSession: " + csSession.ID));

                CSNetApp.Instance.OpenAPIDocument(csObject.Label, out doc, out NetApp);
                //using (var doc = CSNetApp.Instance.OpenAPIDocument(csObject.Label))
                {
                    if (doc == null)
                    {
                        //if (NetApp != null)
                        //NetApp.Quit();
                        return("iVBORw0KGgoAAAANSUhEUgAAAjYAAAFKCAYAAAAOvhUSAAAKx2lDQ1BJQ0MgUHJvZmlsZQAASA2tlndUU8kXx+976Y0WiICU0JsgvUqvARWkCjZCEkgoMQaCiF1ZVHBFUREBG7oooOBaAFkLIoptUWzYF2RRUdfFgqio/F5A4p7f+e1/vznnzvu879y5c2fOzDkXgH6RK5GkoyoAGeIsaWSwH3tmfAKb9BiIoAca4AKmXF6mxDciYir8a/twBxD54E1reax/dfvfA6p8QSYPAInAhpP4mbwMjI9hVseTSLMAcHxMN1qYJZHzWozVpViCGFfIOWWMD8s5aYzbRn2iI/0xn7sAZDqXK00BoP2J6exsXgoWh47H2FbMF4kxdsTYiyfkYuvQsTGYlJExX867MTZP+keclH8wl5ukiMnlpih4bC/YTGzhAFGmJJ27aPTn/9llpMuw8xptBlhPF0pDIrGvGnZmFWnzwxQsTpoePq6LsB2Ns1AWEjPOvEx/7CzH5vK5AWHjLEuL8R1nrhSj7z6iLE70OEvnRyrii9Ony+/HaA5CAUfBgszAqHE9WRTEGedcYXTcOGeLYqePc2ZalCKHXKG/QpfKIhU5J0uDFHvMyMRmfl+Xx/2xVpYwOmRc5wsCAsdZII5R5CPJ8lPEkaSP3u/R/AXpwQo9MztKMTdLGq3QU7mh8vs66i/JilCcCfiDCMQggAzgAhtCIAAgS5Ajv1fgP1+ySCpKEWaxfbFXImBzxDybSWx7WztHAPmbk/sAvLs7+pYQFvmHlpsG4HMRAA38ocVhd7emGoCl80Mz/oI9gyKA5is8mTR7LB5e/iE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AAIIIIBAZgQIbDLTlTQEAQQQQAABBAhsOAYQQAABBBBAIDMCBDaZ6UoaggACCCCAAAIENhwDCCCAAAIIIJAZAQKbzHQlDUEAAQQQQAABAhuOAQQQQAABBBDIjACBTWa6koYggAACCCCAAIENxwACCCCAAAIIZEaAwCYzXUlDEEAAAQQQQIDAhmMAAQQQQAABBDIjQGCTma6kIQgggAACCCBAYMMxgAACCCCAAAKZESCwyUxX0hAEEEAAAQQQILDhGEAAAQQQQACBzAgQ2GSmK2kIAggggAACCBDYcAwggAACCCCAQGYECGwy05U0BAEEEEAAAQQIbDgGEEAAAQQQQCAzAgQ2melKGoIAAggggAAC00GAAAIIIIBAscD3339vvvjiC/P555/Hb3Xu3Nno3yyzzFKclZ8RCEqAwCao7qAyCCCAQOMFPvvsMzNu3Djz6KOPmg8++MB8+eWX5ocffihZkRlnnDEOcOadd17Tr18/079/f9O9e/eSeXkRgWYIdMpFqRk7Zp9hCIwZM8aMHj06jMoU1WKRRRYxw4YNK3qVHxFoPYGvv/7a7LPPPubbb7+1Vv7www83ffv2tearNYPqdPvtt5vx48ebl19+uabNLbroombllVc266yzjplzzjlr2la9C0+cONEMHTrUutmZZprJjBo1ynTp0sWalwxhC3DGJuz+Sb12P/74o/nqq69S34/PDr755hufYpRBIDiBCy+80Hz00UfWevXp06chQc19991nzjnnnPjMjLVSDhkmTZpk9E9flPbYYw+z1lprOZRKP8svv/xi/vnPfzr9jdtss80IatLvkobsgcCmIczsBAEE2lXgpZdeis+M2No//fTTm/3228+Wrab3FVyNHDnSPP300zVtp1xhnQUaPny4ufvuu80BBxxgevbsWS5rQ16/7rrrzDvvvGPdl+qpwIaUDQGuispGP9IKBBAIUOC3336LAwmXqm2xxRamR48eLlm98kyYMMHstttuqQU1hZV67rnn4jM3Tz75ZOHLDX0+efJkc+WVVzrtUwGlAktSNgQIbLLRj7QCAQQCFLjxxhvNm2++aa3ZPPPMY7bZZhtrPt8MGiYaMmSI0dBzo9LPP/8cz2154YUXGrXLDvs566yznNq7+uqrm969e3coyw+tLUBg09r9R+0RQCBQgU8//dRcdtllTrXbd999zQwzzOCUt9pM7777rjnyyCONLt9udFIgddRRRzkFd/Ws2yOPPBJf4WXbpi5d15wgUrYECGyy1Z+0BgEEAhE4++yznYKJlVZayay44oqp1Frr0OgqK98LBBRszTfffPEQmS7z9km6EuyII44wn3zyiU/xqsvoMnWdrXFJgwcPNl27dnXJSp4WEmDycAt1FlVFAIHWENDckocffthaWQULugw8raSrsXTmyDWpPquuuqoZOHCgWXjhhc3vfve7DkU1Ofitt94yd911l3nwwQfLrnXToVD0gwKs8847Lz57U/xevX/WvJr//Oc/1s326tXLbLzxxtZ8ZGg9AQKb1uuzptTY99taLZVN69R8LXWiLAI2gZ9++ileD8WWT+9vt912qS1u98orr8QBiEs9lOcvf/mL2X777c2ss85atsjss89ulllmmfifhs/+9a9/Oa+DpUBoww03jMuW3UGNb+gKKF0J5ZJ01dY00zBo4WLVankIbFqtx5pQXy1cdcsttzRhz+wSgdYTuOqqq5zWrJl//vlTu8RY6666DscokDnkkEPiBfaq0dbfhV122cUstdRS8UKaLutOqU5aPyetgEKXsv/666/WZqy99tpmySWXtOYjQ2sKEK62Zr9RawQQCFDg/fffN9dee61TzXSJ8XTTpfPd8p577jE6Y2NLCjBOOumkqoOawu3++c9/jrcx7bTTFr5c8rmuENNqx2kkDY89//zz1k3rrJMueydlV4DAJrt9S8sQQKDBAlrlVpc529Iaa6xhll12WVs27/evv/56p7K77rprXc5cLLHEEmbnnXd22qfrUJHTxv6bSXN/zj//fKcianPx3CGngmRqGQECm5bpKiraSIEpU6Y4rYFRzzqledWIForTjQ3ffvvt+CaHLvcsqmfb0tpWM/qpXFt0m4Jnn3223Nv51zX0k+YlxurjN954I7+/ck+WW265ug6Fbb755uZPf/pTud3lX9dNNl999dX8z/V4oknSOhZsSQGY7mdFyrZAOudBs21G6wISePzxx80zzzxTsUa6+7AmPFZKutJj7Nix8RUf+mDQVRyaD6Cb+xUnLbr28ccfF7/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A+sF2/yXlvummm/5XqM7PbrnlFusWtcZT//79rfnIgICPAJd7+6hRBoEGCOjeQ7bhpjFjxhjdLyqtdXo0pOAy2TRrgY0WGnS5xN33MNANIm13ttbQXLm1acoFL5qn1K9fP/Pggw9WrJrW6EnjsmVdJn/fffdV3LfeXGGFFeJFH0tl1BWBadrrasKffvqp1K7zr+kKv3LGzAvKMwX7hMAm2K6hYu0uoGDh4osvrsigCcQ333yz2XzzzSvm83lTcyUuu+wya1ENm7msoWLdUEAZlltuOXP99denViNN4D3qqKMqbl8BypAhQyrmKfWm7rdlC2z0wa727bLLLqU24f2atvnrr79ay6uO5dL2229v9C+tpBWl9YWgUtp1113NRhttVCkL7wUswFBUwJ1D1dpboFevXsblKpdLLrnEvPLKK3XHct3uwIED675vNugvoJuWupzxuO6665zOxrnWRMfgjTfeaM2us1A6G0lCIC0BApu0ZNkuAnUQ0DdHW9Iqr8cee6yp140otT994x89erRt16Zr167cWdmq1NgMGsJyCTY1HHb88cebb775puYK6l5hJ554otPZmjXWWCO1odOaG8IGMiFAYJOJbqQRWRXQt+/evXtbm6egZr/99qvL0v6aWHrSSSdZ96kMmqeR1vwepwqQqaTAtttu67SukK6qGzp0qNNVTCV3FL2owOi4444zH3/8cbks+dd1tkbHDAmBNAUIbNLUZdsI1EHA5ayNdvPJJ5+YAw880OgmgpofU23SInzDhw83Z511llP5nj17mrXXXrva3ZC/AQK6qm7HHXd02tOECRPMXnvtVfamj5U2ohWGVfaZZ56plC3/3nbbbWdc1mjKF+AJAh4CTB72QGu3IrqKQN8Am5F0ybNtkmUz6tXIfepO4YMHD3aayKu+OuOMM4zmT6jPNAHVtqKv1sO5++6748mkrvef0lUjf/vb31g5tpEHQpX7Wn/99c2tt95q3nrrLWtJ3XjyoIMOMqusskocrOosYbmrf7QS9XPPPWfGjh1rHnroIaOhUJfUo0cPhi1doMhTswCBTc2E7bGBau64W0+RrF1t42ujb7paVO3+++932sT7779vhg0bFn84LbXUUkarvOqbsu4Irg8inZ3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oiAACCCCAAAKhCRDYhNYj1AcBBBBAAAEEvAUIbLzpKIgAAggggAACoQkQ2ITWI9QHAQQQQAABBLwFCGy86SiIAAIIIIAAAqEJENiE1iPUBwEEEEAAAQS8BQhsvOkoiAACCCCAAAKhCRDYhNYj1AcBBBBAAAEEvAUIbLzpKIgAAggggAACoQkQ2ITWI9QHgf8KvPzyy+brr7+um8ekSZPMlClT8tsr3H7h83yGFJ647MclTwpVC2KTn332mXnzzTeDqEtxJX777TfzzTffFL+c+s/tfDykjpvRHRDYZLRj02jWaaedZs4666wOm/7444/NLrvsYvRHT+mNN94w+++/f4c8uVzO7LDDDuaBBx7o8Hor/XDOOeeY888/v6FVHjFiROxZr52OGjXKvPTSS/nNFW6/8Hk+Q41P7rvvPnPZZZd12IrLflzydNhohn547LHHpjILpXmffvpph9/tUv2bRl2rOR4aVac02sk26ydAYFM/y8xvab311jP33nuv+fnnn/NtnWeeecxss81mnnrqqfi1sWPHmn79+uXf15Pnn3/efPfdd6Z///4dXueH5goceOCBZuGFF06tEp9//rn56KOPqt5+2vWqukIUiAVmmGEG88c//jGv4du/+Q04PqnmeGhUnRyrTrYmCRDYNAm+FXe72GKLme7du5vx48d3qP66665r7rzzzjjg0VmZQYMGdXj/jjvuiF+bfvrpO7zOD80VWHrppc3ss8/e3EqU2Huo9SpR1bZ6ac455zQHHXRQw9vM8dBw8pbf4XQt3wIa0FABnbXRWZkBAwbk97vaaqvFwzQKbhZffHHTtWvX/HvffvutGTdunDn33HPzr+mJhqwuvvhio/Hzzp07m1VWWcVst912ZrrpOh6SLvmOOuoos99++5knn3zS3HXXXeb999+Pv1nuvvvupkePHvn9athMQ0pvvfWW0fBYr169zK677mp69uyZz1PrE5f6ah+u+Yrro/Y988wz5tBDDzWffPJJTe2R27bbbmuWWGKJ4t3EPxfua9ppp83XWXWfZZZZzIorrmh22mkno2/yxUlDULfccksc7CqPgt2tt946n01n8W644QYzYcIEs9BCC5nDDz/czD333PH7hfWqts9cjwUNq1xxxRX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KIoAAAggggEBgAgQ2gXUI1UEAAQQQQAABfwECG387SiKAAAIIIIBAYAIENoF1CNVBAAEEEEAAAX8BAht/O0oigAACCCCAQGACBDaBdQjVQQABBBBAAAF/AQIbfztKIoAAAggggEBgAgQ2gXUI1UEAAQQQQAABfwECG387SiKAAAIIIIBAYAIENoF1CNVBAAEEEEAAAX8BAht/O0oigAACCCCAQGACBDaBdQjVQQABBBBAAAF/AQIbfztKIoAAAggggEBgAgQ2gXUI1UEAAQQQQAABfwECG387SiKAAAIIIIBAYAIENoF1CNVBAAEEEEAAAX8BAht/O0oigAACCCCAQGACBDaBdQjVQQABBBBAAAF/AQIbfztKIoAAAggggEBgAgQ2gXUI1UEAAQQQQAABfwECG387SiKAAAIIIIBAYAIENoF1CNVBAAEEEEAAAX8BAht/O0oigAACCCCAQGACBDaBdQjVQQABBBBAAAF/AQIbfztKIoAAAggggEBgAgQ2gXUI1UEAAQQQQAABfwECG387SiKAAAIIIIBAYAIENoF1CNVBAAEEEEAAAX8BAht/O0oigAACCCCAQGACBDaBdQjVQQABBBBAAAF/AQIbfztKIoAAAggggEBgAgQ2gXUI1UEAAQQQQAABfwECG387SiKAAAIIIIBAYAIENoF1CNVBAAEEEEAAAX8BAht/O0oigAACCCCAQGACBDaBdQjVQQABBBBAAAF/AQIbfztKIoAAAggggEBgAgQ2gXUI1UEAAQQQQAABfwECG387SiKAAAIIIIBAYAIENoF1CNVBAAEEEEAAAX8BAht/O0oigAACCCCAQGACBDaBdQjVQQABBBBAAAF/AQIbfztKIoAAAggggEBgAgQ2gXUI1UEAAQQQQAABfwECG387SiKAAAIIIIBAYAIENoF1CNVBAAEEEEAAAX8BAht/O0oigAACCCCAQGACBDaBdQjVQQABBBBAAAF/AQIbfztKIoAAAggggEBgAgQ2gXUI1UEAAQQQQAABfwECG387SiKAAAIIIIBAYAIENoF1CNVBAAEEEEAAAX8BAht/O0oigAACCCCAQGACBDaBdQjVQQABBBBAAAF/AQIbfztKIoAAAggggEBgAgQ2gXUI1UEAAQQQQAABfwECG387SiKAAAIIIIBAYAIENoF1CNVBAAEEEEAAAX8BAht/O0oigAACCCCAQGACBDaBdQjVQQABBBBAAAF/AQIbfztKIoAAAggggEBgAgQ2gXUI1UEAAQQQQAABfwECG387SiKAAAIIIIBAYAIENoF1CNVBAAEEEEAAAX+B/wOjO3D4UpiVRwAAAABJRU5ErkJggg==");
                    }
                    //log4net.LogManager.GetLogger("DEBUG").Error(new Exception(requestID + ": doc: " + doc.Name));
                    foreach (Tkx.Lppa.Variable LppaVar in doc.Variables)
                    {
                        CodeSoftDTO.Variable csVar = csObject.Variables.Where(p => p.Name == LppaVar.Name).FirstOrDefault();
                        if (csVar != null)
                        {
                            LppaVar.Value = csVar.Value;
                        }
                    }
                    img = doc != null ? (Image)doc.GetPreview(true, true, 200) : null;

                    if (img != null)
                    {
                        using (MemoryStream ms = new MemoryStream())
                        {
                            // Convert Image to byte[]
                            img.Save(ms, System.Drawing.Imaging.ImageFormat.Png);
                            byte[] imageBytes = ms.ToArray();

                            // Convert byte[] to Base64 String
                            result = Convert.ToBase64String(imageBytes);
                        }
                    }
                }
            }
            catch (Exception err)
            {
                log4net.LogManager.GetLogger("ERROR").Error(new Exception("GetPreview Failed: " + err.Message));
            }
            finally
            {
                doc.Close(false);
                doc.Dispose();
                //NetApp.Quit();
            }

            return(result);
        }
        private void LoadVariables()
        {
            VariablesLB.Items.Clear();
            SessionStore csSession = SessionManager.GetSession();
            CSLabel      csobj     = csSession.GetCurrentLabel();

            if (csobj != null)
            {
                if (csobj.CSVariables.Count == 0)
                {
                    using (var doc = csSession.GetCurrentDocument())
                    {
                        foreach (CSVariable aVariable in doc.CSVariables.OrderBy(p => p.Name))
                        {
                            //CSVariable aVariable = doc.CSVariables[i];
                            CodeSoftDTO.Variable csVar = new CodeSoftDTO.Variable();

                            csVar.Name           = aVariable.Name;
                            csVar.Value          = ""; //aVariable.Value;
                            csVar.ArrayBaseShift = 0;
                            csVar.IsHidden       = !aVariable.IsUserInput;

                            if (aVariable.Name.ToLower().Contains("x_"))
                            {
                                var    regex  = new Regex("[^a-zA-Z0-9]");
                                var    regex2 = new Regex(@"\d+");
                                string root   = aVariable.Name.Replace("X_", "").Replace("x_", "");
                                string index  = regex2.Match(root).Value;
                                root = root.Remove(regex.Match(root).Index);
                                if (!root.ToLower().Contains("mod"))
                                {
                                    csVar.ArrayBaseShift = -1;
                                }
                                csVar.ArrayIndex = Int32.Parse(index);
                                csVar.GroupName  = root;
                                csVar.IsXBox     = true;
                                csVar.IsHidden   = true;
                            }

                            csobj.AddVariable(csVar);
                        }

                        /*CodeSoftDTO.Variable csVarQty = new CodeSoftDTO.Variable();
                         * csVarQty.Name = "LABEL_QUANTITY";
                         * csVarQty.Value = "1";
                         * csVarQty.ArrayBaseShift = 0;
                         * csobj.AddVariable(csVarQty);*/
                    }
                }


                List <HFValue> HFValues = new List <HFValue>();
                foreach (CodeSoftDTO.Variable v in csobj.CSVariables.Where(v => string.IsNullOrEmpty(v.Name) == false))
                {
                    ListItem item = new ListItem(v.Name);
                    item.Attributes.Add("tag", v.Value);

                    if (v.IsXBox)
                    {
                        HFValues.Add(new HFValue()
                        {
                            Name = v.Name, Value = v.Value
                        });
                    }

                    /*if (v.IsHidden)
                     * {
                     *  item.Attributes.Add("style", "display:none;");
                     *  item.Attributes.Add("disabled", "true");
                     * }*/
                    if (!v.IsHidden)
                    {
                        VariablesLB.Items.Add(item);
                    }
                }

                VariableValuesHf.Value = JsonConvert.SerializeObject(HFValues);
                //load the groups in the browser.
                string jscript = "";
                var    groups  = csobj.CSVariables.Where(l => l.GroupName != null).GroupBy(g => g.GroupName);
                foreach (var group in groups)
                {
                    CodeSoftDTO.VariableGroup vgroup = new CodeSoftDTO.VariableGroup();
                    vgroup.Name = group.Key;
                    jscript    += "groups.push('" + vgroup.Name + "');";
                    vgroup.Variables.AddRange(csobj.CSVariables.Where(v => v.GroupName == vgroup.Name).Cast <CodeSoftDTO.Variable>());
                    foreach (CodeSoftDTO.Variable v in vgroup.Variables.OrderBy(o => o.ArrayIndex))
                    {
                        jscript += "groupItems.push({ group: \"" + vgroup.Name + "\", item: \"<div class='x_item' ><label for='" + v.Name + "' class='x_item_label' >" + (v.ArrayIndex + v.ArrayBaseShift) + "</label><input type='checkbox' id='" + v.Name + "' class='x_item_chk' /></div>\" });";
                    }
                }
                ClientScriptManager cm = ClientScript;
                cm.RegisterClientScriptBlock(GetType(), "LoadXGroupData", jscript, true);

                if (HFValues.Count > 0)
                {
                    cm       = ClientScript;
                    jscript  = "$(document).ready(function () {";
                    jscript += "$('#x_dialogIcon').show();";
                    jscript += "});";
                    cm.RegisterClientScriptBlock(GetType(), "HideXDialog", jscript, true);
                }
            }
        }