示例#1
0
 public void On_Click_SupportStation()
 {
     B_Type            = BuildingGroundType.one_one;
     ConstructionTypes = ConstructionTypes.SupportStation;
     SetRequirements(0, 2, 4);
     CreateBuildingSquare(0, 0, 0);
     CreateBuildingSquare(0, -1, 1);
 }
示例#2
0
 //Create building item clicked on
 public void On_Click_ToolStore()
 {
     B_Type            = BuildingGroundType.one_one;
     ConstructionTypes = ConstructionTypes.ToolStore;
     SetRequirements(0, 0, 0);
     CreateBuildingSquare(0, 0, 0);
     CreateBuildingSquare(0, -1, 1);
 }
示例#3
0
        public ConstructionSet(string identifier)
        {
            var separator = new [] { "::" };
            var parts     = identifier.Split(separator, StringSplitOptions.None);

            Vintage          = Enumeration.FromDisplayName <Vintages>(parts[0]);
            ClimateZone      = Enumeration.FromDisplayName <ClimateZones>(parts[1]);
            ConstructionType = Enumeration.FromDisplayName <ConstructionTypes>(parts[2]);
        }
示例#4
0
    //Create building item clicked on
    //public void On_Click_TeleportPad()
    //{
    //	B_Type = BuildingGroundType.one_one;
    //	ConstructionTypes = ConstructionTypes.Teleportpad;
    //	SetRequirements(8, 0, 4);
    //	CreateBuildingSquare(0, 0, 0);
    //	CreateBuildingSquare(0, -1, 1);
    //}

    //Create building item clicked on
    public void On_Click_TeleportPad()
    {
        B_Type            = BuildingGroundType.one_one;
        ConstructionTypes = ConstructionTypes.Teleportpad;
        SetRequirements(8, 0, 4);
        CreateBuildingSquare(0, 0, 0);
        //CreateBuildingSquare(1, 0, 0);

        CreateBuildingSquare(0, -1, 1);
        //CreateBuildingSquare(1, -1, 1);
    }
示例#5
0
 /// <remarks/>
 public void CalculateStampDutyAsync(
     string DistCode,
     string TalukaCode,
     string VillageID,
     string SurveyNo,
     double AreaOfLand,
     double PlinthAreaOfConstruction,
     double PriceOfLand,
     double CompoundWall,
     double Derange,
     double CompoundLight,
     double InternalRoad,
     double LifeInYears,
     double SupervisionFees,
     double ConnectionFees,
     double ArchitectFees,
     double ElectrificationExpenses,
     double LiftExpenses,
     ConstructionTypes TypeOfConstruction,
     object userState)
 {
     if ((this.CalculateStampDutyOperationCompleted == null))
     {
         this.CalculateStampDutyOperationCompleted = new System.Threading.SendOrPostCallback(this.OnCalculateStampDutyOperationCompleted);
     }
     this.InvokeAsync("CalculateStampDuty", new object[] {
         DistCode,
         TalukaCode,
         VillageID,
         SurveyNo,
         AreaOfLand,
         PlinthAreaOfConstruction,
         PriceOfLand,
         CompoundWall,
         Derange,
         CompoundLight,
         InternalRoad,
         LifeInYears,
         SupervisionFees,
         ConnectionFees,
         ArchitectFees,
         ElectrificationExpenses,
         LiftExpenses,
         TypeOfConstruction
     }, this.CalculateStampDutyOperationCompleted, userState);
 }
示例#6
0
 public ValuationReport CalculateStampDuty(
     string DistCode,
     string TalukaCode,
     string VillageID,
     string SurveyNo,
     double AreaOfLand,
     double PlinthAreaOfConstruction,
     double PriceOfLand,
     double CompoundWall,
     double Derange,
     double CompoundLight,
     double InternalRoad,
     double LifeInYears,
     double SupervisionFees,
     double ConnectionFees,
     double ArchitectFees,
     double ElectrificationExpenses,
     double LiftExpenses,
     ConstructionTypes TypeOfConstruction)
 {
     object[] results = this.Invoke("CalculateStampDuty", new object[] {
         DistCode,
         TalukaCode,
         VillageID,
         SurveyNo,
         AreaOfLand,
         PlinthAreaOfConstruction,
         PriceOfLand,
         CompoundWall,
         Derange,
         CompoundLight,
         InternalRoad,
         LifeInYears,
         SupervisionFees,
         ConnectionFees,
         ArchitectFees,
         ElectrificationExpenses,
         LiftExpenses,
         TypeOfConstruction
     });
     return((ValuationReport)(results[0]));
 }
