public override void OnClick(AddinEventArgs e)
        {
            try
            {
                TableBuilderDialog dialog = new TableBuilderDialog();
                TableBuilderParms  parms  = new TableBuilderParms();

                dialog.SetParameters(parms);
                dialog.Show();
            }
            catch (Exception ex)
            {
                CoreUtility.HandleExceptionWithErrorMessage(ex);
            }
        }
        public override void OnClick(AddinDesignerEventArgs e)
        {
            try
            {
                if (e.SelectedElement is EdtBase)
                {
                    var form = (EdtBase)e.SelectedElement;

                    TableBuilderDialog dialog = new TableBuilderDialog();
                    TableBuilderParms  parms  = new TableBuilderParms();
                    parms.PrimaryKeyEdtName = form.Name;

                    dialog.SetParameters(parms);
                    DialogResult formRes = dialog.ShowDialog();
                }
            }
            catch (Exception ex)
            {
                CoreUtility.HandleExceptionWithErrorMessage(ex);
            }
        }
Exemple #3
0
 public void SetParameters(TableBuilderParms parms)
 {
     _parms = parms;
     tableBuilderParmsBindingSource.Add(parms);
 }