commit
						1fcb053d99
					
				@ -47,26 +47,37 @@ namespace OWTrack
 | 
				
			|||||||
                
 | 
					                
 | 
				
			||||||
        private void checkStatus()
 | 
					        private void checkStatus()
 | 
				
			||||||
        {                                              
 | 
					        {                                              
 | 
				
			||||||
 | 
					            Time.Text = DateTime.Now.ToString("h:mm tt");
 | 
				
			||||||
            try
 | 
					            try
 | 
				
			||||||
            {
 | 
					            {
 | 
				
			||||||
                Time.Text = DateTime.Now.ToString("h:mm tt");
 | 
					 | 
				
			||||||
                status.Text = NOT_RUNNING;
 | 
					 | 
				
			||||||
                status.ForeColor = Color.Red;
 | 
					 | 
				
			||||||
                if (tr.owRunning())
 | 
					                if (tr.owRunning())
 | 
				
			||||||
                {
 | 
					                {
 | 
				
			||||||
                    status.Text = IS_RUNNING;
 | 
					                    status.Text = IS_RUNNING;
 | 
				
			||||||
                    status.ForeColor = Color.FromArgb(0, 192, 0);
 | 
					                    status.ForeColor = Color.FromArgb(0, 192, 0);
 | 
				
			||||||
                }
 | 
					                }
 | 
				
			||||||
 | 
					                else
 | 
				
			||||||
 | 
					                {
 | 
				
			||||||
 | 
					                    status.Text = NOT_RUNNING;
 | 
				
			||||||
 | 
					                    status.ForeColor = Color.Black;
 | 
				
			||||||
 | 
					                }
 | 
				
			||||||
            }
 | 
					            }
 | 
				
			||||||
            catch (Exception e)
 | 
					            catch (Exception e)
 | 
				
			||||||
            {
 | 
					            {
 | 
				
			||||||
                MessageBox.Show(e.Message);                
 | 
					                status.Text = e.Message;
 | 
				
			||||||
 | 
					                status.ForeColor = Color.Red;
 | 
				
			||||||
            }
 | 
					            }
 | 
				
			||||||
        }
 | 
					        }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        private void loadSave()
 | 
					        private void loadSave()
 | 
				
			||||||
 | 
					        {
 | 
				
			||||||
 | 
					            try
 | 
				
			||||||
            {
 | 
					            {
 | 
				
			||||||
                Directory.CreateDirectory("saves");
 | 
					                Directory.CreateDirectory("saves");
 | 
				
			||||||
 | 
					            }
 | 
				
			||||||
 | 
					            catch (Exception e)
 | 
				
			||||||
 | 
					            {
 | 
				
			||||||
 | 
					                MessageBox.Show("Can not create save directory.\n" + e.Message);
 | 
				
			||||||
 | 
					            }
 | 
				
			||||||
            if (saveManeger.saveExist())
 | 
					            if (saveManeger.saveExist())
 | 
				
			||||||
            {
 | 
					            {
 | 
				
			||||||
                try
 | 
					                try
 | 
				
			||||||
@ -112,7 +123,7 @@ namespace OWTrack
 | 
				
			|||||||
            if (result == DialogResult.OK)
 | 
					            if (result == DialogResult.OK)
 | 
				
			||||||
            {
 | 
					            {
 | 
				
			||||||
                //tr.gamePath = openFileDialog1.FileName;
 | 
					                //tr.gamePath = openFileDialog1.FileName;
 | 
				
			||||||
                MessageBox.Show("Saved Overwatch.exe location.\nPress Clear to rest\n" + openFileDialog1.FileName );
 | 
					                MessageBox.Show("Saved Overwatch.exe location.\nPress Clear to rest");
 | 
				
			||||||
                return openFileDialog1.FileName;
 | 
					                return openFileDialog1.FileName;
 | 
				
			||||||
            }
 | 
					            }
 | 
				
			||||||
            else 
 | 
					            else 
 | 
				
			||||||
 | 
				
			|||||||
@ -53,7 +53,7 @@ namespace OWTrack
 | 
				
			|||||||
            }
 | 
					            }
 | 
				
			||||||
            catch (Exception)
 | 
					            catch (Exception)
 | 
				
			||||||
            {
 | 
					            {
 | 
				
			||||||
                Exception ex = new Exception("Error in tracking Overwatch.exe");
 | 
					                Exception ex = new Exception("Error");
 | 
				
			||||||
                throw ex;
 | 
					                throw ex;
 | 
				
			||||||
            }
 | 
					            }
 | 
				
			||||||
        }
 | 
					        }
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
		Reference in New Issue
	
	Block a user