public SimpleTimer(Splits splits, SplitEditor parent)
        {
            InitializeComponent();

            SaveOnSplit = true;

            _parent = parent;
            _splits = splits;
            _splitIndex = 0;

            _timer = new Timer();
            _timer.Interval = 10;
            _timer.Tick += Render;
            _timer.Start();

            _keyLogger = new KeyLogger(_toggleStartKey, _splitNowKey, _selectPreviousSplitKey, _selectNextSplitKey);
            _keyLogger.OnKeyPressed += OnKeyPressedThreadSafe;
            _keyLogger.Start();

            this.PerformRecursive((control) =>
            {
                control.MouseClick += HandleClick;
            });

            Render();
        }
        public SplitTreeEditor(TreeView treeView, TextBox editText, Label editLabel,  SplitEditor parent)
        {
            //This is getting out of control, SplitTreeEditor should probably be a UserControl
            _parent = parent;
            _treeView = treeView;
           

           _treeView.Parent.Controls.Remove(editLabel);
            _treeView.Controls.Add(editLabel);

            _treeView.Parent.Controls.Remove(editText);
            _treeView.Controls.Add(editText);

            _editLabel = editLabel;
            _editText = editText;

            _editLabel.Visible = false;
            _editText.Visible = false;

            _treeView.DoubleClick += NodeSelectionChanged;
            _treeView.Click += (o, e) => TryApplyEditChanges();

            _editText.KeyPress += CheckForEnterKey;
        }