Exemplo n.º 1
0
        //処理待ちファイルのリストを更新する関数
        private void ProssessWaitListBoxUpdate()
        {
            int beforeSelectedIndex = InputBox.SelectedIndex;

            InputBox.Items.Clear();

            //該当データをすべて表示
            List <FilesForCovert> item = cs.GetMatchList(
                p => p.Status == (int)DataTypes.Standby && p.IsDeleted == false);

            foreach (MediaFiles data in item)
            {
                InputBox.Items.Insert(0, data.GetScreenName());
            }

            if (beforeSelectedIndex >= InputBox.Items.Count)
            {
                beforeSelectedIndex = -1;
            }
            else
            {
                InputBox.SelectedIndex = beforeSelectedIndex;
            }
            InputBox.Update();

            form_list.UpdateDeletedData(cs);
        }
Exemplo n.º 2
0
        public void UpdateAllListData(ControlFiles controlFiles)
        {
            List <FilesForCovert> lp;

            lp = controlFiles.GetMatchList(p => true);

            AllDataGridView.Rows.Clear();

            foreach (var v in lp)
            {
                AllDataGridView.Rows.Add(v.Id, v.GetBasename(),
                                         v.Status, v.IsDeleted, v.IsDummy, v.IsDeleted);
            }

            AllDataGridView.Update();
        }
Exemplo n.º 3
0
        public int UpdateDeletedData(ControlFiles controlFiles)
        {
            List <FilesForCovert> lp;

            lp = controlFiles.GetMatchList(p => p.IsDeleted == true);

            DeleteDataGridView.Rows.Clear();

            foreach (var v in lp)
            {
                DeleteDataGridView.Rows.Add(v.Id, v.GetBasename(), v.Status, v.IsDeleted, v.IsDummy);
            }

            DeleteDataGridView.Update();

            return(0);
        }