Click here to Skip to main content
15,897,291 members
Home / Discussions / C#
   

C#

 
AnswerRe: reading table from csv Pin
Pete O'Hanlon11-Sep-13 3:37
mvePete O'Hanlon11-Sep-13 3:37 
AnswerRe: reading table from csv Pin
Bernhard Hiller11-Sep-13 3:37
Bernhard Hiller11-Sep-13 3:37 
Questionworking out a triangle hypotenuse Pin
Member 1026649410-Sep-13 23:56
Member 1026649410-Sep-13 23:56 
AnswerRe: working out a triangle hypotenuse Pin
Anurag Sinha V11-Sep-13 0:12
Anurag Sinha V11-Sep-13 0:12 
GeneralRe: working out a triangle hypotenuse Pin
Member 1026649411-Sep-13 0:22
Member 1026649411-Sep-13 0:22 
GeneralRe: working out a triangle hypotenuse Pin
Anurag Sinha V11-Sep-13 0:39
Anurag Sinha V11-Sep-13 0:39 
AnswerRe: working out a triangle hypotenuse Pin
BillWoodruff12-Sep-13 16:33
professionalBillWoodruff12-Sep-13 16:33 
QuestionC# Pin
Member 1026649410-Sep-13 23:11
Member 1026649410-Sep-13 23:11 
I am new to C#. I am not sure whether I am approaching my classes in the right way. I want my main class to act as a stem that activates other classes that performs various tasks like retrieving information or writing to file or performing calculation. I am not sure how to interrelate the classes. I know that some classes have to be public etc.


I was thinking that this stem class would take on the form:


using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace ConsoleApplication1
{
    class Stem
    {
        static void Main(string[] args)
        {
            // retrieve file name from Main

            // activate 'Building' class (to generate array of coordinates)

            // retrieve array  containing coordinates
            
            //Like:
            //Id	X	Y
            //0	19	75
            //1	76	42
            //2	72	72



            // run through all IDed x,y coordinate combinations and fire off class that performs calculation, one coordinate combination at a time.  Results retrieved and held in array.

            // calls print class at end where output file is produced

        }
    }
}  



Firstly I want to know if I am approaching the problem in the right way.

Secondly I would like bits of code that would help me build this stem (if poss).

I would appreciate any help given.
AnswerRe: C# Pin
Pete O'Hanlon10-Sep-13 23:19
mvePete O'Hanlon10-Sep-13 23:19 
GeneralRe: C# Pin
Member 1026649411-Sep-13 0:27
Member 1026649411-Sep-13 0:27 
GeneralRe: C# Pin
Pete O'Hanlon11-Sep-13 1:38
mvePete O'Hanlon11-Sep-13 1:38 
GeneralRe: C# Pin
Member 1026649411-Sep-13 1:59
Member 1026649411-Sep-13 1:59 
GeneralRe: C# Pin
Pete O'Hanlon11-Sep-13 2:51
mvePete O'Hanlon11-Sep-13 2:51 
GeneralRe: C# Pin
Keith Barrow11-Sep-13 2:20
professionalKeith Barrow11-Sep-13 2:20 
GeneralRe: C# Pin
Member 1026649411-Sep-13 1:34
Member 1026649411-Sep-13 1:34 
QuestionlistViewNV_KeyPress function it does not run ? Pin
Member 245846710-Sep-13 22:51
Member 245846710-Sep-13 22:51 
AnswerRe: listViewNV_KeyPress function it does not run ? Pin
Richard MacCutchan10-Sep-13 23:04
mveRichard MacCutchan10-Sep-13 23:04 
Questionhow can I access to a DGV column contents? Pin
babak1410-Sep-13 20:59
babak1410-Sep-13 20:59 
AnswerRe: how can I access to a DGV column contents? Pin
OriginalGriff10-Sep-13 21:49
mveOriginalGriff10-Sep-13 21:49 
GeneralRe: how can I access to a DGV column contents? Pin
babak1410-Sep-13 22:47
babak1410-Sep-13 22:47 
GeneralRe: how can I access to a DGV column contents? Pin
OriginalGriff10-Sep-13 23:10
mveOriginalGriff10-Sep-13 23:10 
GeneralRe: how can I access to a DGV column contents? Pin
babak1411-Sep-13 1:29
babak1411-Sep-13 1:29 
GeneralRe: how can I access to a DGV column contents? Pin
OriginalGriff11-Sep-13 2:23
mveOriginalGriff11-Sep-13 2:23 
Questiondisplay loading processes on SplashScreen Pin
Jassim Rahma10-Sep-13 10:15
Jassim Rahma10-Sep-13 10:15 
AnswerRe: display loading processes on SplashScreen Pin
SledgeHammer0110-Sep-13 10:26
SledgeHammer0110-Sep-13 10:26 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.