Example #1
0
        public void RefreshCurrentRowStatus()
        {
            var row = gridView1.GetDataRow(gridView1.FocusedRowHandle);

            if (row != null)
            {
                int       id   = row.GetValue <int>(colId);
                LemHeader data = LemHeader.GetLogHeader(id);
                row.SetValue(colSubmitStatus, GetEnumName(data.SubmitStatus));
                btnSubmit.Enabled = GetEnumName(EnumSubmitStatus.Open) == row.GetValueString(colSubmitStatus);
                _fileMgr.Enabled  = LemHeader.CheckEditable(row.GetCharEnumValue <EnumLogStatus>(colLogStatus));
            }
        }
Example #2
0
        public LemHeader GetCurrentLog()
        {
            var row = gridView1.GetDataRow(gridView1.FocusedRowHandle);

            return(row == null ? null : LemHeader.GetLogHeader(row.GetValue <int>(colId)));
        }