private void stepBrowser_DoubleClick(object sender, EventArgs e)
        {
            TreeNode selectedNode = stepBrowser.SelectedNode;

            if(selectedNode != null)
            {
                if (selectedNode.Tag is Steps)
                {
                    StepForm form = new StepForm(Cursor.Position.X, Cursor.Position.Y);

                    form.setNode(selectedNode.Tag as Steps);
                    form.Show();

                    form.FormClosing += stepForm_FormClosing;
                }
                else if (selectedNode.Tag is TestCases)
                {
                    TestCaseForm tcForm = new TestCaseForm(Cursor.Position.X, Cursor.Position.Y);

                    TestCases curTc = selectedNode.Tag as TestCases;
                    tcForm.setNode(curTc);
                    tcForm.setVars(dataHandler.GetVariablesFromTestCase(curTc));
                    tcForm.Show();
                    

                    tcForm.FormClosing += tcForm_Closing;

                }
            }

        }
        private void presetBrowser_DoubleClick(object sender, EventArgs e)
        {
            TreeNode selectedNode = presetBrowser.SelectedNode;
            if(selectedNode != null)
            {
                if (selectedNode.Tag is Steps)
                {
                    StepForm form = new StepForm(Cursor.Position.X, Cursor.Position.Y);

                    form.setNode(selectedNode.Tag as Steps);
                    form.Show();

                    form.FormClosing += presetForm_FormClosing;
                }
                else if (selectedNode.Tag is TestCases)
                {
                    TestCaseForm tcForm = new TestCaseForm(Cursor.Position.X, Cursor.Position.Y);

                    tcForm.setNode(selectedNode.Tag as TestCases);
                    tcForm.Show();

                    tcForm.FormClosing += TcForm_FormClosing;
                }
            }

        }