private void BoardUI_Click(object sender, EventArgs e) { ListSpace listSpace = new ListSpace(this.mode, this.id, this.group, this.title, this.background); //----add boadId--------------------- Global.id_Board = this.id; //ws->pnws->ls->lists->card; ((WorkSpace)this.Parent.Parent).AddListSpace(new ListSpace(this.mode, this.id, this.group, this.title, this.background)); ((WorkSpace)this.Parent.Parent).LoadListSpace(); }
public ListUI(int id, int index, string title, int color, ListSpace listSpace) { InitializeComponent(); this.id = id; this.position = index; this.title = title; this.color = color; this.margin = 5; this.Top = 40; this.Left = 10 + (this.Width + margin) * this.position; _listSpace = listSpace; ZomOut(); LoadBaseInfor(); LoadCards(); }