Example #1
0
 public SettingLab(SettingLab sl)
 {
     this.CategorySetting     = sl.CategorySetting;
     this.Category1           = sl.Category1;
     this.Category2           = sl.Category2;
     this.Category3           = sl.Category3;
     this.LittleOperation     = sl.LittleOperation;
     this.BigOperationWithout = sl.BigOperationWithout;
     this.BigOperationWith    = sl.BigOperationWith;
     this.RecordDate          = DateTime.Now;
 }
Example #2
0
        public void AddSettingLab(SettingLab setting)
        {
            bool exist = false;


            for (int i = 0; i < settings.Count - 1; i++)
            {
                try
                {
                    if (settings[i].GetCategorySetting().GetName().Equals(setting.GetCategorySetting().GetName()))
                    {
                        exist       = true;
                        settings[i] = new SettingLab(setting);
                    }
                }
                catch (Exception ex) { }
            }

            if (exist == false)
            {
                settings.Add(setting);
            }
        }