public FilterSettingForm(ControlFiles ics)
        {
            InitializeComponent();

            cs = ics;

            filterListUserControl1.SetCommandData(cs.GetAllCommandScreenName());

            List <String> list    = new List <string>();
            List <int>    keyList = new List <int>(cs.fd.ConditionStr.Keys);

            foreach (int key in keyList)
            {
                System.Diagnostics.Debug.WriteLine(key + " : " + cs.fd.ConditionStr[key]);

                list.Add(cs.fd.ConditionStr[key]);
            }
            filterListUserControl1.SetBranchType(list);

            //いい感じに
            tform    = new TreeForms();
            tform.it = filterListUserControl1;
            //tform.it.MyProgressEvent += new FilterListUserControl.MyEventHandler(SomethingHappenInFilterForm);
            tform.it.BranchTypeBox_Changed += new FilterListUserControl.MyEventHandler2(BranchTypeBox_Changed);
        }
Example #2
0
        public MainForm(ControlFiles Ics, OptionData Iod)
        {
            InitializeComponent();

            od = Iod;

            //データ表示ウィンドウ
            form_list = new ShowFileList();
            form_list.Show();

            //すべてのファイルリストを確保
            cs = Ics;

            return;
        }
Example #3
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();
        }
Example #4
0
        public MainForm()
        {
            InitializeComponent();

            od = new OptionData();

            //データ表示ウィンドウ
            form_list = new ShowFileList();
            form_list.Show();

            //すべてのファイルリストを確保
            cs = new ControlFiles();

            //コマンドリストを更新
            CommandListUpdate();
        }
Example #5
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);
        }
Example #6
0
 public void Update(ControlFiles controlFiles)
 {
     UpdateAllListData(controlFiles);
     UpdateDeletedData(controlFiles);
 }