private void Populate() { bool NoArcher = true; string path = "./Archers/"; try { string[] files = Directory.GetFiles(path, "*.xml"); foreach (string file in files) { string xfile = file.Substring(path.Length); xfile = xfile.Substring(0, xfile.Length - 4); listBoxArchers.Items.Add(xfile); NoArcher = false; } } catch { Directory.CreateDirectory(path); } if (NoArcher) { frmArcherWorx tmpWin = new frmArcherWorx(); tmpWin.MdiParent = (frmArcheryWorx)this.MdiParent; tmpWin.Show(); } }
private void creatorToolStripMenuItem_Click(object sender, EventArgs e) { frmArcherWorx tmpArcherWorx = new frmArcherWorx(); tmpArcherWorx.MdiParent = this; tmpArcherWorx.Show(); }
private void btnSysArcherWorx_Click(object sender, EventArgs e) { frmArcherWorx awWindow = new frmArcherWorx(); awWindow.MdiParent = this.MdiParent; awWindow.Show(); }
private void creatorToolStripMenuItem1_Click(object sender, EventArgs e) { frmArcherWorx awWindow = new frmArcherWorx(); awWindow.MdiParent = this; awWindow.Show(); }