コード例 #1
0
        private void main_Activated(object sender, EventArgs e)
        {
            string localhost = Directory.GetCurrentDirectory() + "\\data\\";

            string[] dirs = Directory.GetDirectories(localhost);


            foreach (string str in dirs)
            {
                DirectoryInfo     info = new DirectoryInfo(str);
                ToolStripMenuItem item = new ToolStripMenuItem();
                item.Name = info.Name;
                item.Text = info.Name;
                if (info.Name == "url")
                {
                    continue;
                }
                item.Click += new EventHandler(ToolStripMenuItem_Click);
                contextMenuStrip1.Items.Insert(0, item);
            }


            //newForm = new StartProccess(info.Name);
            //  newForm.LoadUrl();


            // newForm.Show();

            leftform = new leftmenu();
            // leftform.Show();

            this.Hide();
        }
コード例 #2
0
        private void main_Activated(object sender, EventArgs e)
        {
            newForm = new StartProccess();
            newForm.LoadUrl();


            newForm.Show();

            leftform = new leftmenu();
            leftform.Show();

            this.Hide();
        }