Ejemplo n.º 1
0
        public DecompilerTextViewState GetState()
        {
            var state = new DecompilerTextViewState();

            if (foldingManager != null)
            {
                state.SaveFoldingsState(foldingManager.AllFoldings);
            }
            state.VerticalOffset   = textEditor.VerticalOffset;
            state.HorizontalOffset = textEditor.HorizontalOffset;
            return(state);
        }
Ejemplo n.º 2
0
		public DecompilerTextViewState GetState()
		{
			if (decompiledNodes == null)
				return null;

			var state = new DecompilerTextViewState();
			if (foldingManager != null)
				state.SaveFoldingsState(foldingManager.AllFoldings);
			state.VerticalOffset = textEditor.VerticalOffset;
			state.HorizontalOffset = textEditor.HorizontalOffset;
			state.DecompiledNodes = decompiledNodes;
			return state;
		}