private void OnButtonRemoveProviderClick(object o, EventArgs e) { LabelMessageRequiredFields.Visible = false; if (TextBoxIDProvider.Text.Length != 0) { RemoveProvider?.Invoke(); } else { LabelMessageRequiredFields.Visible = true; } }
/// <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); }
private void OnButtonRemoveProviderClick(object o, EventArgs e) { RemoveProvider?.Invoke(); }