예제 #1
0
        private void WriteToZipFile()
        {
            //
            //Note: This doesnt actually save the zip file until it closes

            fileModified = true;
            string filepath = path.Replace(Environment.CurrentDirectory + "\\", "").Replace("\\", "/");;

            if (New_JsonEditor.jet == null)
            {
                New_JsonEditor.jet = new ZipFile(CurrentProjectVariables.PathToProjectClassFile + "\\" + CurrentProjectVariables.ProjectName + ".jet");
            }

            ProjectHandler.UpdateFileInZip(New_JsonEditor.jet, filepath, Editor_TextBox.Text);
        }