Пример #1
0
        protected override bool assignObject(object obj)
        {
            if (obj == null || obj.GetType() != typeof(Notes_Experiment))
            {
                return false;
            }

            expObject = (Notes_Experiment)obj;

            return true;
        }
 public void addPartExperiment(Notes_Experiment e)
 {
     if (!allExperiments.Contains(e))
         allExperiments.Add(e);
 }
        public void addPartExperiment(ModuleScienceExperiment m, ScienceExperiment e)
        {
            Notes_Experiment exp = new Notes_Experiment(this, m, e, 1);

            if (!allExperiments.Contains(exp))
                allExperiments.Add(exp);
        }