private void button2_Click(object sender, EventArgs e)
        {
            ViewAssessments va = new ViewAssessments();

            va.MD = this.MD;
            va.Activate();
            va.ShowDialog();
            this.Close();
            this.Dispose();
        }
Ejemplo n.º 2
0
        private void btn3_Click(object sender, EventArgs e)
        {
            va = new ViewAssessments();
            Button btn = sender as Button;

            for (int i = 0; i < moduleListlvl4.Count; i++)
            {
                if (btn.Name.Equals(moduleListlvl4[i].ModuleName))
                {
                    va.MD = moduleListlvl4[i];
                    va.Activate();
                    va.ShowDialog();
                    break;
                }
            }

            for (int i = 0; i < moduleListlvl5.Count; i++)
            {
                if (btn.Name.Equals(moduleListlvl5[i].ModuleName))
                {
                    va.MD = moduleListlvl5[i];
                    va.Activate();
                    va.ShowDialog();
                    break;
                }
            }

            for (int i = 0; i < moduleListlvl6.Count; i++)
            {
                if (btn.Name.Equals(moduleListlvl6[i].ModuleName))
                {
                    va.MD = moduleListlvl6[i];
                    va.Activate();
                    va.ShowDialog();
                    break;
                }
            }
        }