/// <summary>
        /// Event handler for the click event on button1.
        /// </summary>
        /// <param name="sender">object</param>
        /// <param name="e">EventArgs</param>
        private void button1_Click(object sender, EventArgs e)
        {
            this.Hide();
            FormDepartament fD = new FormDepartament();

            fD.Show();
        }
Example #2
0
        /// <summary>
        /// Event handler for the closing event of this Form.
        /// </summary>
        /// <param name="sender">object</param>
        /// <param name="e">FormClosingEventArgs</param>
        private void FormAngajati_FormClosing(object sender, FormClosingEventArgs e)
        {
            this.Dispose();
            FormDepartament fD = new FormDepartament();

            fD.Show();
        }