Tools creating

Tools for osRose and osiRose will be placed in here, as well as Rose file formats.

Please PM rl2171 or lmame to get them added to the list.

Moderators: osRose dev team, ospRose dev team, osiRose dev team, Moderators

Tools creating

Postby Dagnarus on Mon Dec 19, 2011 5:03 pm

Hee All,
My first Topic :D.
Oh I hoped that my first here would be a fix or an Release, but it isn't :cry: .
I am creating an editor and I wanted to ask a question. I took the EFT File Format data from here http://enzeru-ro.com/rose/?fid=3&t=2. I copied it and now my question:
How can I know how to load it properly. I know there is an Load function in it, but how do I know in which items it should be loaded.
Like STB/STL/LTB goes into a datagridview:
  1. this.dataGridView1.SuspendLayout();
  2.  
  3.                 STBData.LoadSTBDataKorea(ref m_STBData, this.openFileDialogSTB.FileName);
  4.                 m_strFileName = this.openFileDialogSTB.FileName;
  5.                
  6.                 this.dataGridView1.DataSource = m_STBData.DataTable;
  7.  
  8.                 for (int l_iIndex = 0; l_iIndex < m_STBData.ColumnsWidth.Length; l_iIndex++)
  9.                     this.dataGridView1.Columns[l_iIndex].Width = m_STBData.ColumnsWidth[l_iIndex];
  10.  
  11.                 for (int l_iIndex = 0; l_iIndex < m_STBData.ColumnsHeaderText.Length; l_iIndex++)
  12.                     this.dataGridView1.Columns[l_iIndex].HeaderText = m_STBData.ColumnsHeaderText[l_iIndex];
  13.  
  14.                 string l_strStructName = m_STBData.StructName == string.Empty ? "NULL" : m_STBData.StructName;
  15.  
  16.  
  17.                 this.dataGridView1.ResumeLayout();

But what to do with the EFT data. And How can I know that?
Image


aka larsgevers
Dagnarus
Smoulie
Smoulie
 
Posts: 51
Joined: Sun Nov 20, 2011 2:29 pm

Re: Tools creating

Postby Arnold on Mon Dec 19, 2011 8:44 pm

maybe you can put it in a tree view?
Arnold
osiRose dev
osiRose dev
 
Posts: 340
Joined: Sun Sep 09, 2007 8:50 pm
Location: pebkac

Re: Tools creating

Postby Dagnarus on Mon Dec 19, 2011 10:28 pm

Thank you for you reply,
But how would I know? Is there no way to find out?
Image


aka larsgevers
Dagnarus
Smoulie
Smoulie
 
Posts: 51
Joined: Sun Nov 20, 2011 2:29 pm

Re: Tools creating

Postby Raven0123 on Tue Dec 20, 2011 11:48 pm

Dagnarus wrote:Thank you for you reply,
But how would I know? Is there no way to find out?


What exactly is your question?
User avatar
Raven0123
osiRose dev
osiRose dev
 
Posts: 379
Joined: Tue Sep 11, 2007 11:06 pm
Location: USA, NJ

Re: Tools creating

Postby Dagnarus on Wed Dec 21, 2011 3:03 pm

When you were creating a tool for the first time,
How did you know what tools to load the information in (like a datagrid or a treeview or a listview)?
Do you just guess and hope for the best or is there another way to figure it out?
Image


aka larsgevers
Dagnarus
Smoulie
Smoulie
 
Posts: 51
Joined: Sun Nov 20, 2011 2:29 pm

Re: Tools creating

Postby Arnold on Wed Dec 21, 2011 10:37 pm

you look at how the data is ordered, when its always the same amount of sub data for each root data its a data-grid, when the root data contains multiple sub-data and/or the sub-data it self has sub-data its better viewed in a tree-view(like a trunk with branches which have leaves).
Arnold
osiRose dev
osiRose dev
 
Posts: 340
Joined: Sun Sep 09, 2007 8:50 pm
Location: pebkac

Re: Tools creating

Postby Dagnarus on Thu Dec 22, 2011 1:53 pm

Oke Thanks I understand now.
I'll continue creating then :lol:
Image


aka larsgevers
Dagnarus
Smoulie
Smoulie
 
Posts: 51
Joined: Sun Nov 20, 2011 2:29 pm

Re: Tools creating

Postby Juan on Sat Jan 07, 2012 3:11 pm

you should use propertyGrid. The most powerfull tool for creating editors in C#.
User avatar
Juan
Rackie
Rackie
 
Posts: 219
Joined: Fri Oct 10, 2008 6:25 pm


Return to Tools and File Format

Who is online

Users browsing this forum: No registered users and 5 guests