예제 #1
0
        public override void InitEditors(Entity entity)
        {
            base.InitEditors(entity);

            ProjectIterationSearchLookUpEdit.Bind(entity);
            NewProjectIterationSearchLookUpEdit.Bind(entity);
            TNewProjectIterationSearchLookUpEdit.Bind(entity);
        }
예제 #2
0
 public void BindNewTask(int minValue, int defaultValue, Guid projectId, object newTaskOne, object newTaskTwo)
 {
     _minValue = minValue;
     NewTaskOneBindingSource.DataSource = newTaskOne;
     NewTaskTwoBindingSource.DataSource = newTaskTwo;
     hourTrackBarControl.Value          = defaultValue;
     ProjectIterationSearchLookUpEdit.ReLoadData(new BinaryOperator("ProjectId", projectId), "ProjectIteration");
     NewProjectIterationSearchLookUpEdit.ReLoadData(new BinaryOperator("ProjectId", projectId), "ProjectIteration");
     TNewProjectIterationSearchLookUpEdit.ReLoadData(new BinaryOperator("ProjectId", projectId), "ProjectIteration");
     string[] splitTypes = { "RemainderTime", "Rate", "Manual" };
     splitTypeRadio.Properties.Items.Clear();
     for (int i = 0; i < splitTypes.Count(); i++)
     {
         RadioGroupItem item = new RadioGroupItem(i, ResourceService.GetString(splitTypes[i]));
         splitTypeRadio.Properties.Items.Add(item);
     }
     splitTypeRadio.EditValue = 0;
     if (OnValueChanged != null)
     {
         OnValueChanged(null, new EventArgs <int, int>(hourTrackBarControl.Value, 0));
     }
 }