private void mnuWaveOptions_Click(object sender, System.EventArgs e)
		{
			if(waveOptionsForm == null || waveOptionsForm.IsDisposed)
				waveOptionsForm = new WaveOptions();

			waveOptionsForm.Show();
			waveOptionsForm.Focus();
		}
		public WaveControl(Console c)
		{            
			InitializeComponent();
            console = c;
            openFileDialog1.InitialDirectory = console.AppDataPath;
			
			file_list = new ArrayList();
			currently_playing = -1;
			waveOptionsForm = new WaveOptions();
			this.ActiveControl = btnAdd;
			Common.RestoreForm(this, "WaveOptions", false);
		}
Beispiel #3
0
		public WaveControl(Console c)
		{
            this.AutoScaleMode = AutoScaleMode.Inherit;
            InitializeComponent();
            float dpi = this.CreateGraphics().DpiX;
            float ratio = dpi / 96.0f;
            string font_name = this.Font.Name;
            float size = (float)(8.25 / ratio);
            System.Drawing.Font new_font = new System.Drawing.Font(font_name, size);
            this.Font = new_font;
            this.PerformAutoScale();
            this.PerformLayout();

			console = c;
			file_list = new ArrayList();
			currently_playing = -1;
			waveOptionsForm = new WaveOptions();
			this.ActiveControl = btnAdd;
			RestoreSettings();
		}
Beispiel #4
0
		public WaveControl(Console c)
		{            
			InitializeComponent();
            console = c;

            if (!Directory.Exists(wave_folder))
            {
                // create PowerSDR audio folder if it does not exist
                Directory.CreateDirectory(wave_folder);
            }
            // openFileDialog1.InitialDirectory = console.AppDataPath;
            openFileDialog1.InitialDirectory = String.Empty;
            openFileDialog1.InitialDirectory = wave_folder;
			
			file_list = new ArrayList();
			currently_playing = -1;
			waveOptionsForm = new WaveOptions();
			this.ActiveControl = btnAdd;
			Common.RestoreForm(this, "WaveOptions", false);
		}
Beispiel #5
0
 public WaveControl(Console c)
 {
     InitializeComponent();
     console = c;
     file_list = new ArrayList();
     currently_playing = -1;
     waveOptionsForm = new WaveOptions();
     this.ActiveControl = btnAdd;
     Common.RestoreForm(this, "WaveOptions", false);
 }