public options(Form f,Configuration c)
 {
     form = f;
     config = c;
     InitializeComponent();
     setupForm();
 }
        public Countdown(ProgressBar b, Label l, Configuration c, Form1 f)
        {
            bar = b;
            label = l;
            form = f;
            config = c;

            countdown_timer = new System.Timers.Timer();
            countdown_timer.Elapsed += new System.Timers.ElapsedEventHandler(tick);
            countdown_timer.Interval = 1000;
        }
        public Form1()
        {
            InitializeComponent();

            config = new Configuration(this);
            dragon = new Countdown(progressBar1, label1, config, this);
            baron = new Countdown(progressBar2, label2, config, this);

            Hotkey drag_hotkey = new Hotkey(config.getDragonKeys(), false, false, false, false);
            drag_hotkey.Pressed += new HandledEventHandler(button1_Click);
            drag_hotkey.Register(this);

            Hotkey baron_hotkey = new Hotkey(config.getBaronKeys(), false, false, false, false);
            baron_hotkey.Pressed += new HandledEventHandler(button2_Click);
            baron_hotkey.Register(this);
        }