tcsoccerman Posted May 23, 2007 Report Posted May 23, 2007 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
Samapico Posted May 24, 2007 Report Posted May 24, 2007 might take a look to give you a few hints when i get some time
»D1st0rt Posted May 24, 2007 Report Posted May 24, 2007 If you say "no" to wanting to continue, it still tells you "forgot to pick home or away"
tcsoccerman Posted May 24, 2007 Author Report Posted May 24, 2007 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.
Samapico Posted May 24, 2007 Report Posted May 24, 2007 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 needI 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...
»doc flabby Posted May 25, 2007 Report Posted May 25, 2007 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 needI 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){ }
tcsoccerman Posted May 26, 2007 Author Report Posted May 26, 2007 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.zipTeam_Tracker_5_24_07_Source.zip
tcsoccerman Posted May 27, 2007 Author Report Posted May 27, 2007 It just keeps records of wins/losses/goals/ etc.. . I'm only to team bases stuff, nowi have to work on player records. Just dl it for a quick explanation.
tcsoccerman Posted May 28, 2007 Author Report Posted May 28, 2007 Just to see how things go, try opening this file. it's my weekend tourny "file".my_weekend_tournament_games.zip
rootbear75 Posted May 28, 2007 Report Posted May 28, 2007 (edited) take a while to download the file... 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 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 May 28, 2007 by rootbear75
tcsoccerman Posted May 28, 2007 Author Report Posted May 28, 2007 1. so you got it to work??1. it's supposed to be inches...my bad.2. don't ask me3. 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. )
Hakaku Posted May 28, 2007 Report Posted May 28, 2007 (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 May 28, 2007 by Hakaku
tcsoccerman Posted May 28, 2007 Author Report Posted May 28, 2007 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.
rootbear75 Posted June 5, 2007 Report Posted June 5, 2007 BUMP! hey, i got the .tm file extension listed on the file extension look-up website. http://filext.com/file-extension/tm(scroll to the bottom)
rootbear75 Posted June 5, 2007 Report Posted June 5, 2007 and apparently the .skn extension for the menu skins wasnt up there, so i added that too.. should be on today or tomorrow
tcsoccerman Posted June 6, 2007 Author Report Posted June 6, 2007 nice. appreciate it. in the meantime i'm making a new version that has a different design.
tcsoccerman Posted June 7, 2007 Author Report Posted June 7, 2007 Ok, here is my new program. It has about all of the featres of the old one, but i personally like the setup better. let me know if you do too. lots of things don't work, and haven't been tested.teamtracker__2_.zip
»Purge Posted February 1, 2008 Report Posted February 1, 2008 don't you just love looking back at old projects?
Cancer+ Posted February 1, 2008 Report Posted February 1, 2008 You have to start somewhere. Better to start somewhere than nowhere. It was good back then and it is better now.
Recommended Posts