private void SaveToExcelButton_Click(object sender, RoutedEventArgs e)
        {
            this.SaveToExcelButton.IsEnabled = false;
            EventCore core = new EventCore();

            core.SaveEvidence();
        }
 private static void CallCoreMethod(string operation)
 {
     Task.Run(() =>
     {
         EventCore core = new EventCore();
         core.TakeScreenShot(operation);
     });
 }
Ejemplo n.º 3
0
        public static void RaiseEvent(this object sender, string name, object data = null)
        {
            if (string.IsNullOrWhiteSpace(name))
            {
                return;
            }

            EventCore.RaiseEvent(sender, new EventEventArgs(name, data));
        }
Ejemplo n.º 4
0
 private void Awake()
 {
     if (Instance != null)
     {
         DestroyImmediate(this);
         Debug.LogError("MULTIPLE EVENT CORES IN SCENE");
     }
     else
     {
         Instance = this;
         DontDestroyOnLoad(gameObject);
     }
 }
Ejemplo n.º 5
0
 public void Init()
 {
     _core = new EventCore();
 }
Ejemplo n.º 6
0
 private void Awake()
 {
     Inst = this;
 }
Ejemplo n.º 7
0
 public void Init()
 {
     _core = new EventCore();
 }