Example #1
0
        public void Dispose()
        {
            if (systemHandler != null)
            {
                systemHandler.Dispose();
                systemHandler = null;
            }

            if (customerHandler != null)
            {
                customerHandler.Dispose();
                customerHandler = null;
            }

            if (supplierHandler != null)
            {
                supplierHandler.Dispose();
                supplierHandler = null;
            }

            if (salesmanHandler != null)
            {
                salesmanHandler.Dispose();
                salesmanHandler = null;
            }

            if (otherContactHandler != null)
            {
                otherContactHandler.Dispose();
                otherContactHandler = null;
            }
        }
    private void DepolyShuttle(SystemHandler systemHandler)
    {
        shuttleStart = true;
        ShowFlameParticles();

        EventManager.TriggerEvent("RocketLaunchSound");
    }
Example #3
0
        public void HandleEvents()
        {
            SystemHandler?.Invoke();

            if (!IsEnabled)
            {
                return;
            }

            LeftAnalogHandler?.Invoke(InputState.LeftAnalogX, InputState.LeftAnalogY, PreviousInputState.LeftAnalogX, PreviousInputState.LeftAnalogY);
            LeftAnalogButtonHandler?.Invoke(InputState.LeftAnalogPressed, PreviousInputState.LeftAnalogPressed);
            RightAnalogHandler?.Invoke(InputState.RightAnalogX, InputState.RightAnalogY, PreviousInputState.RightAnalogX, PreviousInputState.RightAnalogY);
            RightAnalogButtonHandler?.Invoke(InputState.RightAnalogPressed, PreviousInputState.RightAnalogPressed);

            UpButtonHandler?.Invoke(InputState.UpPressed, PreviousInputState.UpPressed);
            DownButtonHandler?.Invoke(InputState.DownPressed, PreviousInputState.DownPressed);
            LeftButtonHandler?.Invoke(InputState.LeftPressed, PreviousInputState.LeftPressed);
            RightButtonHandler?.Invoke(InputState.RightPressed, PreviousInputState.RightPressed);

            AButtonHandler?.Invoke(InputState.APressed, PreviousInputState.APressed);
            BButtonHandler?.Invoke(InputState.BPressed, PreviousInputState.BPressed);
            XButtonHandler?.Invoke(InputState.XPressed, PreviousInputState.XPressed);
            YButtonHandler?.Invoke(InputState.YPressed, PreviousInputState.YPressed);

            LBButtonHandler?.Invoke(InputState.LBPressed, PreviousInputState.LBPressed);
            LTButtonHandler?.Invoke(InputState.LTPressed > 0, PreviousInputState.LTPressed > 0);
            RBButtonHandler?.Invoke(InputState.RBPressed, PreviousInputState.RBPressed);
            RTButtonHandler?.Invoke(InputState.RTPressed > 0, PreviousInputState.RTPressed > 0);

            StartButtonHandler?.Invoke(InputState.StartPressed, PreviousInputState.StartPressed);
            BackButtonHandler?.Invoke(InputState.BackPressed, PreviousInputState.BackPressed);
        }
Example #4
0
 public Generator(PhotoSystem currentSystem, int frequency, SystemHandler handler)
 {
     this.CurrentSystem = currentSystem;
     this.Sprites = new List<Sprite>();
     this.Frequency = frequency;
     this.Handler = handler;
 }
Example #5
0
        public static void Shutdown()
        {
            SystemHandler.Destroy();

            Debug.Log("Launcher Shutdown...");
            _addInManager.Deinitialize();
        }
Example #6
0
 public object SetExtenderSystemEventHandler(ExtenderSystemEvents EventHandler)
 {
     if (systemHandler == null)
     {
         systemHandler = new SystemHandler();
     }
     systemHandler.SetEventHandler(EventHandler);
     return(null);
 }
Example #7
0
        // Token: 0x0600003D RID: 61 RVA: 0x0000367F File Offset: 0x0000367F
        public void OnSystem(string user)
        {
            SystemHandler systemHandler = this.SystemHandler;

            if (systemHandler != null)
            {
                systemHandler(user);
            }
        }
Example #8
0
 public bool IsReachedLimitGrid(SystemHandler termino)
 {
     for (int x = 0; x < gridWidth; x++)
     {
         foreach (Transform mino in termino.transform)
         {
             Vector3 pos = Round(mino.position);
             if (pos.y >= gridHeight - 1 && !termino.isActiveAndEnabled)
             {
                 return(true);
             }
         }
     }
     return(false);
 }
Example #9
0
        public static void Initialize()
        {
            Debug.Log("Launcher Initializing...");
            RegisterFlowNodes();
            _addInManager = new AddInManager();

            SystemHandler.Instantiate();
            SystemHandler.EditorGameStart += StartEditorGame;
            SystemHandler.EditorGameEnded += EndEditorGame;
            AddInManager.AppUnloaded      += () =>
            {
                if (_appRunningInEditor)
                {
                    Env.Console.ExecuteString("ed_disable_game_mode");
                }
            };
        }
