Ejemplo n.º 1
0
        private void MyTaskFormEdit_Load(object sender, EventArgs e)
        {
            SelectStatusComboBox();

            textBox_History_date_task.Text = Values.MyTaskDate;

            int indexStat = ComboBox_fk_status_task.FindString(Values.MyTaskStatus);

            ComboBox_fk_status_task.SelectedIndex = indexStat;

            if (!string.IsNullOrEmpty(textBox_History_date_task.Text))
            {
                textBox_History_date_task.Text = textBox_History_date_task.Text.Substring(0, 10);
            }
        }
Ejemplo n.º 2
0
        // При загрузки формы
        private void History_taskFormEdit_Load(object sender, EventArgs e)
        {
            SelectTaskComboBox();

            SelectStatusComboBox();

            textBox_History_date_task.Text = Values.HistoryTaskDate;

            string s = Values.HistoryTaskName + "; " + Values.HistoryTaskProject;

            int indexProj = ComboBox_fk_project_task.FindString(s);
            int indexStat = ComboBox_fk_status_task.FindString(Values.HistoryTaskStatus);

            ComboBox_fk_project_task.SelectedIndex = indexProj;
            ComboBox_fk_status_task.SelectedIndex  = indexStat;

            if (!string.IsNullOrEmpty(textBox_History_date_task.Text))
            {
                textBox_History_date_task.Text = textBox_History_date_task.Text.Substring(0, 10);
            }
        }