本文整理汇总了C#中Block.AddInnerBlock方法的典型用法代码示例。如果您正苦于以下问题:C# Block.AddInnerBlock方法的具体用法?C# Block.AddInnerBlock怎么用?C# Block.AddInnerBlock使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Block
的用法示例。
在下文中一共展示了Block.AddInnerBlock方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: BCE1250to900
public Plate BCE1250to900()
{
var rule = new Rule { StartValue = 1250, EndValue = 900, RuleLineSpacing = 5 };
var egypt = new Block { Ruler = rule, Title = "Egypt",Width = 30};
egypt.AddEntry(1224, "Marniptah 1224-1211");
egypt.AddEntry(1215, "(Sea Peoples defeated)");
egypt.AddEntry(1175, "Ramesses III 1183-1152");
egypt.AddEntry(1150, "(Sea Peoples defeated)" );
egypt.AddEntry(1125, "Ramesses IV-XI 1152-1069");
egypt.AddEntry(1100, "Egyptian empire ends");
egypt.AddEntry(1000, "XXI (Tanite) Dynasty 1069-935");
egypt.AddEntry(935, "XXII Dynasty 935-725");
egypt.AddEntry(925, "Shishak 935-914");
egypt.AddEntry(1185, 1069, "XX Dyn. 1185-1069", PrintLocation.Left );
egypt.AddEntry(1206, 1150, "Late Bronze Age collapse", PrintLocation.Right);
var palestine = new Block { Ruler = rule, Title = "Palestine"};
palestine.AddEntry(1225, "Israelite Conquest of Palestine 1250-1200");
palestine.AddEntry(1210, "Beginning of Iron Age 1200-1000");
palestine.AddEntry(1190,"Philistines settle in Palestine", PrintLocation.Right );
palestine.AddEntry(1149,"Deborah");
palestine.AddEntry(1145,"Gideon");
palestine.AddEntry(1050,"Fall of Shiloh - Ark captured");
palestine.AddEntry(1030, "Samuel");
palestine.AddEntry(1010, "Saul 1020-1000");
palestine.AddEntry(1000,"David 1000-961");
palestine.AddEntry(961,"Solomon 962-922");
palestine.AddEntry(1200,1020,"The Period of the Judges 1200-1020");
var judah = new Block {Ruler = rule, Title = "Judah", StartValue = 922};
var israel = new Block { Ruler = rule, Title = "Israel", StartValue = 922 };
var damascus = new Block { Ruler = rule, Title = "Damascus", StartValue = 945 };
damascus.AddEntry(940,900,"Rezon");
palestine.AddInnerBlock(judah);
palestine.AddInnerBlock(israel);
palestine.AddInnerBlock(damascus);
var assyria = new Block { Ruler = rule, Title = "Assyria", Width = 28};
assyria.AddEntry(1234,1197,"Tukulti-ninurta I 1234-1197");
assyria.AddEntry(1180, "Assyrian weakness");
assyria.AddEntry(1100,"(brief Assyrian revival)");
assyria.AddEntry(1116,1078,"Tiglath-pileser I 1116-1078");
assyria.AddEntry(1050, "Assyrian weakness");
assyria.AddEntry(1010,"Aramean pressure",PrintLocation.Left);
assyria.AddEntry(935,"Asshur-dan II 935-913");
assyria.AddEntry(925,"(Assryia's recovery begins)");
var plate = new Plate { Ruler = rule, Name = "Near East 1250 to 900 BCE" };
plate.AddBlock(egypt);
plate.AddBlock(palestine);
plate.AddBlock(assyria);
return plate;
}
示例2: BCE2000to1500
public Plate BCE2000to1500()
{
var rule = new Rule {StartValue = 2100, EndValue = 1500,RuleLineSpacing = 5};
var egypt = new Block {Ruler = rule, Title = "Egypt", Width = 22};
egypt.AddEntry(2040,"XI Dynasty");
egypt.AddEntry(1980,"XII Dynasty");
egypt.AddEntry(1710,"The Hykos");
egypt.AddEntry(1550,"New Kingdom (Empire)");
egypt.AddEntry(1530,"XVIII Dynasty");
egypt.AddEntry(2060,1800,"Middle Kingdom");
egypt.AddEntry(1750,1580,"II Intermediate");
var palestine = new Block {Ruler = rule, Title = "Palestine", Width = 16};
palestine.AddEntry(1900,1700,"The Patriarchs");
var hittities = new Block {Ruler = rule, Title = "Hittites", Width = 20};
hittities.AddEntry(1700,"Hittite Old Kingdom");
hittities.AddEntry(1650,"Labarna I");
hittities.AddEntry(1600,"Hattusili I");
hittities.AddEntry(1550,"Mursili I");
hittities.AddEntry(1900,1600,"City States");
var mesopotamia = new Block {Ruler = rule, Title = "Mesopotamia"};
var assyria = new Block {Ruler = rule, Title = "Assyria",StartValue = 1950};
assyria.AddEntry(1900,"Cappadocian Colonies");
assyria.AddEntry(1750,"Shamshi-Adad I");
var mari = new Block {Ruler = rule, Title = "Mari", StartValue = 1950, EndValue = 1700, Width = 16};
mari.AddEntry(1750,"The 'Mari Age'");
var isin = new Block {Ruler = rule, Title = "Isin", StartValue = 1950, EndValue = 1750, Width = 8};
var larsa = new Block {Ruler = rule, Title = "Larsa", StartValue = 1950, EndValue = 1700, Width = 16};
larsa.AddEntry(1758,"Rim-Sin I");
var babylon = new Block {Ruler = rule, Title = "Babylon", StartValue = 1830, EndValue = 1550, Width = 20};
babylon.AddEntry(1700, "Hammurabi");
babylon.AddEntry(1630, "Kassite Dyn." );
mesopotamia.AddInnerBlock(assyria);
mesopotamia.AddInnerBlock(mari);
mesopotamia.AddInnerBlock(isin);
mesopotamia.AddInnerBlock(larsa);
mesopotamia.AddInnerBlock(babylon);
mesopotamia.AddArrow(new Arrow(larsa, isin) { StartValue = 1750, ArrowTail = ".." });
mesopotamia.AddArrow(new Arrow(assyria, mari) { StartValue = 1720, ArrowTail = ".." });
mesopotamia.AddArrow(new Arrow(babylon, assyria) { StartValue = 1720, ArrowTail = ".." });
mesopotamia.AddArrow(new Arrow(babylon,mari){StartValue = 1700, ArrowTail = ".."});
mesopotamia.AddArrow(new Arrow(babylon,larsa){StartValue = 1700, ArrowTail = ".."});
mesopotamia.AddEntry(new Entry { StartValue = 2060, EndValue = 1950, Text = "Ur III" });
var plate = new Plate {Ruler = rule, Name = "Near East 2000-1500 BCE"};
plate.AddBlock(egypt);
plate.AddBlock(palestine);
plate.AddBlock(hittities);
plate.AddBlock(mesopotamia);
plate.AddArrow(new Arrow(hittities, babylon){StartValue = 1550, Text = "Babylon razed"});
return plate;
}