|
Do i have to write all my attributes in a class diagram or can i write only the most important if i have very many attributes, and for methods the same question can i leave the less importants out from the class diagram?
thx! The problem is that this is for diploma, thats why i must know exactly!
-- modified at 20:07 Sunday 11th June, 2006
|
|
|
|
|
AFAIK there is no rule for this. Its a tradeoff between completeness and readibility that cannot be generalized. Furthermore its quite subjective which methods or attributes are less important. Somehow everything is important otherwise it could be left out I suggest you ask your professor to get a binding answer.
"Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far, the Universe is winning." - Rick Cook
www.troschuetz.de
|
|
|
|
|
┳┳┳┳┳┳┳┳
just do best
|
|
|
|
|
I am not aware of any one GDI/GDI+ call that can draw your special "line", but it should be fairly easy to write a routine (or class) for that purpose.
- It's easier to make than to correct a mistake.
|
|
|
|
|
try to use following codes on
form's paint event
int lft=180,rft=0;
//Bitmap bmp = new Bitmap(this.Width,this.Height);
Graphics g = this.CreateGraphics(); ;
Pen p = new Pen(Color.Black,2.5f );
for(int it=0;it < 8;it++)
{
rft=(lft+lft+20)/2;
g.DrawLine(p,new Point(lft,20),new Point(lft+20,20));
g.DrawLine(p,new Point(rft,20),new Point(rft,30));
lft=lft+20;
}
rahul
-- modified at 1:37 Monday 12th June, 2006
|
|
|
|
|
I have the following code in C++ that I'm trying to convert to C#.
C++ code:
typedef struct { unsigned no ; } IQHANDL ;
typedef IQHANDL * PIQHANDL ;
#define IQNDXTAIL ((PIQHANDL)(-2))
int IQAtInsert ( PIQHANDL coll, PIQHANDL elem, PIQHANDL ndx ) ;
myData[linenum].rc = IQAtInsert(myData[linenum].pInputString,
&myData[linenum].hWorkvar, IQNDXTAIL);
==================================================================
C# code:
[DllImport("iqappmgr.DLL", EntryPoint="IQAtInsert")]
public static extern int IQAtInsert (ref IQHANDL a,
ref IQHANDL b,
ref IQHANDL c);
//
// Define the IQHANDL structure
//
[ StructLayout(LayoutKind.Sequential) ]
public struct IQHANDL
{
public uint no;
}
IQHANDL IQNDXTAIL = new IQHANDL();
rc = IQAtInsert(ref inString, ref myString, ref IQNDXTAIL );
==================================================================
As you can see, I'm not really passing the -2 in C# correctly like we
do in C++. Can anyone help me define it correctly in C#?
Thanks!
Bill Richards
|
|
|
|
|
I have used Clickonce publishing from Visual Studio, but is it possible to publish an application using a command line tool? I need to script the publishing task in order to automate the deployment of new releases.
Thanks
Raffi
|
|
|
|
|
msbuild /t=Publish project.sln I think
|
|
|
|
|
|
I have to write a method named
GetAttributes("keyh%", object type)
in this the (object type) should be such that
setobjecttype("codeservices", "subservices")
Actually I have to search the keywords starting with "keyh" along with that i have to provide the objecttype as codeservices or subservices or i can provide both so that the keywords starting with "keyh" can be in codeservices objecttype or subservices objecttype or can be in both ....
I can provide the objecttype as codeservices & subservices & search in both or i can provide only one objecttype ..... & search the keyword in that
or both the objecttypes can be null and the keyword can be searched only based on keyh% it depends upon the client who uses it he can search the keyword based on like keyh% which gives all the keywords starting with keyh% irrespective of the objectype or he can give only one objecttype as coreservices and search the keyh% in the coreservices objectype or he can give both the coreservices & subservices as objectype and search the keyword starting with keyh% in both the objecttype it depends on the clients wish who enter it
How to do this can anyone help me..........
Thanking you in anticipation
I hope i have explained clearly about my query incase u cant understand pls mail me.... ASAP
Regards
Aruna
-- modified at 15:13 Sunday 11th June, 2006
|
|
|
|
|
Please use punctuation. If the sentences you write can be distinguished from each other, someone might understand what you are trying to say.
I could make out that you are trying to make some sort of search. What is it you are searching?
---
b { font-weight: normal; }
|
|
|
|
|
Ya you are correct am doing a search....
Let me be more clear to you...
I should have a method in which the client raise a query to search an attribute like "keyp%" which displays all the keywords from my database starting with 'keyp'
The tree view of mine will be just like this
Coreservices (root)
Subservices1 subservices2
(immediate children of the root)
careactivities1 careactivities2
(immediate child of (immediate child of
the subservices1 ) the subservices2)
The root ,the immediate children of the root and the immediate children of the subservices has some attributes each..
The client has to get the attributes starting with something for example like he wants to search an attribute starting with "keyp%"
& also the client can give (keyp%, Coreservices,Subservices1) which means that the attribute starting with keyp must be in the careActivities1 under the Subservices1
else the client can give only (keyp%, CoreServices) which means that the attribute starting with keyp must be in any of the careactivites under the coreservices root
else the client can give only (Coreservices , Subservices) which means that all the attributes under the specified subservices 's careactivities will be displayed.
Like this the client can give his own input of passing one or more inputs at runtime (its the wish of the client he can pass one, two or three inputs at runtime) & search for the attribute in the treeview...
I hope so that am clear now if not pls let me know i will try to make it more obvious...
Thanking you in anticipation
Hint:: I hope so that whether it can be done by dynamic query else using if statement in SQL but am not so clear on how to do these and also am more particular in performance issues...
Regards
Aruna Gopalakrishnan
-- modified at 6:10 Sunday 18th June, 2006
|
|
|
|
|
how can i make a button like O circle
MD_NADA
|
|
|
|
|
|
A foreach loop uses an enumerator. If you change the collection, the enumerator is invalidated, so you can't change the collection while you are looping it.
---
b { font-weight: normal; }
|
|
|
|
|
But if i try changing it outside the loop, it wont recognize the 'table' in the:
foreach (DataTable table in xmlFile.Tables)
Line.
Can you make a suggestion to make this work?
|
|
|
|
|
Yustme wrote: But if i try changing it outside the loop, it wont recognize the 'table' in the:
foreach (DataTable table in xmlFile.Tables)
Line.
What do you mean? What does removing an item have to do with the loop if you do it outside the loop?
Why are you using a loop anyway? You are removing the same table regardless of what table you are referencing in the loop.
---
b { font-weight: normal; }
|
|
|
|
|
This is outside the loop:
foreach (DataTable table in xmlFile.Tables)
{
some code....
}
mydataset.remove(table) <-- table does not exist in the current context.
Because its outside the loop.
Im using a loop to iterate through all tables. I think i have to remove it by index.
The names are all the same anyway.
|
|
|
|
|
Use a for or while loop, or store the references to the tables to be removed in a list.
---
b { font-weight: normal; }
|
|
|
|
|
Hi All. I must write an windows app where i must be able to send a message to a pager,E-mail and an SMS to a cell phone. I managed to get the e-mail working, but not such luck with the SMS or sending a messgae to a pager. I am not getting much help with the help files. Is there anyone that can perhaps help me?
Thanks
|
|
|
|
|
You'll need to find a Telecoms company which lets you send SMS or pager messages. Some Telco's offer such a service via a WebService, whilst others rely on other means.
Google hard enough, and you might find a free WebService, if not... be prepared to pay $$$$ for the privilige.
|
|
|
|
|
Hey...
I'm looking for an image comparison algorithm.
I have two same-sized images which I would like to compare, where speed is of the essence.
I have tried google, and articles in codeproject, but not much success...
Can anyone link me to an article, or a website where I can start learning?
Thanks,
Shy.
|
|
|
|
|
What kind of comparison? Exact? Then simple pixel by pixel comparison will do. Have a look at this[^] article series to find out how to do this fast.
|
|
|
|
|
Well... I'm looking for a quick way to compare two images.
I'm comparing the last screen capture to the current capture, in order to check for changes.
I guess it's kind'a like motion detection.
Robert Rohde wrote: Have a look at this[^] article series to find out how to do this fast.
I already read this article series... Well... Most of it
I also came across this[^]article showing how to detect motion, but the source code archive was corrupted, and he uses an AForge class which I couldn't figure what is doing, or where to find it.
Help...?
|
|
|
|
|
int var = 0;
int one = 1;
int six = 6;
hurt =+ one;
if (var = six)
label1.Text = "text..";
I am kinda new to this...
I want to make it so when you click on a button, var increses in value and when it finally reaches 6, to close the program. I know what I have is no where close to 'right' or even the easiest way, it's just easier for me to understand.
Thanks
Hengy
I like Pie
|
|
|
|