private void OnButtonRemoveProviderClick(object o, EventArgs e)
        {
            LabelMessageRequiredFields.Visible = false;

            if (TextBoxIDProvider.Text.Length != 0)
            {
                RemoveProvider?.Invoke();
            }
            else
            {
                LabelMessageRequiredFields.Visible = true;
            }
        }
Esempio n. 2
0
        /// <summary>
        /// Executes instruction in given context.
        /// </summary>
        /// <param name="context">Context where instruction is executed.</param>
        public override void Execute(AnalyzingContext context)
        {
            var newInstance = context.Machine.CreateInstance(_objectInfo);

            if (RemoveProvider != null)
            {
                newInstance.HintCreationNavigation(RemoveProvider.GetNavigation());
            }

            newInstance.CreationBlock = context.CurrentCall.CurrentBlock;

            context.SetValue(_targetVariable, newInstance);
        }
Esempio n. 3
0
 private void OnButtonRemoveProviderClick(object o, EventArgs e)
 {
     RemoveProvider?.Invoke();
 }