public FormMain() { InitializeComponent(); m_WorldHandler = new WorldHandler(); // Must be the first m_clock = new DSClock(); m_AutoSync = new AutoSync(); // Alarm m_AlarmHandler = new AlarmHandler(this); m_AlarmHandler.LoadAlarms(); // Attack Planer m_AttackPlanHandler = new AttackPlanHandler(); m_AttackPlanHandler.LoadAttackOrders(); m_FormClockOnTop = new FormStarter(() => { return(new FormClockOnTop(m_clock, m_AttackPlanHandler)); }); m_FormAlarm = new FormStarter(() => { return(new FormAlarm(m_AlarmHandler)); }); m_FormAttackPlaner = new FormStarter(() => { return(new FormAttackPlaner(m_AttackPlanHandler, m_AlarmHandler, m_WorldHandler)); }); m_FormSettings = new FormStarter(() => { return(new FormSettings(m_WorldHandler)); }); m_timer.Interval = 1; m_timer.Start(); m_timer.Tick += new EventHandler(timer_Tick); }
public FormClockOnTop(DSClock clock, AttackPlanHandler attackPlanHandler) { m_Clock = clock; m_AttackPlanHandler = attackPlanHandler; // Not needed ? InitializeComponent(); }