예제 #1
0
        public void initConst()
        {
            //Per prima cosa rileviamo le dimensioni dello schermo
            Const.widthScreen  = Screen.PrimaryScreen.Bounds.Width;
            Const.heightScreen = Screen.PrimaryScreen.Bounds.Height;

            //inizializzo la classe che contiene le costanti
            Const.init();
        }
예제 #2
0
        public Menu()
        {
            Const.init();

            InitializeComponent();

            initConst();

            init();
            Const.setMenu(this);
        }