public static void closePropagandas() { propagandasWindow.Close(); propagandasWindow = null; menuWindow.Focus(); propagandaOn = false; }
// Fechar e abrir janela de propaganda #region propagandas public static void startPropagandas() { if (propagandaOn) { propagandasWindow.Focus(); } else { propagandasWindow = new Propaganda.PropagandasWindow(); propagandasWindow.Show(); propagandasWindow.Left = menuWindow.Left + 50; propagandasWindow.Top = propagandasWindow.Top - 50; propagandaOn = true; } }