Пример #1
0
        private void addEntry_Click(object sender, EventArgs e)
        {
            InitiativeEntry i = new InitiativeEntry(InitName.Text, Convert.ToInt32(InitVal.Text), removeInitiativeEntry);

            initiatives.Add(i);
            i.Parent = InitTrackPanel;
        }
Пример #2
0
 private void addMobs_Click(object sender, EventArgs e)
 {
     InitTrackPanel.Hide();
     foreach (IMobDisplayBlock ms in mobPanels)
     {
         InitiativeEntry i = new InitiativeEntry(ms.Mob, removeInitiativeEntry);
         i.ForeColor = InitiativeForeColour;
         i.BackColor = InitiativeBackColour;
         initiatives.Add(i);
         i.Parent = InitTrackPanel;
     }
     InitTrackPanel.PerformLayout();
     InitTrackPanel.Show();
 }
Пример #3
0
 private void removeInitiativeEntry(InitiativeEntry i)
 {
     initiatives.Remove(i);
     i.Dispose();
 }