示例#7
0
 /// <remarks/>
 public void CalculateStampDutyAsync(
     string DistCode,
     string TalukaCode,
     string VillageID,
     string SurveyNo,
     double AreaOfLand,
     double PlinthAreaOfConstruction,
     double PriceOfLand,
     double CompoundWall,
     double Derange,
     double CompoundLight,
     double InternalRoad,
     double LifeInYears,
     double SupervisionFees,
     double ConnectionFees,
     double ArchitectFees,
     double ElectrificationExpenses,
     double LiftExpenses,
     ConstructionTypes TypeOfConstruction)
 {
     this.CalculateStampDutyAsync(DistCode, TalukaCode, VillageID, SurveyNo, AreaOfLand, PlinthAreaOfConstruction, PriceOfLand, CompoundWall, Derange, CompoundLight, InternalRoad, LifeInYears, SupervisionFees, ConnectionFees, ArchitectFees, ElectrificationExpenses, LiftExpenses, TypeOfConstruction, null);
 }
        public static OpaqueConstruction QuickConstruction(string name, ConstructionTypes type, string[] layers, double[] thickness, string category, string source,  ref Library Library)
        {

            OpaqueConstruction oc = new OpaqueConstruction();
            for (int i = 0; i < layers.Length; i++)
            {
                try
                {
                    if (Library.OpaqueMaterials.Any(x => x.Name == layers[i]))
                    {
                        var mat = Library.OpaqueMaterials.First(o => o.Name == layers[i]);
                        Layer<OpaqueMaterial> layer = new Layer<OpaqueMaterial>(thickness[i], mat);
                        oc.Layers.Add(layer);
                    }
                    else
                    {

                        Debug.WriteLine("ERROR: " + "Could not find " + layers[i]);
                        Logger.WriteLine("ERROR: " + "Could not find " + layers[i]);
                        return null;

                    }
                }
                catch(Exception e) {
                    Debug.WriteLine( e.Message);
                }

            }

            oc.Name = name;
            oc.Type = type;
            oc.Category = category;
            oc.DataSource = source;


            Library.Add(oc);
            return oc;

        }
示例#9
0
 public ValuationReport CalculateStampDuty(
             string DistCode, 
             string TalukaCode, 
             string VillageID, 
             string SurveyNo, 
             double AreaOfLand, 
             double PlinthAreaOfConstruction, 
             double PriceOfLand, 
             double CompoundWall, 
             double Derange, 
             double CompoundLight, 
             double InternalRoad, 
             double LifeInYears, 
             double SupervisionFees, 
             double ConnectionFees, 
             double ArchitectFees, 
             double ElectrificationExpenses, 
             double LiftExpenses, 
             ConstructionTypes TypeOfConstruction) {
     object[] results = this.Invoke("CalculateStampDuty", new object[] {
                 DistCode,
                 TalukaCode,
                 VillageID,
                 SurveyNo,
                 AreaOfLand,
                 PlinthAreaOfConstruction,
                 PriceOfLand,
                 CompoundWall,
                 Derange,
                 CompoundLight,
                 InternalRoad,
                 LifeInYears,
                 SupervisionFees,
                 ConnectionFees,
                 ArchitectFees,
                 ElectrificationExpenses,
                 LiftExpenses,
                 TypeOfConstruction});
     return ((ValuationReport)(results[0]));
 }
示例#10
0
 /// <remarks/>
 public void CalculateStampDutyAsync(
             string DistCode, 
             string TalukaCode, 
             string VillageID, 
             string SurveyNo, 
             double AreaOfLand, 
             double PlinthAreaOfConstruction, 
             double PriceOfLand, 
             double CompoundWall, 
             double Derange, 
             double CompoundLight, 
             double InternalRoad, 
             double LifeInYears, 
             double SupervisionFees, 
             double ConnectionFees, 
             double ArchitectFees, 
             double ElectrificationExpenses, 
             double LiftExpenses, 
             ConstructionTypes TypeOfConstruction, 
             object userState) {
     if ((this.CalculateStampDutyOperationCompleted == null)) {
         this.CalculateStampDutyOperationCompleted = new System.Threading.SendOrPostCallback(this.OnCalculateStampDutyOperationCompleted);
     }
     this.InvokeAsync("CalculateStampDuty", new object[] {
                 DistCode,
                 TalukaCode,
                 VillageID,
                 SurveyNo,
                 AreaOfLand,
                 PlinthAreaOfConstruction,
                 PriceOfLand,
                 CompoundWall,
                 Derange,
                 CompoundLight,
                 InternalRoad,
                 LifeInYears,
                 SupervisionFees,
                 ConnectionFees,
                 ArchitectFees,
                 ElectrificationExpenses,
                 LiftExpenses,
                 TypeOfConstruction}, this.CalculateStampDutyOperationCompleted, userState);
 }
示例#11
0
 /// <remarks/>
 public void CalculateStampDutyAsync(
             string DistCode, 
             string TalukaCode, 
             string VillageID, 
             string SurveyNo, 
             double AreaOfLand, 
             double PlinthAreaOfConstruction, 
             double PriceOfLand, 
             double CompoundWall, 
             double Derange, 
             double CompoundLight, 
             double InternalRoad, 
             double LifeInYears, 
             double SupervisionFees, 
             double ConnectionFees, 
             double ArchitectFees, 
             double ElectrificationExpenses, 
             double LiftExpenses, 
             ConstructionTypes TypeOfConstruction) {
     this.CalculateStampDutyAsync(DistCode, TalukaCode, VillageID, SurveyNo, AreaOfLand, PlinthAreaOfConstruction, PriceOfLand, CompoundWall, Derange, CompoundLight, InternalRoad, LifeInYears, SupervisionFees, ConnectionFees, ArchitectFees, ElectrificationExpenses, LiftExpenses, TypeOfConstruction, null);
 }