Example #1
0
        protected void FinalizeLayout(int rowIndex, int tabIndex)
        {
            int num2 = base.Height = FormTools.YPos(rowIndex + 1) + 16;

            InitButtons();
            this.ScaleAndLayout();
        }
Example #2
0
        public SelectActiveServerForm(IEnumerable <ServerBase> servers)
            : base("Select server", null)
        {
            BackColor       = Color.White;
            base.ClientSize = new Size(304, FormTools.YPos(7));
            int num = 0;

            foreach (ServerBase item in servers.Take(10))
            {
                char key = (num == 9) ? '0' : ((char)(49 + num));
                AddButton(num / 5, num % 5, key, item.DisplayName, Operation.SelectServer, item);
                num++;
            }
            num += num % 2;
            int rowIndex = (num < 10) ? (num % 5) : 5;

            AddButton(0, rowIndex, 'T', "Server Tree", Operation.SelectTree, null);
            AddButton(1, rowIndex, 'N', "Minimize RDCMan", Operation.MinimizeWindow, null);
            base.KeyDown += List_KeyDownHandler;
            this.ScaleAndLayout();
        }