Example #1
0
        public AnalysisReportControl()
        {
            InitializeComponent();

            try
            {
                LoadGrid();
            }
            catch (DatabaseException ex)
            {
                Alerts.CrashApp(ex.Message);
            }
        }
        public AuthorReportControl()
        {
            this.repository       = new AuthorRepository();
            this.phraseRepository = new PhraseRepository();

            InitializeComponent();

            try
            {
                LoadFilterOptions();
            }
            catch (DatabaseException ex)
            {
                Alerts.CrashApp(ex.Message);
            }
        }
        public EntityControl()
        {
            repository = new EntityRepository();

            InitializeComponent();

            try
            {
                LoadEntities();
                CleanFields();
            }
            catch (DatabaseException ex)
            {
                Alerts.CrashApp(ex.Message);
            }
        }
Example #4
0
        public AuthorControl()
        {
            repository = new AuthorRepository();

            InitializeComponent();

            try
            {
                LoadAuthors();
                CleanFields();
            }
            catch (DatabaseException ex)
            {
                Alerts.CrashApp(ex.Message);
            }
        }
Example #5
0
        public SentimentControl()
        {
            this.repository = new SentimentRepository();

            InitializeComponent();

            try
            {
                LoadSentimentTypes();
                LoadSentiments();
                CleanFields();
            }
            catch (DatabaseException ex)
            {
                Alerts.CrashApp(ex.Message);
            }
        }
Example #6
0
        public AlarmControl()
        {
            entityAlarmRepository = new EntityAlarmRepository();
            authorAlarmRepository = new AuthorAlarmRepository();
            entityRepository      = new EntityRepository();

            InitializeComponent();

            try
            {
                LoadSentimentTypes();
                LoadEntities();
                LoadTimeMeasures();
                rbtnEntity_CheckedChanged(null, null);
                EnableFields(false);
                HideFields(true);
                CleanFields();
            }
            catch (DatabaseException ex)
            {
                Alerts.CrashApp(ex.Message);
            }
        }
Example #7
0
        public PhraseControl()
        {
            repository       = new PhraseRepository();
            authorRepository = new AuthorRepository();

            InitializeComponent();

            try
            {
                LoadPhrases();
                LoadSentimentTypes();
                LoadGrade();
                LoadAuthors();
                EnableFields(false);
                HideFields(true);
                CleanFields();

                dtpDate.CustomFormat = "dd/MM/yyyy HH:mm";
            }
            catch (DatabaseException ex)
            {
                Alerts.CrashApp(ex.Message);
            }
        }