コード例 #1
0
        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);
            }
        }
コード例 #2
0
        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);
            }
        }