コード例 #1
0
        /// <summary>
        /// 设置 save list的值
        /// </summary>
        /// <param name="tcmd"></param>
        private void SetSvList(TCMD tcmd)
        {
            BindingSource bs = new BindingSource();

            bs.DataSource = tcmd.Setlist.TConditions;
            gridControlSave.DataSource = bs;
        }
コード例 #2
0
        /// <summary>
        /// 设置result judge的值
        /// </summary>
        /// <param name="tcmd"></param>
        private void SetResJug(TCMD tcmd)
        {
            BindingSource bs = new BindingSource();

            bs.DataSource = tcmd.Judgelist.tconditions;
            gridControlJudge.DataSource = bs;
        }
コード例 #3
0
ファイル: Frmsceme.cs プロジェクト: sowhat116/IHIL-1
        private void setOther(TCMD tcmd)
        {
            BindingSource jdbs = new BindingSource();
            BindingSource svbs = new BindingSource();

            jdbs.DataSource             = tcmd.Judgelist.tconditions;
            svbs.DataSource             = tcmd.Savelist.TConditions;
            gridControlJudge.DataSource = jdbs;
            gridControlSave.DataSource  = svbs;
        }
コード例 #4
0
ファイル: Frmsceme.cs プロジェクト: lwf058/IHIL
        private void gridView6_FocusedRowChanged(object sender, DevExpress.XtraGrid.Views.Base.FocusedRowChangedEventArgs e)
        {
            //set init & set & result judge & save
            //get cmd selected row
            int[]       handle   = gridView6.GetSelectedRows();
            int         h        = gridView6.GetDataSourceRowIndex(handle[0]);
            List <TCMD> tcmds    = (List <TCMD>)gridControlProject.DataSource;
            TCMD        nextTCMD = tcmds[h];

            setOther(nextTCMD);
        }
コード例 #5
0
ファイル: Frmsceme.cs プロジェクト: sowhat116/IHIL-1
        private void gridView6_FocusedRowChanged(object sender, DevExpress.XtraGrid.Views.Base.FocusedRowChangedEventArgs e)
        {
            TCMD nextTCMD = new TCMD();

            if (gridView6.RowCount != 0)
            {
                int           h     = gridView6.GetSelectedRows()[0];
                BindingSource bs    = (BindingSource)gridControlProject.DataSource;
                List <TCMD>   tcmds = (List <TCMD>)bs.DataSource;
                nextTCMD = tcmds[h];
            }
            setOther(nextTCMD);
        }
コード例 #6
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();
        }
コード例 #7
0
ファイル: Frmsceme.cs プロジェクト: lwf058/IHIL
 private void setOther(TCMD tcmd)
 {
     gridControlJudge.DataSource = tcmd.Judgelist.tconditions;
     gridControlSave.DataSource  = tcmd.Savelist.TConditions;
 }