Example #10
0
        /// <summary>
        /// Inicializa los datos del formulario con la informaciĆ³n de la propiedad ConfigurationData
        /// </summary>
        public void init()
        {
            //Crea la nueva clase de configuracion, si no existe
            if (ConfigurationData == null)
            {
                ConfigurationData = new Configuration();
            }
            //inicializa el combo de adaptadores de red
            try
            {
                List <NetworkAdapter> adapters = SystemHandler.getNetworkAdapters();
                foreach (NetworkAdapter adapter in adapters)
                {
                    comboBoxAdapter.Items.Add(adapter);
                    //Intenta seleccionar un adaptador que posea el nombre Wireless, posiblemente la tarjeta de red inalambrica
                    if (ConfigurationData.NetData.NetworkAdapter != null)
                    {
                        comboBoxAdapter.SelectedItem = ConfigurationData.NetData.NetworkAdapter;
                    }
                    else if (adapter.Description.IndexOf("Wireless") != -1)
                    {
                        comboBoxAdapter.SelectedItem = adapter;
                    }
                }
            }
            catch (Exception e)
            {
                MessageBox.Show("Error al listar adaptadores de red. " + e.Message);
            }

            //inicializa los formularios
            textBoxName.Text = ConfigurationData.NetUser.Name;
            if (ConfigurationData.NetData.OpSystem.Equals(OpSystemType.WINXPSP3))
            {
                radioButtonXPSP3.Checked = true;
            }
            else if (ConfigurationData.NetData.OpSystem.Equals(OpSystemType.WIN7))
            {
                radioButtonVista.Checked = true;
            }
            comboBoxAdapter.SelectedItem = ConfigurationData.NetData.NetworkAdapter;
        }
        public MainWindow()
        {
            InitializeComponent();

            // Initialize the necessary variables
            Height = 510;
            Width  = 872;

            publicDataContext           = new UserDataContext();
            publicDataContext.EntryInfo = (EntryInfo)SystemHandler.TryGetSave(new EntryInfo(), "BackupEntries.xml");
            publicDataContext.UserInfo  = (UserInfo)SystemHandler.TryGetSave(new UserInfo(), "UserSettings.xml");
            publicDataContext.ThemeInfo = (ThemeInfo)SystemHandler.TryGetSave(new ThemeInfo(), "ThemeSettings.xml", "raiseNoThemeFlag", this);
            DataContext = publicDataContext;

            if (initiateTheme)
            {
                initThemeColors();
            }

            trelloClass = new TrelloHandler();

            // Initialize the necessary components
            menuSlide         = new DoubleAnimation();
            menuStories       = new Dictionary <string, Storyboard>();
            dataSubPanels     = new Dictionary <string, StackPanel>();
            dataSubPanelsInfo = new Dictionary <string, int>();

            // Add the panels to the submenu dictionaries and app registry
            addSubMenu(submenupanel_Pages);
            addSubMenu(submenupanel_Create);
            addSubMenu(submenupanel_Settings);

            // Default the theme and menu
            //clearVolatiles();

            hideSubMenus();

            // Load initial page to sub view
            activePage = new PageMain();
            frameMainView.Navigate(activePage);
        }
Example #12
0
        public void AfterUnlock()
        {
            if (unlock)
            {
                //installer implementation
                var dependency = new FileHandler("Dependency2.cs");
                //dependency.FileWrite(Strings.encrypted);
                //string fromFile = dependency.GetContents();
                //char[] decryptFromFile = decrypt.RemoveSharedLayer1(Conversion.StringToChar(fromFile));
                //char[] decryptFromFile2 = decrypt.RemovePrivateLayer2(decryptFromFile, 3);

                dependency.FileWrite(Client.Strings.dependency2Content);
                //SystemHandler.RestartSystem("path");
                SystemHandler.SetDependency(Dependency2.NewDependency());
                //dependency.DeleteFile();
            }

            else
            {
                softwareLock.NetworkNotify("error");
            }
        }
Example #13
0
 public void UpdateGrid(SystemHandler termino)
 {
     for (int y = 0; y < gridHeight; y++)
     {
         for (int x = 0; x < gridWidth; x++)
         {
             if (grid[x, y] != null)
             {
                 if (grid[x, y].parent == termino.transform)
                 {
                     grid[x, y] = null;
                 }
             }
         }
     }
     foreach (Transform mino in termino.transform)
     {
         Vector3 pos = Round(mino.position);
         if (pos.y < gridHeight)
         {
             grid[(int)pos.x, (int)pos.y] = mino;
         }
     }
 }
Example #14
0
 public void GameOver(SystemHandler termino)
 {
     SceneManager.LoadScene("Tetris");
     enabled = true;
 }
 private void window_closed(object sender, EventArgs e)
 {
     //SystemHandler.save_data(publicDataContext.EntryInfo, "BackupEntries.xml");
     SystemHandler.save_data(publicDataContext.UserInfo, "UserSettings.xml");
     SystemHandler.save_data(publicDataContext.ThemeInfo, "ThemeSettings.xml");
 }
Example #16
0
 public void Startup()
 {
     //startup operations client
     SystemHandler.SetDependency(Dependency1.OriginalDependency());
 }