Exemple #1
0
 private void addPanel()
 {
     appCount += 1;
     AppPanel newPanel = new AppPanel();
     newPanel.Name = appCount.ToString();
     //newPanel.Dock = DockStyle.Fill;
     newPanel.Anchor = AnchorStyles.Top;
     newPanel.Name = appCount.ToString();
     tableUpper.Controls.Add(newPanel);
 }
Exemple #2
0
        private void buildPanel()
        {
            Program.savedApps = new Dictionary<string, PosWindow.Rect>();
            tableUpper.Controls.Clear();
            appCount = 0;

            importFromSettings();

            foreach (KeyValuePair<String, PosWindow.Rect> app in Program.savedApps)
            {
                appCount += 1;
                AppPanel newPanel = new AppPanel(app.Key, app.Value);
                //newPanel.Dock = DockStyle.Top;
                newPanel.Anchor = AnchorStyles.Top;
                newPanel.Name = appCount.ToString();
                tableUpper.Controls.Add(newPanel);
            }
        }