Ejemplo n.º 1
0
        private void OpenMapFolder(object sender, EventArgs e)
        {
            this.workingDirectory = this.OpenMap(Functions.OpenFolderAndGetName(this.editorDirectory));

            if (this.workingDirectory != string.Empty)
            {
                this.loadedMap = new EditorIntralismMap(new IntralismBeatMap(this.ConfigPath));
                this.UpdateTextBox();
            }
        }
Ejemplo n.º 2
0
        private void DefaultViewTextBoxTextChanged(object sender, EventArgs e)
        {
            int lastCursorPosition = this.DefaultViewTextBox.SelectionStart;

            try
            {
                IntralismBeatMap intralismBeatMap =
                    JsonSerializer.Deserialize <IntralismBeatMap>(this.DefaultViewTextBox.Text !);

                this.loadedMap = new EditorIntralismMap(intralismBeatMap);
                this.UpdateTextBox();
            }
            catch (Exception e2)
            {
                Console.WriteLine(e2);
            }

            this.DefaultViewTextBox.SelectionStart = lastCursorPosition;
        }