public TaskForm(TaskData data, TaskList lists)
 {
     InitializeComponent();
     gTaskData = data;
     gTaskList = lists;
     foreach (var task in lists)
     {
         LogPathComboBox.Items.Add(task.LogPath);
         ProjectPathComboBox.Items.Add(task.ProjectPath);
     }
     NameTextBox.Text = data.Name;
     LogFolderTextBox.Text = data.LogFolder;
     if (data.LogNumber == -1)
     {
         for (int i = 0; i <= lists.Count; i++)
         {
             if (lists.Cast<TaskData>().Count(t => t.LogNumber == i) == 0)
             {
                 LogNumericUpDown.Value = i;
                 break;
             }
         }
     }
     else
     {
         LogNumericUpDown.Value = data.LogNumber;
     }
 }
Ejemplo n.º 2
0
        public List <string> GetAllParameterName()
        {
            List <string> l = new List <string>();

            AddParameterName(ActorList.Cast <IStoryEntityObject>().ToList(), l);
            AddParameterName(EventList.Cast <IStoryEntityObject>().ToList(), l);
            AddParameterName(GroupList.Cast <IStoryEntityObject>().ToList(), l);
            AddParameterName(TaskList.Cast <IStoryEntityObject>().ToList(), l);
            AddParameterName(StuffList.Cast <IStoryEntityObject>().ToList(), l);
            AddParameterName(RelationList.Cast <IStoryEntityObject>().ToList(), l);

            return(l);
        }