Jump to content
SubSpace Forum Network

Recommended Posts

Posted

Here is my "Team Tracker" Version 1.0 . It supporsts:

*Team name, city, coach, !@#$%^&*istant coach.

*Home Record, Away Record, And Home Record.

 

I realize there is a glitch inthe homewins/overall wins. For some reason it can turn out 1 too many overall wins for what homewins+awaywins equals. Any suggestions are great, especially design

 

Edit: also, only the toolbar buttons work, (save, open, new). Clicking on the player will give a window, but nothing is implemented yet.

Team_Tracker_Version_1.0.zip

Posted
Yes, thank you D1, when it asks if you would like to continue recording a game, that doesn't work. I'm still working on recgonizing the Yes and No button clicks. I am already farther, but won't realease yet.
Posted

for the yes and no thing... basically, the Messagebox.Show() method returns a value, you just have to handle that value. Search MSDN and it will give you the info you need

I never had to do this in C# yet, but it would look like:

MessageBoxResult result = MessageBox.Show("Message", ... );

if (result == MessageBoxResult.Yes)

{

}

 

something like that...

Posted
for the yes and no thing... basically, the Messagebox.Show() method returns a value, you just have to handle that value. Search MSDN and it will give you the info you need

I never had to do this in C# yet, but it would look like:

MessageBoxResult result = MessageBox.Show("Message", ... );

if (result == MessageBoxResult.Yes)

{

 

}

 

something like that...

 

DialogResult result = MessageBox.Show("Message", "!@#$%^&*l", ... );

if (result == DialogResult.Yes)

{

 

}

Posted

If you were to call say...the "Savefile" function:

 

void SaveFileDialog1FileOk(object sender, System.ComponentModel.CancelEventArgs e)
	{
		string players = Convert.ToString(playerlist.Items);
		Stream savestream = saveFileDialog1.OpenFile();
		StreamWriter savewriter = new StreamWriter(savestream);
		savewriter.WriteLine(lblteamname.Text);// TeamName
		savewriter.WriteLine(teamnotes.Text);//Team Notes
		savewriter.WriteLine(lblteamcity.Text);// Teamcity
		savewriter.WriteLine(lblheadcoach.Text);// headcoach
		
		savewriter.WriteLine(lblhw.Text);// Team hw
		savewriter.WriteLine(lblht.Text);// team ht
		savewriter.WriteLine(lblhl.Text);// home loss
		savewriter.WriteLine(lblaw.Text);// away win
		savewriter.WriteLine(lblat.Text);// away tie
		savewriter.WriteLine(lblal.Text);// away loss
		savewriter.WriteLine(lblow.Text);// overall wins
		savewriter.WriteLine(lblot.Text);// overall ties
		savewriter.WriteLine(lblol.Text);// overall losses
		savewriter.WriteLine(players);//playerlist
		
		savewriter.Close();

What would you put in the paramaters....I am quite confused by that. Also, i have a new reply in "c# dev. forum", which i will reply here:

 

could someone give an example of child/parent forms using...

 

MainForm()//mainform

AddTeam() //this is the child form

 

 

and there is a variable in AddTeam() (this is the child form)called "teamnametxtbox.Text" that i want to p!@#$%^&* to the mainform(MainForm) and make it = "lblteamname.Text". That would be pimpin. Sampapico rocks. Oh, btw, i attached the program in topic "Team Tracker Program, version 1.0". I learned how to save . a biggie is not having a new form opening when the variables change, but just replacing the variables. I will attach the source and program here (it's slightly updated from the one in "leage manager" post). Thank you much.

 

thank you very much, also, a new version of team tracker and the source is attached...

Team_Tacker_v.1.1.zip

Team_Tracker_5_24_07_Source.zip

Posted (edited)

take a while to download the file...

 

longtime.JPG

 

sits like this for about 2 minutes

 

what did you program this in?

 

Few questions.

1) Why does the default height in the Player Edit box start at 50 ft? that has to be one giant player blum.gif

2) and same thing with weight? 50 lbs? what? you have the tallest beanpole in the world on your team?

3) What sport is this for? soccer? baseball? football? gravball? if you haven't read the halo books, you wont get it

Edited by rootbear75
Posted

1. so you got it to work??

1. it's supposed to be inches...my bad.

2. don't ask me

3. it's for low scoring games like soccer hockey. ffootball probably wouldn't be greatest(have to press ^ goal arrow alot to get up to 20s/30s. )

Posted (edited)

Opponet

 

-Adding a new player opens a new window.

-menu does nothing

-using 'tab' is seriously messed up somehow

-doesn't display goals afterwards

Edited by Hakaku
Posted
I can fix the tab, it's just not on top of my list since all the windows may be switched around(basically the current "addteam" and "addplayer" things are temporary.). I realize menu does nothing, i'm trying to figure out something right now on how to do something..that would let me add menu funcionality alot easier. The new window problem is related to all other mentioned above. I can easily fix goal problem and will release a new version soon w/ that fixed. Ty for testing it out.
  • 2 weeks later...
  • 7 months later...
Guest
This topic is now closed to further replies.
×
×
  • Create New...