public virtual void LoadFromFile(string FileName) { IFormatter formatter = new BinaryFormatter(); Stream stream = new FileStream(FileName, FileMode.Open, FileAccess.Read, FileShare.Read); FEMSolver_ND TheSolver = (FEMSolver_ND)formatter.Deserialize(stream); LoadFrom_Solver_ND(TheSolver); stream.Close(); }
protected void LoadFrom_Solver_ND(FEMSolver_ND TheSolver) { this.Unknowns_NDoF = TheSolver.Unknowns_NDoF; this.Nodes = TheSolver.Nodes; this.Sensors = TheSolver.Sensors; }