Пример #1
0
        public SettingsViewModel(AutoCADTaskSettings source, IEdmVault20 vault)
        {
            OutputPath      = source.OutputPath;
            MenuName        = source.MenuName;
            CreateMenu      = source.CreateMenu;
            MenuDescription = source.MenuDescription;
            CreatePDF       = source.CreatePDF;
            foreach (var b in source.Blocks)
            {
                Blocks.Add(b.Value);
            }

            foreach (var v in source.Variables)
            {
                Variables.Add(v);
            }

            IEdmVariableMgr7 variableMgr = (IEdmVariableMgr7)vault;
            IEdmPos5         pos         = variableMgr.GetFirstVariablePosition();

            while (!pos.IsNull)
            {
                IEdmVariable5 var = variableMgr.GetNextVariable(pos);
                AllVariables.Add(new VariableViewModel()
                {
                    Name = var.Name, Id = var.ID
                });
            }
        }
Пример #2
0
 //            public FlowType StratInflow;
 //            public FlowType StratOutflow;
 //            public bool StratAutomatically = false;
 //            public TLoadings StratDates = null;
 // -------------------------------------------------------
 public TVolume(AllVariables Ns, T_SVType SVT, T_SVLayer L, string aName, AQUATOXSegment P, double IC) : base(Ns, SVT, L, aName, P, IC)
 {
     Inflow        = 0;
     Discharg      = 0;
     InflowLoad    = 0;
     DischargeLoad = 0;
     // OOSDischFracLoad = 1;
     // OOSInflowFracLoad = 1;
     KnownValueLoad = 0;
     Calc_Method    = VolumeMethType.KeepConst;
     //                StratInflow = FlowType.FTBoth;
     //                StratOutflow = FlowType.FTBoth;
     //                StratAutomatically = true;
     //                StratDates = new TLoadings(10, 50);
 }