예제 #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();
 }