Exemplo n.º 1
0
 public Pan_SimpleEv(string name)
 {
     InitializeComponent();
     _evRunner      = new SimpleEvRunner(new Event());
     _evRunner.Name = name;
     initializeData();
 }
Exemplo n.º 2
0
        private void button_addSimpleEv_Click(object sender, EventArgs e)
        {
            SimpleEvRunner tempRunner = new SimpleEvRunner(new Event());

            _evRunner.addEvents(tempRunner);
            pan_simple.Controls.Add(new Pan_SimpleEv(tempRunner));
            pan_simple.Controls.SetChildIndex(button_addSimpleEv, pan_simple.Controls.Count);
            resetName();
        }
Exemplo n.º 3
0
        static void Main()
        {
            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);

            ComplexEvRunner evr1 = new ComplexEvRunner(new List <Event>()
            {
                new Event(1, 2), new Event(1, 3), new Event(1, 3), new Event("NamedDice", 1, 2)
            });
            CheckMethods cm = new CheckMethods(evr1.checkSMIN);

            cm += new CheckMethods(evr1.checkFMIN);
            evr1.setChecks(cm, new List <int> {
                2, 1
            });
            evr1.Name = "Bollocks!";

            SimpleEvRunner evr2 = new SimpleEvRunner(new Event(1, 5), 0, 2);

            Application.Run(new ComplexEvForm(new ComplexEvRunner(new List <EventRunner>()
            {
                evr1, evr2
            })));
        }
Exemplo n.º 4
0
 public SimpleEvForm(SimpleEvRunner evR)
 {
     InitializeComponent();
     _evRunner = evR;
     initializeData();
 }
Exemplo n.º 5
0
 public SimpleEvForm(Event ev)
 {
     InitializeComponent();
     _evRunner = new SimpleEvRunner(ev);
     initializeData();
 }
Exemplo n.º 6
0
 public SimpleEvForm(string name)
 {
     InitializeComponent();
     _evRunner = new SimpleEvRunner(new Event(name));
     initializeData();
 }
Exemplo n.º 7
0
 public Pan_SimpleEv(SimpleEvRunner evR)
 {
     InitializeComponent();
     _evRunner = evR;
     initializeData();
 }
Exemplo n.º 8
0
 public Pan_SimpleEv()
 {
     InitializeComponent();
     _evRunner = new SimpleEvRunner(new Event());
     initializeData();
 }