attempt 1 (add Brakpoints)
This commit is contained in:
		
							parent
							
								
									cab6bfd573
								
							
						
					
					
						commit
						d152a05e48
					
				@ -4,6 +4,7 @@ using System.Windows.Forms;
 | 
				
			|||||||
using Newtonsoft.Json;
 | 
					using Newtonsoft.Json;
 | 
				
			||||||
using System.IO;
 | 
					using System.IO;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
namespace OWTrack
 | 
					namespace OWTrack
 | 
				
			||||||
{
 | 
					{
 | 
				
			||||||
    public partial class Form1 : Form
 | 
					    public partial class Form1 : Form
 | 
				
			||||||
@ -20,7 +21,8 @@ namespace OWTrack
 | 
				
			|||||||
            checkStatus();
 | 
					            checkStatus();
 | 
				
			||||||
            update();
 | 
					            update();
 | 
				
			||||||
            label4.Text = Program.Version.ToString();
 | 
					            label4.Text = Program.Version.ToString();
 | 
				
			||||||
            Text = "OWTrack " + Program.Version.ToString();           
 | 
					            Text = "OWTrack " + Program.Version.ToString();
 | 
				
			||||||
 | 
					           
 | 
				
			||||||
        }
 | 
					        }
 | 
				
			||||||
                
 | 
					                
 | 
				
			||||||
        private void checkStatus()
 | 
					        private void checkStatus()
 | 
				
			||||||
@ -72,9 +74,9 @@ namespace OWTrack
 | 
				
			|||||||
                        else
 | 
					                        else
 | 
				
			||||||
                        {
 | 
					                        {
 | 
				
			||||||
                            if (!tr.LoacteOW())
 | 
					                            if (!tr.LoacteOW())
 | 
				
			||||||
                            {
 | 
					                            {                                
 | 
				
			||||||
                                getGamePath();
 | 
					 | 
				
			||||||
                                st.Close();
 | 
					                                st.Close();
 | 
				
			||||||
 | 
					                                getGamePath();
 | 
				
			||||||
                            }
 | 
					                            }
 | 
				
			||||||
                            return true;
 | 
					                            return true;
 | 
				
			||||||
                        }
 | 
					                        }
 | 
				
			||||||
@ -104,11 +106,17 @@ namespace OWTrack
 | 
				
			|||||||
            openFileDialog1.CheckFileExists = true;
 | 
					            openFileDialog1.CheckFileExists = true;
 | 
				
			||||||
            openFileDialog1.CheckPathExists = true;
 | 
					            openFileDialog1.CheckPathExists = true;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
            if (openFileDialog1.ShowDialog() == DialogResult.OK)
 | 
					            DialogResult result = openFileDialog1.ShowDialog();
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					            if (result == DialogResult.OK)
 | 
				
			||||||
            {
 | 
					            {
 | 
				
			||||||
                tr.gamePath = openFileDialog1.FileName;
 | 
					                tr.gamePath = openFileDialog1.FileName;
 | 
				
			||||||
                update();
 | 
					 | 
				
			||||||
            }
 | 
					            }
 | 
				
			||||||
 | 
					            else if (result == DialogResult.Cancel)
 | 
				
			||||||
 | 
					            {
 | 
				
			||||||
 | 
					                Close();
 | 
				
			||||||
 | 
					            }
 | 
				
			||||||
 | 
					            update();
 | 
				
			||||||
        }
 | 
					        }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        private Tracker savedTracker()
 | 
					        private Tracker savedTracker()
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
		Reference in New Issue
	
	Block a user