Example #1
0
 /// <summary>
 /// Unchecks toolstrip pause button.
 /// </summary>
 public void UncheckPauseButton()
 {
     if (ToolStrip != null)
     {
         ToolStrip.GetButton(9).Checked = false;
     }
 }
Example #2
0
        private void UpdateToolstrip()
        {
            if (_toolStrip == null)
            {
                return;
            }

            // Update buttons
            var folder = CurrentViewFolder;

            _toolStrip.GetButton(0).Enabled = folder != null && folder.CanHaveAssets;
            _toolStrip.GetButton(1).Enabled = _navigationUndo.Count > 0;
            _toolStrip.GetButton(2).Enabled = _navigationRedo.Count > 0;
            _toolStrip.GetButton(3).Enabled = folder != null && _tree.SelectedNode != _root;
        }
Example #3
0
        /// <summary>
        /// Adds the specified log entry.
        /// </summary>
        /// <param name="desc">The log entry description.</param>
        public void Add(ref LogEntryDescription desc)
        {
            if (_entriesPanel == null)
            {
                return;
            }

            // Create new entry
            var newEntry = new LogEntry(this, ref desc);

            // Enqueue
            lock (_locker)
            {
                _pendingEntries.Add(newEntry);
            }

            // Pause on Error (we should do it as fast as possible)
            if (newEntry.Group == LogGroup.Error && _toolstrip.GetButton(2).Checked&& Editor.StateMachine.CurrentState == Editor.StateMachine.PlayingState)
            {
                Editor.Simulation.RequestPausePlay();
            }
        }