Ejemplo n.º 1
0
        private void OpenSourceDialog_Click(object sender, EventArgs e)
        {
            var result = SourceDialog.ShowDialog();

            if (result == DialogResult.OK)
            {
                CopySource.Text = SourceDialog.SelectedPath;
            }
        }
Ejemplo n.º 2
0
        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;
        }
Ejemplo n.º 3
0
        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);
        }