Beispiel #1
0
 public EagleIslandComponent(LiveSplitState state, bool shown = false)
 {
     try
     {
         mem      = new EagleIslandMemory();
         settings = new EagleIslandSettings(this);
         foreach (string key in keys)
         {
             currentValues[key] = "";
         }
         if (state != null)
         {
             Model = new TimerModel()
             {
                 CurrentState = state
             };
             state.OnReset     += OnReset;
             state.OnPause     += OnPause;
             state.OnResume    += OnResume;
             state.OnStart     += OnStart;
             state.OnSplit     += OnSplit;
             state.OnUndoSplit += OnUndoSplit;
             state.OnSkipSplit += OnSkipSplit;
         }
     }
     catch (Exception ex)
     {
         Console.WriteLine(ex.ToString());
     }
 }
 public EagleIslandManager(bool shown)
 {
     InitializeComponent();
     Text            = "Eagle Island Manager " + Assembly.GetExecutingAssembly().GetName().Version.ToString();
     AlwaysShown     = shown;
     Visible         = shown;
     Memory          = new EagleIslandMemory();
     getValuesThread = new Thread(UpdateLoop);
     getValuesThread.IsBackground = true;
     getValuesThread.Start();
 }