Beispiel #1
0
        private void InitializeCaptureProperties()
        {
            properties = CapturePropertiesUtils.CreateDefaultCaptureProperties();
            if (!String.IsNullOrEmpty(filename))
            {
                LoadProperties(filename);
            }

            UpdateTitle();
        }
Beispiel #2
0
        private void SaveProperties()
        {
            try
            {
                CapturePropertiesUtils.SaveCaptureProperties(filename, properties);

                modified = false;
            }
            catch (Exception ex)
            {
                MessageBox.Show("Save failed: " + ex.Message);
            }
        }
Beispiel #3
0
        private void LoadProperties(string filename)
        {
            try
            {
                properties = CapturePropertiesUtils.LoadCaptureProperties(filename);

                this.filename = filename;
                modified      = false;
            }
            catch (Exception ex)
            {
                MessageBox.Show("Load failed: " + ex.Message);
            }
        }
Beispiel #4
0
        private void newSpectrogramToolStripMenuItem_Click(object sender, EventArgs e)
        {
            if (!EnsureNotBusy())
            {
                return;
            }

            properties = CapturePropertiesUtils.CreateDefaultCaptureProperties();
            EditProperties();

            modified = true;
            filename = null;

            UpdateTitle();
        }