コード例 #1
0
        public FormJobs()
        {
            InitializeComponent();

            var jobs = JobsModel.GetAllJobs();

            foreach (var job in jobs)
            {
                listBox1.Items.Add(job.Title);
            }

            Text = Config.PROJECT_NAME + " - Посади";
        }
コード例 #2
0
        public FormEmployee(int id = 0)
        {
            InitializeComponent();

            var jobs = JobsModel.GetAllJobs();

            foreach (var job in jobs)
            {
                comboBox1.Items.Add(job.Title);
            }

            if (id == 0)
            {
                NewEmployee();
                return;
            }

            ExistsEmployee(id);
        }