Пример #1
0
        public FormArsenal( FormMain parent )
        {
            InitializeComponent();

            Utility.SystemEvents.UpdateTimerTick += UpdateTimerTick;

            ControlHelper.SetDoubleBuffered( TableArsenal );

            ConfigurationChanged();

            TableArsenal.SuspendLayout();
            ControlArsenal = new TableArsenalControl[4];
            for ( int i = 0; i < ControlArsenal.Length; i++ ) {
                ControlArsenal[i] = new TableArsenalControl( this, TableArsenal, i );
            }
            TableArsenal.ResumeLayout();

            _buildingID = -1;

            Icon = ResourceManager.ImageToIcon( ResourceManager.Instance.Icons.Images[(int)ResourceManager.IconContent.FormArsenal] );
        }
Пример #2
0
        public FormArsenal(FormMain parent)
        {
            InitializeComponent();

            Utility.SystemEvents.UpdateTimerTick += UpdateTimerTick;

            ControlHelper.SetDoubleBuffered(TableArsenal);

            TableArsenal.SuspendLayout();
            ControlArsenal = new TableArsenalControl[4];
            for (int i = 0; i < ControlArsenal.Length; i++)
            {
                ControlArsenal[i] = new TableArsenalControl(this, TableArsenal, i);
            }
            TableArsenal.ResumeLayout();

            _buildingID = -1;

            ConfigurationChanged();

            Icon = ResourceManager.ImageToIcon(ResourceManager.Instance.Icons.Images[(int)ResourceManager.IconContent.FormArsenal]);
        }