internal void PerformLinked(object sender, LinkedButtonEventArgs Event)
        {
            try
            {
                var linkedButtonItem = SboForm.Items.Item(strLindkedtem);
                var editTextItem     = SboForm.Items.Item(strTextItem);
                var editText         = editTextItem.Specific as SAPbouiCOM.EditText;
                var linkedButton     = linkedButtonItem.Specific as SAPbouiCOM.LinkedButton;

                linkedButton.LinkedObject = (SAPbouiCOM.BoLinkedObject)Event.LinkedObjectType.To <Int32>();
                editText.Value            = Event.Values[0].ToString();

                linkedButtonItem.Click();
            }
            catch (Exception excetion)
            {
                Application.GetInstance().SetTextOnStatusBar(excetion.Message, BoMessageTime.bmt_Short, BoStatusBarMessageType.smt_Error);
            }
        }
        protected override void OnClick(EventArgs e)
        {
            if (this.LinkedObjectType == BoLinkedObject.lf_None)
            {
                base.OnClick(e);
                return;
            }

            if (this.LinkedTo == null)
            {
                Application.GetInstance().SetTextOnStatusBar("Não há EditText Lincado !", BoMessageTime.bmt_Short, BoStatusBarMessageType.smt_Error);
                return;
            }

            var myNewLinkedEventArgs = new LinkedButtonEventArgs();

            myNewLinkedEventArgs.LinkedObjectType = LinkedObjectType;
            myNewLinkedEventArgs.Values           = new List <object>()
            {
                LinkedTo.EditValue
            };

            Application.GetInstance().PeformLinkedButton(this, myNewLinkedEventArgs);
        }
Exemple #3
0
 public void PerformLinkedButton(object sender, LinkedButtonEventArgs Event)
 {
     throw new NotImplementedException();
 }
Exemple #4
0
 /// <summary>
 /// Realiza uma simulação de click no LinkedButton
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="Event"></param>
 public void PeformLinkedButton(object sender, LinkedButtonEventArgs Event)
 {
     m_Concrete.PerformLinkedButton(sender, Event);
 }