/////////////////////////////////////////////////////////////////////////////// // Methods and Eventhandling for Background tasks // /////////////////////////////////////////////////////////////////////////////// /////////////////////////////////////////////////////////////////////////////// // Methods for doing main class job // /////////////////////////////////////////////////////////////////////////////// /// <summary> /// The window_ closing. /// </summary> /// <param name="sender"> /// The sender. /// </param> /// <param name="e"> /// The e. /// </param> private void Window_Closing(object sender, CancelEventArgs e) { if (this.liveVideoController != null) { this.liveVideoController.Dispose(); this.liveVideoController = null; } }
/////////////////////////////////////////////////////////////////////////////// // Construction and Initializing methods // /////////////////////////////////////////////////////////////////////////////// #region Constructors and Destructors /// <summary> /// Initializes a new instance of the SaveVideoDialog class. /// </summary> public SaveVideoDialog() { this.InitializeComponent(); this.InitializeDeviceCombo(); this.folderBrowserDialog = new FolderBrowserDialog(); this.folderBrowserDialog.Description = Labels.VideoSaveFolderBrowserDescriptionTitle; this.folderBrowserDialog.ShowNewFolderButton = true; this.folderBrowserDialog.RootFolder = Environment.SpecialFolder.MyDocuments; this.FolderTextBox.Text = Environment.GetFolderPath(Environment.SpecialFolder.MyDocuments); this.FileNameTextBox.Text = "Video"; this.liveVideoController = new LiveVideoController(); }