12
March

EPDM API: Data Helper Class

by Scoutn on 12. March 2010 16:53,
under Categories: EPDM

Since I have trouble remembering what the members are of the EdmCmdData structs I wrote a helper class. Instead of mlObjectID1, mlObjectID2, etc, I am presented with the corresponding data for the struct.

So instead of:

foreach (EdmCmdData cmdData in data)
{
    int fileId = cmdData.mlObjectID1;
    int parentFolderId = cmdData.mlObjectID3;
    IEdmFile5 file = (IEdmFile5)vault.GetObject(EdmObjectType.EdmObject_File, fileId);
}

I’m using this:

                EPDM.Utils.DataHelper helper = new EPDM.Utils.DataHelper();
                List<EPDM.Utils.EdmCmdMenu> files = helper.GetInfo<EPDM.Utils.EdmCmdMenu>(data, edmCmd);
                foreach (EPDM.Utils.EdmCmdMenu file in files)
                {                    
                    IEdmFile5 file = (IEdmFile5)vault.GetObject(EdmObjectType.EdmObject_File, file.FileID);
                }

I know it doesn’t look like much. Until you get to something that uses a large stuct;

snap

Enjoy.

EPDM.Utils.DataHelper.zip (204.30 kb)

Comments (1) Tags: more... Post RSS E-mail del.icio.us
04
March

Hi, My Name is Lee

by Scoutn on 4. March 2010 12:42,
under

And I am Canadian. I’d like to introduce you to a country where every voice, no matter how quiet or loud is heard. We take every complaint seriously. The customer (meaning you) is always right. We’re here to serve your needs and we never, ever, think of our own. We’ll roll over and show our bellies for anyone who barks.

(Unless of course it’s the majority. Here in Canada that is. If you’re a foreign majority, we’ll gladly roll over and show our deep fear of offending anyone.)

Case in point: A woman decides she not comfortable singing “In all thy son’s command” in our national anthem. (That would be the Canadian National Anthem for those of you that forgot what country you’re in.) So our government decides that it may need to be discussed, and maybe we should switch back to the original wording of “in thou dost us command”.

Here’s my take on it: GO FOR IT! Change it back to the 1909 lyric!

While you’re at it though:

  • Bring back the Lords prayer in the schools.
  • Christmas Trees
  • National Anthem in the morning too
  • Naps after recess (Working class)

Thank you for ruining the pride I felt. You had to bring political correctness into the only thing connecting Canadians during a period of recovery.

The ONLY connection I have to the east or west coast is the national anthem.

Comments (0) more... Post RSS E-mail del.icio.us