diff --git a/MainWindow.xaml.cs b/MainWindow.xaml.cs index 4a935fe..acf90d5 100644 --- a/MainWindow.xaml.cs +++ b/MainWindow.xaml.cs @@ -28,19 +28,6 @@ namespace VideoConcat private void BtnLogin_Click(object sender, RoutedEventArgs e) { - - if (txtUserName.Text == "admin" && txtPassword.Password == "&o4Fwag3xYUf") - { - Video video = new(); - video.Show(); - - this.Close(); - return; - } - - MessageBox.Show("用户名或者密码错误!"); - txtUserName.Clear(); - txtPassword.Clear(); } } } diff --git a/Task.cs b/Task.cs deleted file mode 100644 index a3b0f17..0000000 --- a/Task.cs +++ /dev/null @@ -1,35 +0,0 @@ -using System; -using System.Collections.Generic; -using System.Linq; -using System.Text; -using System.Threading.Tasks; -using System.Windows; - -namespace VideoConcat -{ - - public static class ProcessVideo - { - public static void RunTask(System.Windows.Controls.ProgressBar progressBar, System.Windows.Controls.Button btn) - { - for (int i = 0; i <= 100; i++) - { - Application.Current.Dispatcher.Invoke(() => - { - progressBar.Dispatcher.Invoke(() => - { - progressBar.Value = i; - - }); - }); - System.Threading.Thread.Sleep(50); - } - btn.Dispatcher.Invoke(() => - { - btn.IsEnabled = true; - }); - - } - } - -} diff --git a/Video.xaml b/Video.xaml deleted file mode 100644 index 12155af..0000000 --- a/Video.xaml +++ /dev/null @@ -1,37 +0,0 @@ - - - - - - - - - - - - - - - - - - - -