Пример #1
0
 public CheckForm(ComplexEvRunner evR, int index)
 {
     InitializeComponent();
     _evRunner = evR;
     _index    = index;
     initializeData();
 }
Пример #2
0
 public Pan_ComplexEv(string name)
 {
     InitializeComponent();
     _evRunner      = new ComplexEvRunner(new Event());
     _evRunner.Name = name;
     initializeData();
 }
Пример #3
0
        private void button_addComplexEv_Click(object sender, EventArgs e)
        {
            ComplexEvRunner tempRunner = new ComplexEvRunner(new Event());

            _evRunner.addEvents(tempRunner);
            pan_complex.Controls.Add(new Pan_ComplexEv(tempRunner));
            pan_complex.Controls.SetChildIndex(button_addComplexEv, pan_complex.Controls.Count);
            resetName();
        }
Пример #4
0
 public ComplexEvForm(EventRunner evR)
 {
     InitializeComponent();
     if (evR is SimpleEvRunner)
     {
         _evRunner = new ComplexEvRunner(evR);
     }
     else
     {
         _evRunner = (ComplexEvRunner)evR;
     }
     initializeData();
 }
Пример #5
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
            })));
        }
Пример #6
0
 public Pan_ComplexEv(ComplexEvRunner evR)
 {
     InitializeComponent();
     _evRunner = evR;
     initializeData();
 }
Пример #7
0
 public Pan_ComplexEv()
 {
     InitializeComponent();
     _evRunner = new ComplexEvRunner(new Event());
     initializeData();
 }
Пример #8
0
 public Pan_Check(ComplexEvRunner evR, int initIndex)
 {
     InitializeComponent();
     _evRunner             = evR;
     button_showCheck.Text = _evRunner.getCheckName(initIndex) + "(" + _evRunner.CheckParamsList[initIndex] + ")";
 }
Пример #9
0
 public ComplexEvForm(Event ev)
 {
     InitializeComponent();
     _evRunner = new ComplexEvRunner(ev);
     initializeData();
 }
Пример #10
0
 public ComplexEvForm(string name)
 {
     InitializeComponent();
     _evRunner = new ComplexEvRunner(new Event(name));
     initializeData();
 }