473,671 Members | 2,252 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

are there UML diagrams for C# API?

Hi all,

I am having difficulties in understanding DataGrid,DataSe t,DataTable
etc classes that work to have DataGrid work.

I am looking for UML diagram that depicts relations between those
classes. I don't want to read tons of text written but MSDN or anybody
else. After all "picture is worth thousand words" was not coined by
dump people.

It would be very helpful if you can point me to some url that has UML
diagrams for C# API. Again, the MS typical diagrams like MFC won't help
much I guess here, UML would be able clear more things...

Regards,
Maulin

Nov 16 '05 #1
5 4047
What? Nobody knows if there is UML or any kind of diagrams available
for C# api?

That would be too bad :(

I ask for diagram because after being used to Java API I find C# API
documentation just worthless. Don't they know english?

Regards,
Maulin
Maulin Vasavada wrote:
Hi all,

I am having difficulties in understanding DataGrid,DataSe t,DataTable
etc classes that work to have DataGrid work.

I am looking for UML diagram that depicts relations between those
classes. I don't want to read tons of text written but MSDN or anybody else. After all "picture is worth thousand words" was not coined by
dump people.

It would be very helpful if you can point me to some url that has UML
diagrams for C# API. Again, the MS typical diagrams like MFC won't help much I guess here, UML would be able clear more things...

Regards,
Maulin


Nov 16 '05 #2
I typed "C# UML diagram" into Google and came up with a bunch of hits.

As well, VS2005 is coming with a bunch of code refactoring and code
design features in it, including (correct me if I'm wrong), UML-to-C#
and C#-to-UML features.

When I moved from Java to C#, it too cost me time and a bit of
frustration getting my head around the MSDN documentation format. It's
now second nature to read the stuff and figure out how to do things.

The only thing I miss is knowing--for sure--which exceptions the
various methods and properties throw. :(

Nov 16 '05 #3
Hi Bruce,

Thanks for reply.

I did the search for C# UML as well before posting but that didn't give
links where I can find UML diagram for "c# api" you know. I am not
really looking for UML generation or design features in IDE, I am
looking for diagram of the system api itself :(

But I get what you are saying, it will take time to get used to this
MSDN stuff.

I will keep looking.

Now as we are on this thread, I would ask one more question, actually I
am trying to develop Windows Forms application (not Web.UI stuff), and
I wanted to put LinkLabel in the DataColumn of DataGrid but I am not
able to do so. I got this below link where the guy extended
DataGridColumnS tyle to have combobox but I can't figure out how to put
LinkLabel instead of combobox used there.
http://www.c-sharpcorner.com/winform...ataGridSKJ.asp

The issue with that example code is I have to setup too many things to
run it as its using Sql. I appreciate his sharing but I wish he would
have done it more simplistically to show an example rather than having
those sql things in there.

I copied his code and all and tried to understand by putting Enum
object in combobox but all in vein...though I now understand those
DataSet and all upto some extent. So at the end I decided to extend the
DataGridColumnS tyle to put LinkLabel and copied Paint method from his
code and have mixed things right now. Here is the code which is not
working, :)
namespace TestUIApplicati on
{
public class LinkColumn:Data GridColumnStyle
{
int xMargin = 5;
int yMargin = 5;

private LinkLabel linkLabel;

//
// Create a new column - DisplayMember, ValueMember passed by string
//
public LinkColumn(Link Label linkLabel)
{
this.linkLabel = linkLabel;
}

protected override void Abort(int RowNum)
{
MessageBox.Show (new Form(),"in Abort()");
}
protected override bool Commit(Currency Manager DataSource,int RowNum)
{
MessageBox.Show (new Form(),"in Commit()");
return true;
}
protected override void ConcedeFocus()
{
MessageBox.Show (new Form(),"in ConcedeFocus()" );
}
protected override void Edit(CurrencyMa nager Source ,int
Rownum,Rectangl e Bounds, bool ReadOnly,string InstantText, bool
CellIsVisible)
{
MessageBox.Show (new Form(),"in Edit()");
}
protected override int GetMinimumHeigh t()
{
return linkLabel.Prefe rredHeight + yMargin;
}
protected override int GetPreferredHei ght(Graphics g ,object Value)
{
System.Diagnost ics.Debug.Write Line("GetPrefer redHeight()");
return FontHeight+yMar gin;
}
protected override Size GetPreferredSiz e(Graphics g, object Value)
{
MessageBox.Show ("GetPreferredS ize():"+linkLab el.Text);
Size Extents = Size.Ceiling(g. MeasureString(l inkLabel.Text,
this.DataGridTa bleStyle.DataGr id.Font));
Extents.Width += xMargin * 2 + DataGridTableGr idLineWidth ;
Extents.Height += yMargin;
return Extents;
}
protected override void Paint(Graphics g,Rectangle
Bounds,Currency Manager Source,int RowNum)
{
Paint(g, Bounds, Source, RowNum, false);
}
protected override void Paint(Graphics g,Rectangle
Bounds,Currency Manager Source,int RowNum,bool AlignToRight)
{
string Text = linkLabel.Text;
PaintText(g, Bounds, Text, AlignToRight);
}

private void PaintText(Graph ics g ,Rectangle Bounds,string Text,bool
AlignToRight)
{
Brush BackBrush = new SolidBrush(this .DataGridTableS tyle.BackColor) ;
Brush ForeBrush= new SolidBrush(this .DataGridTableS tyle.ForeColor) ;
PaintText(g, Bounds, Text, BackBrush, ForeBrush, AlignToRight);
}
private void PaintText(Graph ics g , Rectangle TextBounds, string
Text, Brush BackBrush,Brush ForeBrush,bool AlignToRight)
{
System.Console. WriteLine("in paint");
Rectangle Rect = TextBounds;
RectangleF RectF = Rect;
StringFormat Format = new StringFormat();
if(AlignToRight )
{
Format.FormatFl ags = StringFormatFla gs.DirectionRig htToLeft;
}
switch(this.Ali gnment)
{
case HorizontalAlign ment.Left:
Format.Alignmen t = StringAlignment .Near;
break;
case HorizontalAlign ment.Right:
Format.Alignmen t = StringAlignment .Far;
break;
case HorizontalAlign ment.Center:
Format.Alignmen t = StringAlignment .Center;
break;
}
Format.FormatFl ags =Format.FormatF lags;
Format.FormatFl ags =StringFormatFl ags.NoWrap;
g.FillRectangle (BackBrush, Rect);
Rect.Offset(0, yMargin);
Rect.Height -= yMargin;
g.DrawString("m aulin", this.DataGridTa bleStyle.DataGr id.Font,
ForeBrush, RectF, Format);
Format.Dispose( );
}

private int DataGridTableGr idLineWidth
{
get
{
if(this.DataGri dTableStyle.Gri dLineStyle ==
DataGridLineSty le.Solid)
{
return 1;
}
else
{
return 0;
}
}
}
}
}
And here is the method that loads things,

private void Form1_Load(obje ct sender, System.EventArg s e)
{
listBox1.DataSo urce = this.coloursCol lection;

DataSet ds = new DataSet("Colour sSet");
DataTable dt = ds.Tables.Add(" ColoursTable");
dt.Columns.Add( "ColoursColumn" ,typeof(LinkLab el));

LinkLabel ll = new LinkLabel();
ll.Name = "maulin";
ll.Text ="Maulin";

DataRow dr = dt.NewRow();
dr["ColoursCol umn"] = ll;
dt.Rows.Add(dr) ;

GridTableStyle = new DataGridTableSt yle();
GridTableStyle. MappingName = "ColoursSet ";

GridTableStyle. GridColumnStyle s.Add(new LinkColumn(ll)) ;
GridTableStyle. GridColumnStyle s[0].MappingName =
"ColoursTab le";//EDIT ME
GridTableStyle. GridColumnStyle s[0].HeaderText = "test";
GridTableStyle. GridColumnStyle s[0].Alignment =
HorizontalAlign ment.Left;
GridTableStyle. GridColumnStyle s[0].Width = 700;
GridTableStyle. GridColumnStyle s[0].NullText = string.Empty;

dataGrid1.DataS ource = ds;
dataGrid1.DataM ember = "ColoursTab le";
dataGrid1.Table Styles.Add(Grid TableStyle);
}
Please ignore my table,column names and all , its all the code after
much playing around so far and names might not make sense...
Do you have any idea how to do this? If you wish I can repost this same
thing so it appears in people's search as it would be in appropriate
thread...otherw ise somebody might just go into abysmal I am in...:)
Thanks ton for helping.
Regards,
Maulin

Bruce Wood wrote:
I typed "C# UML diagram" into Google and came up with a bunch of hits.
As well, VS2005 is coming with a bunch of code refactoring and code
design features in it, including (correct me if I'm wrong), UML-to-C#
and C#-to-UML features.

When I moved from Java to C#, it too cost me time and a bit of
frustration getting my head around the MSDN documentation format. It's now second nature to read the stuff and figure out how to do things.

The only thing I miss is knowing--for sure--which exceptions the
various methods and properties throw. :(


Nov 16 '05 #4
Yes, you should probably repost with a new thread and a new title. I
haven't used DataGrid yet, so I don't really know how they work.
(However, judging from all of the posts they generate here, they're
either difficult, or popular, or both. :)

As well, since your question is specific to how to do something with a
DataGrid, you might want to post to
microsoft.publi c.dotnet.window sforms.

Nov 16 '05 #5
Thank you Bruce. In Bruce we believe :)

I posted on microsoft.publi c.dotnet.framew ork.windowsform s news group.
Lets where I get...

Regards,
Maulin

Nov 16 '05 #6

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
7323
by: sams | last post by:
Is there a flow draw tool/API in Java to map out a simple application flow? Tks Sam
2
4714
by: Irlan agous | last post by:
Hello all, I suppose many people use unl for modeling. Does anybody know a free good uml tool to make sequence diagrams, from the use cases? I have use cases described, but i need a tool that can put them into a sequence diagram Irlan
6
34137
by: Clay Beatty | last post by:
When you create database diagrams in Enterprise Manager, the details for constructing those diagrams is saved into the dtproperties table. This table includes an image field which contains most of the relevant infomation, in a binary format. SQL Enterprise manager offers no way to script out those diagrams, so I have created two Transact SQL components, one User Function and one User Procedure, which together provide a means to script...
14
798
by: santosh | last post by:
Hello all I want to know whether there is any greedy approach for job sequencing with variable job completion times.. if there is no greedy approach how to prove it...
2
2095
by: Someonekicked | last post by:
I know this might not be the right group to post this question, though I am looking for any help or redirection to the right group. Its a small program, and I have to model it using state diagrams. Two of the main funtions in the program are recursive. I searched online for any examples of how to model recursive funtions with state diagrams, I could not find any real examples. Does anybody know where I can get any examples of how to...
3
2478
by: Alberto | last post by:
I have the professional version of visual studio 2005 and I'd like to know if I can create associations between classes in the classes diagram. Thank you.
6
4698
by: Paul McGuire | last post by:
Back in the mid-90's, Kees Blom generated a set of railroad syntax diagrams for Python (http://python.project.cwi.nl/search/hypermail/python-1994q3/0286.html). This pre-dates any Python awareness on my part, but I'm sure this would have been version 1.3 or something. For those who are not familiar with railroad syntax diagrams, they show a grammar's syntax using arrows and blocks, instead of BNF - here's an excerpt from the Python...
0
4487
by: craig dunn | last post by:
I've used the code from the post for a while now... but recently upgraded to SQL Server 2005. I've written a new script for SQL Server 2005, which can be found at http://www.codeproject.com/useritems/ScriptDiagram2005.asp if anyone is looking to script out database diagrams... Thanks to the original poster - Clay Beatty - for his effort. URL: ...
4
2149
by: Ole Nielsby | last post by:
In the old ages when I was taught Pascal, the manual had nice syntax diagrams. Each grammatical structure was shown as round boxes connected by arrows, with a model railway look, with the boxes representing either lexical tokens or other diagrams (i.e. terminals/nonterminals). They seemed very intuitive because you could toot-toot one finger along the rails in the book while moving another finger over your code. Does anything similar...
0
8476
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8393
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
8917
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
8821
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
8670
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
6229
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5696
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4225
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
2812
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.