Beispiel #1
0
        public bool SaveTestBed(Bridge.TestBed currentTestbed)
        {
            m_LmsContext.DbTestBed.SingleOrDefault(h => h.TestBedId.Equals(currentTestbed.TestBedId)).TestBedName = currentTestbed.TestBedName;
            int p = m_LmsContext.SaveChanges();


            return(p > 0);
        }
Beispiel #2
0
        public bool AddNewTestbed(Bridge.TestBed testBed)
        {
            m_LmsContext.DbTestBed.Add(new TestBed {
                TestBedName = testBed.TestBedName
            });
            int p = m_LmsContext.SaveChanges();

            return(p > +0);
        }
Beispiel #3
0
        private void btnRename_Click(object sender, EventArgs e)
        {
            if (txtTestBed.Text.Length == 0)
            {
                return;
            }

            Bridge.TestBed testBed = (Bridge.TestBed)_selectedTestbed.SelectedItem;
            testBed.TestBedName = txtTestBed.Text;

            if (WcfConnector.GetReportService.SaveTestBed(testBed))
            {
                LoadTestBed();
            }
        }
Beispiel #4
0
 public bool SaveTestBed(Bridge.TestBed currentTestbed)
 {
     return(new ReportDaoManager().SaveTestBed(currentTestbed));
 }
Beispiel #5
0
        public bool AddNewTestbed(Bridge.TestBed newTestBed)
        {
            ReportDaoManager daoManager = new ReportDaoManager();

            return(daoManager.AddNewTestbed(newTestBed));
        }