예제 #1
0
 public static void closePropagandas()
 {
     propagandasWindow.Close();
     propagandasWindow = null;
     menuWindow.Focus();
     propagandaOn = false;
 }
예제 #2
0
        // 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;
            }
        }