Exemplo n.º 1
0
        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();
            }
        }
Exemplo n.º 2
0
        private void creatorToolStripMenuItem_Click(object sender, EventArgs e)
        {
            frmArcherWorx tmpArcherWorx = new frmArcherWorx();

            tmpArcherWorx.MdiParent = this;
            tmpArcherWorx.Show();
        }
Exemplo n.º 3
0
        private void btnSysArcherWorx_Click(object sender, EventArgs e)
        {
            frmArcherWorx awWindow = new frmArcherWorx();

            awWindow.MdiParent = this.MdiParent;
            awWindow.Show();
        }
Exemplo n.º 4
0
        private void creatorToolStripMenuItem1_Click(object sender, EventArgs e)
        {
            frmArcherWorx awWindow = new frmArcherWorx();

            awWindow.MdiParent = this;
            awWindow.Show();
        }