private void Btn_Click(object sender, RoutedEventArgs e) { time = Watch.GetTime(); Watch.ClearVideo(); this.DialogResult = true; this.Close(); }