Ejemplo n.º 1
0
        private void FormFill()
        {
            ClearForm();
            listBoxTypeOfPosts.Items.AddRange(_qt.GetDirectoryTypeOfPostNames().ToArray());

            buttonRemove.Enabled = listBoxTypeOfPosts.Items.Count > 0 ? true : false;
        }
Ejemplo n.º 2
0
        private void FormPost_Load(object sender, EventArgs e)
        {
            var db = new Context();

            _qt = new QueryTemplates(db);

            comboBoxNameOfCompany.Items.AddRange(_qt.GetDirectoryCompanyNames().ToArray());
            comboBoxTypeOfPost.Items.AddRange(_qt.GetDirectoryTypeOfPostNames().ToArray());
            dateTimePickerDate.MaxDate = new DateTime(DateTime.Now.Year, DateTime.Now.Month, DateTime.Now.Day, 0, 0, 0).AddDays(1).AddSeconds(-1);

            AddRows();
        }