예제 #1
0
        private void lbtAddnew_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e)
        {
            Test test = new Test();

            if (_filiterBy == FiliterTestByEnum.TestArea)
            {
                test.TestingArea = DataRepository.GetTestingAreaById(_parentId);
            }
            //else if (_filiterBy == FiliterTestByEnum.TestGroup)
            //{
            //    test.TestingGroup = DataRepository.GetTestingGroupById(_parentId);
            //    test.TestingArea = test.TestingGroup.TestingArea;
            //}

            TestFrom frm = new TestFrom(test, MdiParentForm);

            frm.ShowDialog();
        }
예제 #2
0
        private void newTestToolStripMenuItem_Click(object sender, EventArgs e)
        {
            TestFrom frm = new TestFrom(new Test(), this);

            frm.ShowDialog();
        }
예제 #3
0
        public override void EditSelectedItem()
        {
            TestFrom frm = new TestFrom(GetSelectedTest(), MdiParentForm);

            frm.ShowDialog();
        }