コード例 #1
0
        //private void addEmployeeToolStripMenuItem_Click(object sender, EventArgs e)
        //{
        //    using (AddEmployee f = new AddEmployee())
        //    {
        //        if (f.ShowDialog() == DialogResult.OK)
        //        {
        //            persoane.Add(f.Rezultat);
        //            AfisarePersoane();
        //        }
        //    }
        //}

        private void showJobDetailsToolStripMenuItem_Click(object sender, EventArgs e)
        {
            if (listView1.SelectedItems.Count > 0)
            {
                Person pers = listView1.SelectedItems[0].Tag as Person;
                // if (MessageBox.Show("Are you sure ?", " ", MessageBoxButtons.YesNo) == DialogResult.Yes)
                {
                    EditEmployeeJob f3 = new EditEmployeeJob();
                    f3.ShowDialog();
                }
            }
        }
コード例 #2
0
        private void editEmployeeJobDetailToolStripMenuItem_Click(object sender, EventArgs e)
        {
            EditEmployeeJob eej = new EditEmployeeJob();

            eej.ShowDialog();
        }