private void OpenSourceDialog_Click(object sender, EventArgs e) { var result = SourceDialog.ShowDialog(); if (result == DialogResult.OK) { CopySource.Text = SourceDialog.SelectedPath; } }
private void OnButtonCodeTextClick(Object sender, EventArgs args) { SourceDialog dialog = new SourceDialog(this.source, (SourceType)this.cmbSourceType.SelectedItem); if (dialog.ShowDialog(this) == DialogResult.OK) { this.source = dialog.Source; this.cmbSourceType.SelectedItem = dialog.Type; } this.txtFilename.Enabled = !this.IsValidSource; this.tbbPlay.Enabled = this.IsValidFilename || this.IsValidSource; }
public static void AddSource(RichText r) { if (r == null) { return; } var dlg = new SourceDialog(); dlg.ShowDialog(); if (dlg.Source == null) { return; } DaoUtils.AddSource(dlg.Source, r); }