TotalNumCounter = 0;
AddToLocationY = 0;
while (TotalNumCounter < TotalNum)
{
SplitSubStr = SplitAllFile[TotalNumCounter].Split(new Char[] { '_' });
if (SplitSubStr[15].Trim() == ActName)
{
CorpName[TotalNumCounter] = new System.Windows.Forms.LinkLabel();
CorpName[TotalNumCounter].AutoSize = true;
CorpName[TotalNumCounter].Location = new System.Drawing.Point(10, AddToLocationY + 10);
CorpName[TotalNumCounter].Name = Convert.ToString("NewLinkLabel" + TotalNumCounter);
CorpName[TotalNumCounter].Text = (TotalNumCounter + 1) + ". " + SplitSubStr[1].Trim();
CorpName[TotalNumCounter].Parent = this.panel3;
LocationY = CorpName[TotalNumCounter].Location.Y + 20;
CorpComInform[TotalNumCounter] = new System.Windows.Forms.Label();
CorpComInform[TotalNumCounter].AutoSize = true;
CorpComInform[TotalNumCounter].Location = new System.Drawing.Point(10, LocationY);
CorpComInform[TotalNumCounter].Name = Convert.ToString("NewLabel" + TotalNumCounter);
CorpComInform[TotalNumCounter].Text = "Общая информация:";
CorpComInform[TotalNumCounter].Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(204)));
CorpComInform[TotalNumCounter].Parent = this.panel3;
.
.
.
AddToLocationY += (CorpFilInform[TotalNumCounter].Location.Y + (TotalNumCounterFil*80)) - CorpName[TotalNumCounter].Location.Y;
}
TotalNumCounter++;
}
|