예제 #1
0
        private void putToList()
        {
            Maker.Instance.Items.Clear();

            foreach (Object obj in _listFiles.Items)
            {
                CListItem item = obj as CListItem;
                if (item == null)
                {
                    continue;
                }

                ListFileType type     = (ListFileType)((ComboBox)item.SubItems[0].Control).SelectedItem;
                String       fileName = item.SubItems[1].Text;

                if (type == ListFileType.IGNORED)
                {
                    continue;
                }

                ListFile file = new ListFile();
                file.FileName                 = fileName;
                file.SourceDirectoryName      = Path;
                file.DescriptionDirectoryName = MakeTo;
                file.FileType                 = type;

                Maker.Instance.Items.Add(file);
            }
        }
예제 #2
0
        public ListFileInfo(ListFileType type, string path, string name)
        {
            switch (type)
            {
            case ListFileType.File:
                _image = FileImage;
                break;

            case ListFileType.Folder:
                _image = FolderImage;
                break;

            default:
                break;
            }

            _path = path;
            _name = name;
            Type  = type;
        }
예제 #3
0
 public bool this[ListFileType type]
 {
     get { return _statuses[type]; }
     set { _statuses[type] = value; }
 }
예제 #4
0
 public bool this[ListFileType type]
 {
     get { return(_statuses[type]); }
     set { _statuses[type] = value; }
 }
예제 #5
0
 public AnalyzerTask(GameProperty property, ListFileType type)
 {
     ListType        = type;
     CurrentProperty = property;
     Status          = Status.FREE; //TODO not used?
 }
예제 #6
0
 public LinkedList <ListFile> Files(ListFileType t)
 {
     return(_list[t]);
 }
예제 #7
0
 public LinkedList<ListFile> Files(ListFileType t)
 {
     return _list[t];
 }
예제 #8
0
 public AnalyzerTask(GameProperty property, ListFileType type)
 {
     ListType = type;
     CurrentProperty = property;
     Status = Status.FREE; //TODO not used?
 }