Example #1
0
        private void AddDepartment(object sender)
        {
            sel_dep = new DepartmentModel();
            DepartmentWindow cw = new DepartmentWindow(sel_dep);

            if (cw.ShowDialog() == true)
            {
                db.AddDepartment(sel_dep);
                db.Save();
                SetData();
            }
        }