Example #1
0
        public FormScriptingTestDetail(ScriptingTest test)
        {
            InitializeComponent();

            this.test = (ScriptingTest)test.Clone();

            showTask();
        }
Example #2
0
        private void btnAddNewTask_Click(object sender, EventArgs e)
        {
            ScriptingTest tmp = new ScriptingTest();
            tmp.Name = "New Test";
            tmp.Code = "Code...";
            tmp.Category = (cbCategories.SelectedItem == null || cbCategories.SelectedItem.ToString() == "") ? null : cbCategories.SelectedItem.ToString();

            FormScriptingTestDetail form = new FormScriptingTestDetail(tmp);
            if (form.ShowDialog() == DialogResult.OK)
            {
                data.Add(form.Test);
                showCategories(form.Test.Category);
                save();
            }
        }