コード例 #1
0
ファイル: TeacherMenu.cs プロジェクト: yuryk53/SchoolJournal
 private void btnMyProfile_Click(object sender, EventArgs e)
 {
     TeacherInfo info = TeacherDAL.GetTeacher(TeacherID);
     ProfileWindow wnd = new ProfileWindow(info, "Category", info.Category, "Specialization", info.Specialization);
     wnd.FormClosed += ((o, s) =>
     {
         this.Show();
     });
     wnd.Owner = this;
     wnd.Show();
     this.Hide();
 }
コード例 #2
0
ファイル: AdminMenu.cs プロジェクト: yuryk53/SchoolJournal
        private void btnMyProfile_Click(object sender, EventArgs e)
        {
            ProfileWindow wnd = new ProfileWindow(info, "Has delete rights", info.HasDeleteRights.ToString());

            wnd.FormClosed += ((o, s) =>
            {
                this.Show();
            });
            wnd.Owner = this;
            wnd.Show();
            this.Hide();
        }
コード例 #3
0
        private void btnMyProfile_Click(object sender, EventArgs e)
        {
            TeacherInfo   info = TeacherDAL.GetTeacher(TeacherID);
            ProfileWindow wnd  = new ProfileWindow(info, "Category", info.Category, "Specialization", info.Specialization);

            wnd.FormClosed += ((o, s) =>
            {
                this.Show();
            });
            wnd.Owner = this;
            wnd.Show();
            this.Hide();
        }
コード例 #4
0
ファイル: ParentMenu.cs プロジェクト: yuryk53/SchoolJournal
        private void btnMyProfile_Click(object sender, EventArgs e)
        {
            ParentInfo info = null;
            try
            {
                info = ParentDAL.GetParentInfo(this.ParentID);
            }
            catch (ArgumentOutOfRangeException ex)
            {
                MessageBox.Show(ex.Message, "Error!", MessageBoxButtons.OK, MessageBoxIcon.Error);
                return;
            }

            ProfileWindow wnd = new ProfileWindow(info, "Job", info.Job);
            wnd.FormClosed += ((o, s) =>
            {
                this.Show();
            });
            wnd.Owner = this;
            wnd.Show();
            this.Hide();
        }
コード例 #5
0
ファイル: ParentMenu.cs プロジェクト: yuryk53/SchoolJournal
        private void btnMyProfile_Click(object sender, EventArgs e)
        {
            ParentInfo info = null;

            try
            {
                info = ParentDAL.GetParentInfo(this.ParentID);
            }
            catch (ArgumentOutOfRangeException ex)
            {
                MessageBox.Show(ex.Message, "Error!", MessageBoxButtons.OK, MessageBoxIcon.Error);
                return;
            }

            ProfileWindow wnd = new ProfileWindow(info, "Job", info.Job);

            wnd.FormClosed += ((o, s) =>
            {
                this.Show();
            });
            wnd.Owner = this;
            wnd.Show();
            this.Hide();
        }
コード例 #6
0
ファイル: AdminMenu.cs プロジェクト: yuryk53/SchoolJournal
 private void btnMyProfile_Click(object sender, EventArgs e)
 {
     ProfileWindow wnd = new ProfileWindow(info, "Has delete rights", info.HasDeleteRights.ToString());
     wnd.FormClosed += ((o, s) =>
     {
         this.Show();
     });
     wnd.Owner = this;
     wnd.Show();
     this.Hide();
 }