예제 #1
0
        public FormLoad()
        {
            int temp = 0;

            InitializeComponent();
            this.tableLayoutPanel1.ColumnStyles.Clear();
            this.tableLayoutPanel1.RowStyles.Clear();
            foreach (MindMapClass mm in MindMapControllers.LoadAllMindMap())
            {
                if (mm.listTopics.Count == 0)
                {
                    continue;
                }
                TopicLoad b = new TopicLoad(mm);
                b.Click += piclick;
                this.tableLayoutPanel1.Controls.Add(b, 0, temp++);
            }
        }
예제 #2
0
        private void piclick(object sender, EventArgs e)
        {
            TopicLoad p = sender as TopicLoad;

            this.ID = p.ID;
        }