Exemplo n.º 1
0
        private void btnOK_Click(object sender, EventArgs e)
        {
            try
            {
                ComboItem schedule = comboBox1.SelectedItem as ComboItem;
                string    priority = comboBox4.SelectedItem.ToString();

                lfa.pmgmt.data.DAO.Schedule.Schedule dao = new data.DAO.Schedule.Schedule();
                dao.ConnectionString = _connectionString;
                dao.InsertPriority(schedule.Id, priority);

                BindRuleData();
            }
            catch (Exception ex)
            {
                HandleException(ex);
            }
        }
Exemplo n.º 2
0
        private void btnOK_Click(object sender, EventArgs e)
        {
            try
            {
                ComboItem schedule = comboBox1.SelectedItem as ComboItem;
                string priority = comboBox4.SelectedItem.ToString();

                lfa.pmgmt.data.DAO.Schedule.Schedule dao = new data.DAO.Schedule.Schedule();
                dao.ConnectionString = _connectionString;
                dao.InsertPriority(schedule.Id, priority);

                BindRuleData();
            }
            catch (Exception ex)
            {
                HandleException(ex);
            }
        }