コード例 #1
0
ファイル: Frmsceme.cs プロジェクト: lwf058/IHIL
        private void gridView3_SelectionChanged(object sender, DevExpress.Data.SelectionChangedEventArgs e)
        {
            //set project cmd
            //to do
            int[]        handle    = gridView3.GetSelectedRows();
            int          h         = gridView3.GetDataSourceRowIndex(handle[0]);
            List <TStep> list      = (List <TStep>)gridControlTest.DataSource;
            TStep        nextTstep = list[h];

            setProjCMD(nextTstep.CmdList);
        }
コード例 #2
0
ファイル: Frmsceme.cs プロジェクト: sowhat116/IHIL-1
        private void gridView3_FocusedRowChanged(object sender, DevExpress.XtraGrid.Views.Base.FocusedRowChangedEventArgs e)
        {
            TStep nextTstep = new TStep();

            if (gridView3.RowCount != 0)
            {
                int           h    = gridView3.GetSelectedRows()[0];
                BindingSource bs   = (BindingSource)gridControlTest.DataSource;
                List <TStep>  list = (List <TStep>)bs.DataSource;
                nextTstep = list[h];
            }
            setProjCMD(nextTstep.CmdList);
        }
コード例 #3
0
ファイル: Frmsceme.cs プロジェクト: sowhat116/IHIL-1
        private void toolStripMenuItemMvDn_Click(object sender, EventArgs e)
        {
            int           i  = CurrentgridView.GetSelectedRows()[0];
            BindingSource bs = (BindingSource)CurrentgridView.DataSource;

            if (CurrentgridView.Name == "gridView3")
            {
                List <TStep> list = (List <TStep>)bs.DataSource;
                TStep        temp = list[i];
                list[i]     = list[i + 1];
                list[i + 1] = temp;
            }
            else if (CurrentgridView.Name == "gridView6")
            {
                List <TCMD> list = (List <TCMD>)bs.DataSource;
                TCMD        temp = list[i];
                list[i]     = list[i + 1];
                list[i + 1] = temp;
            }
            else if (CurrentgridView.Name == "Result_judge_subview")
            {
                List <subCondition> list = (List <subCondition>)bs.DataSource;
                subCondition        temp = list[i];
                list[i]     = list[i + 1];
                list[i + 1] = temp;
            }
            else
            {
                List <TCondition> list = (List <TCondition>)bs.DataSource;
                TCondition        temp = list[i];
                list[i]     = list[i + 1];
                list[i + 1] = temp;
            }
            setAllPage();
            SaveToFile();
        }