private void button1_Click(object sender, EventArgs e) { if (!File.Exists(Program.Localpath + "\\output.mp4")) { MessageBox.Show("File Not Available."); isclosedbycode = true; timerform timerform = new timerform(); timerform.Show(); this.Close(); return; } if (CheckForInternetConnection()) { btnUpload.Enabled = false; btnRecordAgain.Enabled = false; progressBar1.Show(); lblProgress.Show(); Thread thread = new Thread(UploadVideo); thread.Start(); } else { MessageBox.Show("Internet connection not detected try again."); Environment.Exit(1); } }
private void btnRecordAgain_Click(object sender, EventArgs e) { Program.IsRecordAgain = true; RecordVideo.IsRecordLoad = true; timerform form1 = new timerform(); form1.Show(); isclosedbycode = true; this.Close(); }