Ejemplo n.º 1
0
        private void EmployeeBtn_Click(object sender, EventArgs e)
        {
            EmployeeDetails ed = new EmployeeDetails();

            ed.Show();
            Hide();
        }
Ejemplo n.º 2
0
        /// <summary>
        /// Navigation to details page
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        public void goToDetails(object sender, RoutedEventArgs e)
        {
            Hyperlink       obj             = (Hyperlink)sender;
            EmployeeDetails employeeDetails = new EmployeeDetails(obj.CommandParameter.ToString());

            Application.Current.Windows[0].Close();
            employeeDetails.Show();
        }
Ejemplo n.º 3
0
        private void ShowAddEmployeeForm()
        {
            EmployeeDetails Itm = new EmployeeDetails();

            Itm.TopLevel = false;
            this.Controls.Add(Itm);
            Itm.FormBorderStyle = System.Windows.Forms.FormBorderStyle.None;
            Itm.Dock            = DockStyle.Fill;
            Itm.BringToFront();
            Itm.Show();
        }
Ejemplo n.º 4
0
        private void metroButton9_Click(object sender, EventArgs e)
        {
            if (ActiveMdiChild != null)
            {
                ActiveMdiChild.Close();
            }
            EmployeeDetails newMDIChild = new EmployeeDetails();

            // Set the Parent Form of the Child window.
            newMDIChild.MdiParent = this;
            // Display the new form.
            newMDIChild.Show();
            newMDIChild.Dock = DockStyle.Fill;
        }