public void ListeyiCek(string klasorAdi) { formBoard frmBoard = new formBoard(); frmBoard.ana = this; frmBoard.Text = klasorAdi; frmBoard.MdiParent = this; string[] todoList = Directory.GetFiles(Path.Combine(Directory.GetCurrentDirectory(), klasorAdi, "todo")); string[] doingList = Directory.GetFiles(Path.Combine(Directory.GetCurrentDirectory(), klasorAdi, "doing")); string[] doneList = Directory.GetFiles(Path.Combine(Directory.GetCurrentDirectory(), klasorAdi, "done")); foreach (string item in todoList) { string[] parcalanmis = item.Split('+', '.'); frmBoard.NotYukle(Path.GetFileName(parcalanmis[0]), Path.GetFileName(parcalanmis[1]), "todo"); } foreach (string item in doingList) { string[] parcalanmis = item.Split('+', '.'); frmBoard.NotYukle(Path.GetFileName(parcalanmis[0]), Path.GetFileName(parcalanmis[1]), "doing"); } foreach (string item in doneList) { string[] parcalanmis = item.Split('+', '.'); frmBoard.NotYukle(Path.GetFileName(parcalanmis[0]), Path.GetFileName(parcalanmis[1]), "done"); } frmBoard.Show(); }
private void YeniFormEkleToolStripMenuItem_Click(object sender, EventArgs e) { formSayfaAdi sayfaAdi = new formSayfaAdi(); sayfaAdi.anaFrm = this; DialogResult gelen = sayfaAdi.ShowDialog(); if (gelen == DialogResult.OK) { formBoard frmBoard = new formBoard(); frmBoard.Text = sayfaAdi.formAdi; frmBoard.MdiParent = this; MenuYenile(); frmBoard.Show(); sayfaAdi.Hide(); } }