Ejemplo n.º 1
0
 private void btnAdd_Click(object sender, EventArgs e)
 {
     try
     {
         IncidenceDatasetDefinition frm = new IncidenceDatasetDefinition();
         DialogResult rtn = frm.ShowDialog();
         BindControls();
     }
     catch (Exception ex)
     {
         Logger.LogError(ex.Message);
     }
 }
Ejemplo n.º 2
0
        private void btnEdit_Click(object sender, EventArgs e)
        {
            string msg         = string.Empty;
            string dataSetName = lstAvailableDataSets.GetItemText(lstAvailableDataSets.SelectedItem);

            try
            {
                if (dataSetName == string.Empty)
                {
                    return;
                }
                IncidenceDatasetDefinition frm = new IncidenceDatasetDefinition(dataSetName, Convert.ToInt32(_dataSetID));
                DialogResult rtn = frm.ShowDialog();
                {
                    BindControls();
                }
            }
            catch (Exception ex)
            {
                Logger.LogError(ex.Message);
            }
        }