Пример #1
0
 public SaveInDb(ref TGAContex _db, ref BackgroundWorker _bgrwork, ref SaveParamInDb _svPar, ref List <List <double> > _slTGA)
 {
     locDb   = _db;
     bgrwork = _bgrwork;
     svPar   = _svPar;
     slTGA   = _slTGA;
 }
Пример #2
0
        /*    public void FillComboFileNames(TGAContex _db)
         *   {
         *       var _filenmtr = FillFileNameData(db, FillUsersData(db));
         *       foreach (Initial usTr in _filenmtr)
         *       {
         *           if (comboBox1.Items.Count > 10)
         *           {
         *               comboBox1.Items.RemoveAt(1);
         *               comboBox1.Items.Add(usTr);
         *           }
         *       }
         *       int index = comboBox1.FindString(_filenmtr.First().FileName);
         *       comboBox1.SelectedIndex = index;
         *
         *       comboBox1.Sorted = true;
         *
         *       return;
         *   }
         */


        /*  public void FillComboUsers(TGAContex _db)
         * {
         *    var _usertr = FillUsersData(db);
         *    foreach (Treatment usTr in _usertr)
         *    {
         *        if (comboBox2.Items.Count > 10)
         *        {
         *            comboBox2.Items.RemoveAt(1);
         *            comboBox2.Items.Add(usTr.TreatersName);
         *        }
         *    }
         *    comboBox2.Sorted = true;
         *    comboBox2.DroppedDown = true;
         *    return;
         * }
         *
         */
        /*  public IEnumerable<Treatment> FillUsersData(TGAContex _db)
         * {
         *    return _db.Treatments.Where(p => p.UserName != null);
         * }
         */
        public IEnumerable <Initial> FillFileNameData(TGAContex _db, IEnumerable <Treatment> _tr)
        {
            return(_db.Initials.Include(p => p.Treatment == _tr));
        }