public ValueModel GetValueModelFor(Type mixinType, Visibility visibility) { ValueModel foundModel = null; foreach (ValueModel composite in this.valueModels) { if (typeof(ValueComposite).IsAssignableFrom(mixinType)) { if (mixinType == composite.CompositeType && composite.Visibility == visibility) { if (foundModel != null) { throw new AmbiguousTypeException(mixinType, foundModel.CompositeType, composite.CompositeType); } foundModel = composite; } } else { if (mixinType.IsAssignableFrom(composite.CompositeType) && composite.Visibility == visibility) { if (foundModel != null) { throw new AmbiguousTypeException(mixinType, foundModel.CompositeType, composite.CompositeType); } foundModel = composite; } } } return foundModel; }
private void ListBoxItem_Selected_0(object sender, RoutedEventArgs e) { cantGoForward = false; comp1Active = System.Windows.Visibility.Visible; comp2Active = System.Windows.Visibility.Hidden; comp3Active = System.Windows.Visibility.Hidden; comp4Active = System.Windows.Visibility.Hidden; comp5Active = System.Windows.Visibility.Hidden; opponent1.Visibility = System.Windows.Visibility.Visible; opponent1textBox.Visibility = System.Windows.Visibility.Visible; opponent1.IsEnabled = true; opponent2.Visibility = System.Windows.Visibility.Hidden; opponent2textBox.Visibility = System.Windows.Visibility.Hidden; opponent2.IsEnabled = false; opponent3.Visibility = System.Windows.Visibility.Hidden; opponent3textBox.Visibility = System.Windows.Visibility.Hidden; opponent3.IsEnabled = false; opponent4.Visibility = System.Windows.Visibility.Hidden; opponent4textBox.Visibility = System.Windows.Visibility.Hidden; opponent4.IsEnabled = false; opponent5.Visibility = System.Windows.Visibility.Hidden; opponent5textBox.Visibility = System.Windows.Visibility.Hidden; opponent5.IsEnabled = false; }
void OtherControls(Visibility other) { lblOtherImap.Visibility = other; lblOtherPort.Visibility = other; txtOtherImap.Visibility = other; txtOtherPort.Visibility = other; }
public void GetStops(int routeNum, int direction) { Deployment.Current.Dispatcher.BeginInvoke( () => { Vis = Visibility.Visible; }); stopsfile = "Stops" + direction.ToString() + routeNum.ToString(); if (IsolatedStorageSettings.ApplicationSettings.Contains("Date") && IsolatedStorageSettings.ApplicationSettings.Contains(stopsfile)) { if ((IsolatedStorageSettings.ApplicationSettings["Date"] as string) != DateTime.Today.ToString()) { id++; HtmlWeb.LoadAsync("http://www.ltconline.ca/WebWatch/ada.aspx?r=" + routeNum.ToString() + "&d=" + direction.ToString() + "&id=" + id, DownloadCompleted); } else { Load(); } } else { id++; HtmlWeb.LoadAsync("http://www.ltconline.ca/WebWatch/ada.aspx?r=" + routeNum.ToString() + "&d=" + direction.ToString() + "&id=" + id, DownloadCompleted); } }
public MessageViewModel(int uid, int mid, string body, string dateTime, bool isOut, bool isSent, bool isRead, bool isDeleted, BitmapImage accountPhoto, ObservableCollection<AttachmentViewModel> attachments) { _isSelected = false; Mid = mid; Uid = uid; _body = body; _dateTime = dateTime; _photo = accountPhoto; _SetUserData(uid); _isOut = isOut; _isRead = isRead; _isDeleted = isDeleted; if (isSent && isOut && !isRead) _notReadVisibility = Visibility.Visible; else _notReadVisibility = Visibility.Collapsed; _isSent = isSent; _attachments = attachments; }
private ServiceModel(Type compositeType, Visibility visibility, MetaInfo metaInfo, AbstractMixinsModel mixinsModel, AbstractStateModel stateModel, CompositeMethodsModel compositeMethodsModel, string moduleName, string identity, bool instantiateOnStartup) : base(compositeType, visibility, metaInfo, mixinsModel, stateModel, compositeMethodsModel) { this.moduleName = moduleName; this.identity = identity; this.instantiateOnStartup = instantiateOnStartup; }
public FileUploadSettingsPage() { InitializeComponent(); this.DataContext = YellowstonePathology.YpiConnect.Contract.Identity.ApplicationIdentity.Instance.WebServiceAccount; if (YellowstonePathology.YpiConnect.Contract.Identity.ApplicationIdentity.Instance.WebServiceAccount.EnableFileUpload) { this.m_CommentVisibility = System.Windows.Visibility.Collapsed; this.CheckBoxEnabled.IsChecked = true; if (string.IsNullOrEmpty(YellowstonePathology.YpiConnect.Contract.Identity.ApplicationIdentity.Instance.WebServiceAccount.LocalFileUploadDirectory) == true) { this.LocalFileUploadDirectory = @"C:\Program Files\Yellowstone Pathology Institute\Client Services\Reports"; } else { this.LocalFileUploadDirectory = YellowstonePathology.YpiConnect.Contract.Identity.ApplicationIdentity.Instance.WebServiceAccount.LocalFileUploadDirectory; } } else { this.m_CommentVisibility = System.Windows.Visibility.Visible; this.CheckBoxEnabled.IsChecked = false; } this.DataContext = this; MainWindow mainWindow = (MainWindow)System.Windows.Application.Current.MainWindow; this.HyperlinkSignOut.Click += new RoutedEventHandler(mainWindow.ButtonSignOut_Click); Loaded += new RoutedEventHandler(FileUploadSettingsPage_Loaded); }
private void ChangeStateForElement(int index, Visibility visibility) { Storyboard sbOpacity = null; Storyboard sbGrayScale = null; Storyboard sbBlur = null; Viewport2DVisual3D model = (Viewport2DVisual3D)Owner._modelContainer.Children[index]; LoginGrid loginGrid = (LoginGrid)model.Visual; loginGrid.imgMoveToRight.Visibility = Visibility.Collapsed; loginGrid.imgMoveToLeft.Visibility = Visibility.Collapsed; if (visibility == Visibility.Visible) { sbOpacity = (Storyboard)(loginGrid).FindResource("sbFadein"); sbGrayScale = (Storyboard)(loginGrid).FindResource("sbGrayEffectOut"); // sbBlur = (Storyboard)((LoginGrid)model.Visual).FindResource("sbBlurEffectIn"); ((BlurEffect)(loginGrid).Effect).Radius = 0; } else { sbOpacity = (Storyboard)(loginGrid).FindResource("sbFadeout"); sbGrayScale = (Storyboard)(loginGrid).FindResource("sbGrayEffectIn"); // sbBlur = (Storyboard)((LoginGrid)model.Visual).FindResource("sbBlurEffectOut"); ((BlurEffect)(loginGrid).Effect).Radius = 7; } sbOpacity.Begin((loginGrid)); sbGrayScale.Begin((loginGrid)); // sbBlur.Begin(((LoginGrid)model.Visual)); }
public static ServiceModel NewModel(Type compositeType, Visibility visibility, MetaInfo metaInfo, IEnumerable<Type> assemblyConcerns, IEnumerable<Type> sideEffects, IList<Type> mixins, String moduleName, String identity, bool instantiateOnStartup) { PropertyDeclarations propertyDeclarations = new MetaInfoDeclaration(); var constraintsModel = new ConstraintsModel(compositeType); bool immutable = metaInfo.Get<ImmutableAttribute>() != null; var propertiesModel = new ServicePropertiesModel(constraintsModel, propertyDeclarations, immutable); var stateModel = new ServiceStateModel(propertiesModel); var mixinsModel = new MixinsModel(compositeType, mixins); var concerns = new List<ConcernDeclaration>(); ConcernsDeclaration.ConcernDeclarations(assemblyConcerns, concerns); ConcernsDeclaration.ConcernDeclarations(compositeType, concerns); var concernsModel = new ConcernsDeclaration(concerns); var sideEffectsModel = new SideEffectsDeclaration(compositeType, sideEffects); var compositeMethodsModel = new CompositeMethodsModel(compositeType, constraintsModel, concernsModel, sideEffectsModel, mixinsModel); stateModel.AddStateFor(compositeMethodsModel.Properties, compositeType); return new ServiceModel( compositeType, visibility, metaInfo, mixinsModel, stateModel, compositeMethodsModel, moduleName, identity, instantiateOnStartup); }
public static Visibility GetVisibility(this SyntaxTokenList tokenList, Visibility defaultVisibility = Visibility.Private) { Requires.InRange(defaultVisibility, () => defaultVisibility); var isPrivate = tokenList.Any(SyntaxKind.PrivateKeyword); var isProtected = tokenList.Any(SyntaxKind.ProtectedKeyword); var isInternal = tokenList.Any(SyntaxKind.InternalKeyword); var isPublic = tokenList.Any(SyntaxKind.PublicKeyword); if (isPrivate && !isProtected && !isInternal && !isPublic) return Visibility.Private; if (isProtected && !isPrivate && !isInternal && !isPublic) return Visibility.Protected; if (isInternal && !isPrivate && !isProtected && !isPublic) return Visibility.Internal; if (isProtected && isInternal && !isPrivate && !isPublic) return Visibility.ProtectedInternal; if (isPublic && !isPrivate && !isProtected && !isInternal) return Visibility.Public; return defaultVisibility; }
/// <summary> /// Creates an instance of <see cref="IBoilerplateContext"/> /// </summary> /// <param name="identity">The current identity being used (rights and roles contract requirements/restrictions will apply to this identity)</param> /// <param name="accessProvider">An access provider for specific types (available through IBoilerplateContext.Open<T>())</param> /// <param name="permissionsProvider">The provider that will be used for all permissions verification attempts</param> /// <param name="visibility">The visibility level that this context has. This will affect operations that rely on visibility (e.g. logging).</param> /// <returns>An instance of <see cref="IBoilerplateContext"/></returns> public static IBoilerplateContext New(IIdentity identity = null, ITypeAccessProvider accessProvider = null, IPermissionsProvider permissionsProvider = null, Visibility visibility = Visibility.None) { var actualIdentity = identity ?? Identity.Default; var actualTypeAccessProvider = accessProvider ?? TypeAccessProvider.Empty; var actualPermissionsProvider = permissionsProvider ?? PermissionsProvider.Default; var functionGenerator = new FunctionGenerator(); //Core providers var translationProvider = new TranslationProvider(functionGenerator); var validationProvider = new ValidationProvider(functionGenerator); var logProvider = new LogProvider(functionGenerator, visibility); //Set up error handling var tryCatchProvider = new TryCatchBlockProvider(functionGenerator); var exceptionHandlerProvider = new ExceptionHandlerProvider(logProvider); var errorContext = new ImmutableErrorContext(logProvider, tryCatchProvider, exceptionHandlerProvider); var bundle = new ContextBundle(permissionsProvider: actualPermissionsProvider, errorContext: errorContext, translationProvider: translationProvider, accessProvider: actualTypeAccessProvider, validationProvider: validationProvider, logProvider: logProvider, visibility: visibility); return new InitialBoilerplateContext<ContractContext>(bundle, actualIdentity); }
public Class(Visibility visibility, String name, bool @static, bool @abstract) : base(visibility, name) { Static = @static; Abstract = @abstract; }
/// <summary> /// Initializes a new instance of the <see cref="T:System.Windows.Controls.DataGridColumn" /> class. /// </summary> protected internal DataGridColumn() { this._visibility = Visibility.Visible; this._displayIndexWithFiller = -1; this.IsInitialDesiredWidthDetermined = false; this.InheritsWidth = true; }
public CodeWithReturnValue(bool overrided, bool @static, Visibility visibility, bool @virtual, string name, bool @abstract, string returnType) : base(@static, visibility, @virtual, name, @abstract) { ParameterValidator.ThrowIfArgumentNull(returnType, "tyreturnTypepe"); ReturnType = returnType; Overrided = overrided; }
protected PropertyBase(PropertyEditor owner) { Owner = owner; isEnabled = true; isVisible = Visibility.Visible; }
public CheckingTeacher(Teacher Teacher, bool Checking, Visibility Visible) { this.Teacher = Teacher; this.Checking = Checking; this.Visible = Visible; this.Content = ((Domain.IDomainIdentity<Teacher>)Teacher).ID.ToString() + "-" + Teacher.Name; }
public EdgeControl CreateEdgeControl(VertexControl source, VertexControl target, object edge, bool showLabels = false, bool showArrows = true, Visibility visibility = Visibility.Visible) { var edgectrl = new EdgeControl(source, target, edge, showLabels, showArrows) { Visibility = visibility, RootArea = FactoryRootArea}; return edgectrl; }
public QuestionInQuestionnaireManagementContainer(ProgressingQuestionnaireQuestion question, Question questionLevel, Visibility showLevelHeader) : this() { this.QuestionnaireQuestion = question; this.QuestionLevel = questionLevel; this.ShowLevelHeader = showLevelHeader; }
public bool VisitModules(ModuleVisitor visitor, Visibility visibility) { // Visit modules in this layer foreach (ModuleInstance moduleInstance in this.moduleInstances) { if (!visitor.VisitModule(moduleInstance, moduleInstance.Model, visibility)) { return false; } } if (visibility == Visibility.Layer) { // Visit modules in this layer if (!this.VisitModules(visitor, Visibility.Application)) { return false; } // Visit modules in used layers return this.UsedLayersInstance.VisitModules(visitor); } return true; }
private void SetHintVisibility(Visibility value) { if (HintContentElement != null) { HintContentElement.Visibility = value; } }
public PanHGViewModel() { CloneRepoPath = HGSettings.Default.CloneRepo; updateRepoPath = HGSettings.Default.LocalRepo; Username = HGSettings.Default.Username; loaderVisibility = Visibility.Hidden; isEnable = true; cloneSearchQuery = string.Empty; cloneRepoList = new ObservableCollection<CheckBoxRepos>(); cloneRepoListAll = new ObservableCollection<CheckBoxRepos>(); updateRepoList = new ObservableCollection<CheckBoxRepos>(); updateRepoListAll = new ObservableCollection<CheckBoxRepos>(); ObservableCollection<CheckBoxRepos> tmp = HGSettings.Default.CloneRepoList; if(tmp != null) foreach(CheckBoxRepos cbr in tmp) { cloneRepoList.Add(cbr); cloneRepoListAll.Add(cbr); } tmp = HGSettings.Default.UpdateRepoList; if (tmp != null) foreach (CheckBoxRepos cbr in tmp) { updateRepoList.Add(cbr); updateRepoListAll.Add(cbr); } }
public SettingsWindowViewModel() { m_close_command = new DelegateCommand(OnCloseCommandExecuted); m_selected_language = Settings.Language.Value; m_close_button_text = Text.Close; m_warn_message_visibility = Visibility.Collapsed; }
public void VisibilityValuesConvertToCorrectBooleanValues(Visibility value, bool expectedValue) { var converter = new BoolToVisibilityValueConverter(); var actualValue = (bool)converter.ConvertBack(value, null, null, null); Assert.AreEqual(expectedValue, actualValue); }
public void BooleanValuesConvertToCorrectVisibilityValues(bool value, Visibility expectedValue) { var converter = new BoolToVisibilityValueConverter(); var actualValue = (Visibility)converter.Convert(value, null, null, null); Assert.AreEqual(expectedValue, actualValue); }
//private bool m_Closing; public ProviderDistributionPage(string reportNo, YellowstonePathology.Business.Test.AccessionOrder accessionOrder, YellowstonePathology.UI.Navigation.PageNavigator pageNavigator, Visibility nextButtonVisibility, Visibility closeButtonVisibility, Visibility backButtonVisibility) { this.m_PageNavigator = pageNavigator; this.m_AccessionOrder = accessionOrder; this.m_PanelSetOrder = accessionOrder.PanelSetOrderCollection.GetPanelSetOrder(reportNo); this.m_NextButtonVisibility = nextButtonVisibility; this.m_CloseButtonVisibility = closeButtonVisibility; this.m_BackButtonVisibility = backButtonVisibility; this.m_SystemUserCollection = YellowstonePathology.Business.User.SystemUserCollectionInstance.Instance.SystemUserCollection; this.m_ClientPhysicianNotSetAuditCollection = new Business.Audit.Model.AuditCollection(); this.m_ClientPhysicianNotSetAuditCollection.Add(new YellowstonePathology.Business.Audit.Model.ClientNotSetAudit(this.m_AccessionOrder)); this.m_ClientPhysicianNotSetAuditCollection.Add(new YellowstonePathology.Business.Audit.Model.PhysicianNotSetAudit(this.m_AccessionOrder)); InitializeComponent(); DataContext = this; this.Loaded += new RoutedEventHandler(ProviderDetailPage_Loaded); Close += ProviderDistributionPage_Close; }
public ReviewClientOrderPage(YellowstonePathology.Business.Rules.Surgical.PatientRecentAccessions patientRecentAccessions, YellowstonePathology.Business.ClientOrder.Model.ClientOrder clientOrder, UI.Navigation.PageNavigator pageNavigator) { this.m_PatientRecentAccessions = patientRecentAccessions; this.m_ClientOrder = clientOrder; this.m_PageNavigator = pageNavigator; InitializeComponent(); this.DataContext = this; if (this.m_ClientOrder.Accessioned == true) { this.m_CloseButtonVisibility = System.Windows.Visibility.Collapsed; this.m_NextButtonVisibility = System.Windows.Visibility.Visible; } else { this.m_CloseButtonVisibility = System.Windows.Visibility.Visible; this.m_NextButtonVisibility = System.Windows.Visibility.Collapsed; } this.Loaded += new RoutedEventHandler(ReviewClientOrderPage_Loaded); }
/// <summary> /// Initializes a new instance of the <see cref="ViewLinksViewModel"/> class. /// </summary> /// <param name="linkViewModel"> /// The link view model. /// </param> /// <param name="links"> /// The links. /// </param> public ViewLinksViewModel(LinkViewModel linkViewModel, ObservableCollection<LinkViewModel> links) { this.Links = links; this.SelectedItem = linkViewModel; this.uiVisibility = Visibility.Visible; }
public static void SetBusyVisibility(Visibility visible, string text = null) { WindowWrapper.Current().Dispatcher.Dispatch(() => { switch (visible) { case Visibility.Visible: Instance.IsBusyVisible = true; Instance.FindName(nameof(BusyScreen)); Instance.BusyText.Text = text ?? string.Empty; if (VisualStateManager.GoToState(Instance, Instance.BusyVisualState.Name, true)) { SystemNavigationManager.GetForCurrentView().AppViewBackButtonVisibility = AppViewBackButtonVisibility.Collapsed; } break; case Visibility.Collapsed: Instance.IsBusyVisible = false; if (VisualStateManager.GoToState(Instance, Instance.NormalVisualState.Name, true)) { BootStrapper.Current.UpdateShellBackButton(); } break; } }); }
// metoda zmienia visibility każdej zakładki, //index decyduje która zakładka ma zostac wybrana jako początkowa public void ChangeVisibility(int index=0, Visibility Login=Visibility.Collapsed, Visibility Tab=Visibility.Collapsed, Visibility UserAcc=Visibility.Collapsed, Visibility RoomsVis = Visibility.Collapsed, Visibility InstituteManagmentVis = Visibility.Collapsed, Visibility DictionaryVis = Visibility.Collapsed, Visibility InstituteDevicesList = Visibility.Collapsed, Visibility InstituteWorkersList = Visibility.Collapsed, Visibility RaportsVis = Visibility.Collapsed, Visibility LogoutVis= Visibility.Visible ) { LoginControl.Visibility = Login; UserAccount.Visibility = UserAcc; Rooms.Visibility = RoomsVis; InstituteManagment.Visibility = InstituteManagmentVis; Dictionary.Visibility = DictionaryVis; InstituteDevicesManagment.Visibility = InstituteDevicesList; InstituteWorkersManagment.Visibility = InstituteWorkersList; Raports.Visibility = RaportsVis; MenuControl.Visibility = LogoutVis; TabControlMenu.SelectedIndex=index; TabControlMenu.Visibility = Tab; }
public TagRefData(string name, uint offset, uint address, TagHierarchy allTags, Visibility showJumpTo, bool withClass, uint pluginLine) : base(name, offset, address, pluginLine) { _allTags = allTags; _withClass = withClass; _showJumpTo = showJumpTo; }
void SetDetailInfoPanelState(Visibility enumState) { page_day_detail.Visibility = enumState; }
protected virtual object OnCoerceCloseButtonVisibility(Visibility newValue) { return(newValue); }
private static void VerifyConversion(IEnumerable <int> list, object threshold, Visibility expectedResult) { var converter = new CollectionToVisibilityConverter(); var result = (Visibility)converter.Convert(list, typeof(List <int>), threshold, CultureInfo.CurrentCulture); result.Should().Be(expectedResult); Visibility revertedResult = expectedResult switch { Visibility.Visible => Visibility.Collapsed, Visibility.Collapsed => Visibility.Visible, _ => throw new Exception(), }; var revertedConverter = new CollectionToInvertedVisibilityConverter(); result = (Visibility)revertedConverter.Convert(list, typeof(List <int>), threshold, CultureInfo.CurrentCulture); result.Should().Be(revertedResult); }
public VisibilityBooleanConverter() { TrueVisibility = Visibility.Visible; FalseVisibility = Visibility.Collapsed; DefaultVisibility = Visibility.Visible; }
private void SetaVisibilidadePath(Visibility avancar, Visibility voltar) { _pathAvancar.Visibility = avancar; _pathVoltar.Visibility = voltar; }
public void Visit(MaterialGeneratorContext context) { Fresnel.Visit(context); Visibility.Visit(context); NormalDistribution.Visit(context); }
private void SetLoginBarVisibility(Visibility state) { LoginBar.Visibility = MultipleUserViewState.Equals(_currentState) ? state : Visibility.Collapsed; }
public RenderDataCache(String labelText, Visibility buttonVisibility, Typeface typeface) { LabelText = labelText; ButtonVisibility = buttonVisibility; Typeface = typeface; }
public void SetPrintingOptionsWaitCurtainVisibility(Visibility visibility) { PrintingOptionsWaitCurtain.Visibility = visibility; }
public void SetPageNumberVisibility(Visibility visibility) { PageNumberMarker.Visibility = visibility; }
public static void ClosePopUp(TipoPopUp PopUpToClose = TipoPopUp.CERRAR_TODOS) { switch (PopUpToClose) { case TipoPopUp.BUSQUEDA_PROVEEDORES: _VisibleBusquedaProveedores = Visibility.Collapsed; RaiseStaticPropertyChanged("VisibleBusquedaProveedores"); break; case TipoPopUp.BUSQUEDA_REQUISICIONES: _VisibleBusquedaRequisicionesProductos = Visibility.Collapsed; RaiseStaticPropertyChanged("VisibleBusquedaRequisicionesProductos"); break; case TipoPopUp.BUSQUEDA_ORDENES_COMPRA: _VisibleBusquedaOrdenes_Compra = Visibility.Collapsed; RaiseStaticPropertyChanged("VisibleBusquedaOrdenes_Compra"); break; case TipoPopUp.AGENDA: _VisibleAgenda = Visibility.Collapsed; RaiseStaticPropertyChanged("VisibleAgenda"); break; case TipoPopUp.BUSQUEDA_ORDENES_COMPRA_TRANSITO_DETALLE: _VisibleBusquedaOrdenes_Compra_TransitoDetalle = Visibility.Collapsed; RaiseStaticPropertyChanged("VisibleBusquedaOrdenes_Compra_TransitoDetalle"); break; case TipoPopUp.ALMACEN_POPUP: _VisibleAlmacenPopUp = Visibility.Collapsed; RaiseStaticPropertyChanged("VisibleAlmacenPopUp"); break; case TipoPopUp.PRODUCTO_UNIDAD_MEDIDAPOPUP: _VisibleProducto_Unidad_MedidaPopUp = Visibility.Collapsed; RaiseStaticPropertyChanged("VisibleProducto_Unidad_MedidaPopUp"); break; case TipoPopUp.PRODUCTO_SUBCATEGORIAPOPUP: _VisibleProducto_SubCategoriaPopUp = Visibility.Collapsed; RaiseStaticPropertyChanged("VisibleProducto_SubCategoriaPopUp"); break; case TipoPopUp.PRODUCTO_CATEGORIAPOPUP: _VisibleProducto_CategoriaPopUp = Visibility.Collapsed; RaiseStaticPropertyChanged("VisibleProducto_CategoriaPopUp"); break; case TipoPopUp.ALMACEN_TIPOPOPUP: _VisibleAlmacen_TipoPopUp = Visibility.Collapsed; RaiseStaticPropertyChanged("VisibleAlmacen_TipoPopUp"); break; case TipoPopUp.PRODUCTO_PRESENTACIONPOPUP: _VisibleProducto_PresentacionPopUp = Visibility.Collapsed; RaiseStaticPropertyChanged("VisibleProducto_PresentacionPopUp"); break; case TipoPopUp.PRODUCTOPOPUP: _VisibleProductoPopUp = Visibility.Collapsed; RaiseStaticPropertyChanged("VisibleProductoPopUp"); break; case TipoPopUp.ALMACEN_GRUPOPOPUP: _VisibleAlmacen_GrupoPopUp = Visibility.Collapsed; RaiseStaticPropertyChanged("VisibleAlmacen_GrupoPopUp"); break; case TipoPopUp.FONDOOBSCURO: _VisibleFondoObscuro = Visibility.Collapsed; RaiseStaticPropertyChanged("VisibleFondoObscuro"); break; case TipoPopUp.ENTRADAS_LOTES: _VisibleAsignaLotesProducto = Visibility.Collapsed; RaiseStaticPropertyChanged("VisibleAsignaLotesProducto"); break; case TipoPopUp.RECHAZO_PRODUCTO: _VisibleRechazoProducto = Visibility.Collapsed; RaiseStaticPropertyChanged("VisibleRechazoProducto"); break; case TipoPopUp.MENSAJEPROXY: _VisibleMensajeProxy = Visibility.Collapsed; RaiseStaticPropertyChanged("VisibleMensajeProxy"); break; case TipoPopUp.DIGITALIZAR_DOCUMENTO: _VisibleDigitalizacionDocumento = Visibility.Collapsed; RaiseStaticPropertyChanged("VisibleDigitalizacionDocumento"); break; case TipoPopUp.BUSQUEDA_REQUISICION_ESTATUS: _VisibleBusquedaRequisicion = Visibility.Collapsed; RaiseStaticPropertyChanged("VisibleBusquedaRequisicion"); break; case TipoPopUp.CERRAR_TODOS: _PopUpDataContext = null; RaiseStaticPropertyChanged("PopUpDataContext"); _VisibleBusquedaProveedores = Visibility.Collapsed; RaiseStaticPropertyChanged("VisibleBusquedaProveedores"); _VisibleBusquedaRequisicionesProductos = Visibility.Collapsed; RaiseStaticPropertyChanged("VisibleBusquedaRequisicionesProductos"); _VisibleBusquedaOrdenes_Compra = Visibility.Collapsed; RaiseStaticPropertyChanged("VisibleBusquedaOrdenes_Compra"); _VisibleAgenda = Visibility.Collapsed; RaiseStaticPropertyChanged("VisibleAgenda"); _VisibleBusquedaOrdenes_Compra_TransitoDetalle = Visibility.Collapsed; RaiseStaticPropertyChanged("VisibleBusquedaOrdenes_Compra_TransitoDetalle"); _VisibleAlmacenPopUp = Visibility.Collapsed; RaiseStaticPropertyChanged("VisibleAlmacenPopUp"); _VisibleProducto_Unidad_MedidaPopUp = Visibility.Collapsed; RaiseStaticPropertyChanged("VisibleProducto_Unidad_MedidaPopUp"); _VisibleProducto_SubCategoriaPopUp = Visibility.Collapsed; RaiseStaticPropertyChanged("VisibleProducto_SubCategoriaPopUp"); _VisibleProducto_CategoriaPopUp = Visibility.Collapsed; RaiseStaticPropertyChanged("VisibleProducto_CategoriaPopUp"); _VisibleAlmacen_TipoPopUp = Visibility.Collapsed; RaiseStaticPropertyChanged("VisibleAlmacen_TipoPopUp"); _VisibleProducto_PresentacionPopUp = Visibility.Collapsed; RaiseStaticPropertyChanged("VisibleProducto_PresentacionPopUp"); _VisibleProductoPopUp = Visibility.Collapsed; RaiseStaticPropertyChanged("VisibleProductoPopUp"); _VisibleAlmacen_GrupoPopUp = Visibility.Collapsed; RaiseStaticPropertyChanged("VisibleAlmacen_GrupoPopUp"); _VisibleFondoObscuro = Visibility.Collapsed; RaiseStaticPropertyChanged("VisibleFondoObscuro"); _VisibleAsignaLotesProducto = Visibility.Collapsed; RaiseStaticPropertyChanged("VisibleAsignaLotesProducto"); _VisibleRechazoProducto = Visibility.Collapsed; RaiseStaticPropertyChanged("VisibleRechazoProducto"); _VisibleMensajeProxy = Visibility.Collapsed; RaiseStaticPropertyChanged("VisibleMensajeProxy"); _VisibleDigitalizacionDocumento = Visibility.Collapsed; RaiseStaticPropertyChanged("VisibleDigitalizacionDocumento"); _VisibleBusquedaRequisicion = Visibility.Collapsed; RaiseStaticPropertyChanged("VisibleBusquedaRequisicion"); break; } }
public void SetVisibility(Visibility value) { }
/// <summary> /// Updates the Visibility of the inner container /// </summary> private void UpdateInnerVisibility() { this.InnerVisibility = this.Visibility == Visibility.Visible && this.Items.Any(item => item.Visibility == Visibility.Visible) ? Visibility.Visible : Visibility.Collapsed; }
public void AddToolbarTool(eImageType imageType, string toolTip = "", RoutedEventHandler clickHandler = null, Visibility toolVisibility = System.Windows.Visibility.Visible, object CommandParameter = null) { //no tool bar to add to in this View type }
public void ShowLogOut() { LogOutVisibility = Visibility.Visible; }
private Visibility Invert(Visibility visibility) { return(visibility == Visibility.Visible ? Visibility.Collapsed : Visibility.Visible); }
public void HideLogOut() { LogOutVisibility = Visibility.Hidden; }
private void setState(Visibility state) => AddStep(state.ToString(), () => notificationOverlay.State.Value = state);
public static void SetToggleButtonVisibility(Expander expander, Visibility value) { expander.SetValue(ToggleButtonVisibilityProperty, value); }
public ColumnEntity() { viewVisibility = Visibility.Visible; renameVisibility = Visibility.Collapsed; }
void RunningProgressBar(Visibility t) { prgb_acc_dog.Visibility = lbprgrb_acc_dog.Visibility = t; }
public bool Equals(DestinySocketTypeDefinition input) { if (input == null) { return(false); } return (( DisplayProperties == input.DisplayProperties || (DisplayProperties != null && DisplayProperties.Equals(input.DisplayProperties)) ) && ( InsertAction == input.InsertAction || (InsertAction != null && InsertAction.Equals(input.InsertAction)) ) && ( PlugWhitelist == input.PlugWhitelist || (PlugWhitelist != null && PlugWhitelist.SequenceEqual(input.PlugWhitelist)) ) && ( SocketCategoryHash == input.SocketCategoryHash || (SocketCategoryHash.Equals(input.SocketCategoryHash)) ) && ( Visibility == input.Visibility || (Visibility != null && Visibility.Equals(input.Visibility)) ) && ( AlwaysRandomizeSockets == input.AlwaysRandomizeSockets || (AlwaysRandomizeSockets != null && AlwaysRandomizeSockets.Equals(input.AlwaysRandomizeSockets)) ) && ( IsPreviewEnabled == input.IsPreviewEnabled || (IsPreviewEnabled != null && IsPreviewEnabled.Equals(input.IsPreviewEnabled)) ) && ( HideDuplicateReusablePlugs == input.HideDuplicateReusablePlugs || (HideDuplicateReusablePlugs != null && HideDuplicateReusablePlugs.Equals(input.HideDuplicateReusablePlugs)) ) && ( OverridesUiAppearance == input.OverridesUiAppearance || (OverridesUiAppearance != null && OverridesUiAppearance.Equals(input.OverridesUiAppearance)) ) && ( AvoidDuplicatesOnInitialization == input.AvoidDuplicatesOnInitialization || (AvoidDuplicatesOnInitialization != null && AvoidDuplicatesOnInitialization.Equals(input.AvoidDuplicatesOnInitialization)) ) && ( CurrencyScalars == input.CurrencyScalars || (CurrencyScalars != null && CurrencyScalars.SequenceEqual(input.CurrencyScalars)) ) && ( Hash == input.Hash || (Hash.Equals(input.Hash)) ) && ( Index == input.Index || (Index.Equals(input.Index)) ) && ( Redacted == input.Redacted || (Redacted != null && Redacted.Equals(input.Redacted)) )); }
public Context(AS3Settings initSettings) { as3settings = initSettings; /* AS-LIKE OPTIONS */ hasLevels = false; docType = "flash.display.MovieClip"; /* DESCRIBE LANGUAGE FEATURES */ mxmlEnabled = true; // language constructs features.hasPackages = true; features.hasNamespaces = true; features.hasImports = true; features.hasImportsWildcard = true; features.hasClasses = true; features.hasExtends = true; features.hasImplements = true; features.hasInterfaces = true; features.hasEnums = false; features.hasGenerics = true; features.hasEcmaTyping = true; features.hasVars = true; features.hasConsts = true; features.hasMethods = true; features.hasStatics = true; features.hasOverride = true; features.hasTryCatch = true; features.hasE4X = true; features.hasStaticInheritance = true; features.checkFileName = true; // allowed declarations access modifiers Visibility all = Visibility.Public | Visibility.Internal | Visibility.Protected | Visibility.Private; features.classModifiers = all; features.varModifiers = all; features.constModifiers = all; features.methodModifiers = all; // default declarations access modifiers features.classModifierDefault = Visibility.Internal; features.varModifierDefault = Visibility.Internal; features.methodModifierDefault = Visibility.Internal; // keywords features.dot = "."; features.voidKey = "void"; features.objectKey = "Object"; features.booleanKey = "Boolean"; features.numberKey = "Number"; features.stringKey = "String"; features.arrayKey = "Array"; features.dynamicKey = "*"; features.importKey = "import"; features.typesPreKeys = new string[] { "import", "new", "typeof", "is", "as", "extends", "implements" }; features.codeKeywords = new string[] { "var", "function", "const", "new", "delete", "typeof", "is", "as", "return", "break", "continue", "if", "else", "for", "each", "in", "while", "do", "switch", "case", "default", "with", "null", "true", "false", "try", "catch", "finally", "throw", "use", "namespace" }; features.accessKeywords = new string[] { "native", "dynamic", "final", "public", "private", "protected", "internal", "static", "override" }; features.declKeywords = new string[] { "var", "function", "const", "namespace", "get", "set" }; features.typesKeywords = new string[] { "import", "class", "interface" }; features.varKey = "var"; features.constKey = "const"; features.functionKey = "function"; features.getKey = "get"; features.setKey = "set"; features.staticKey = "static"; features.finalKey = "final"; features.overrideKey = "override"; features.publicKey = "public"; features.internalKey = "internal"; features.protectedKey = "protected"; features.privateKey = "private"; features.intrinsicKey = "extern"; features.namespaceKey = "namespace"; features.ArithmeticOperators = new HashSet <char> { '+', '-', '*', '/', '%' }; features.IncrementDecrementOperators = new[] { "++", "--" }; features.OtherOperators = new HashSet <string> { "delete", "typeof", "new" }; /* INITIALIZATION */ settings = initSettings; //BuildClassPath(); // defered to first use // live syntax checking timerCheck = new Timer(500); timerCheck.SynchronizingObject = PluginBase.MainForm as Form; timerCheck.AutoReset = false; timerCheck.Elapsed += new ElapsedEventHandler(timerCheck_Elapsed); FlexShells.SyntaxError += new SyntaxErrorHandler(FlexShell_SyntaxError); }
public AnyToVisibilityConverter(Visibility whenAny, Visibility whenEmpty) { this.whenAny = whenAny; this.whenEmpty = whenEmpty; }
private void SetMaximizeButtonsVisibility(Visibility maximizeButtonVisibility, Visibility reverseMaximizeButtonVisiility) { if (this.MaximizeButton != null) { this.MaximizeButton.Visibility = maximizeButtonVisibility; } if (this.RestoreButton != null) { this.RestoreButton.Visibility = reverseMaximizeButtonVisiility; } }
public BoolToVisibilityConverter() { // set defaults TrueValue = Visibility.Visible; FalseValue = Visibility.Collapsed; }
protected virtual void OnUnitVisibilityUpdated(Unit target, Visibility visibility) { Logger.DebugInfo(InfoString + " => " + target.InfoString + " => " + visibility); }
private void VisibleCollapse(Visibility v_mainFrame, Visibility v_ugMain) { MainFrame.Visibility = v_mainFrame; UGMain.Visibility = v_ugMain; }
public static void SetAdornerVisibility(DependencyObject obj, Visibility value) { obj.SetValue(AdornerVisibilityProperty, value); }
public object Convert(object value, Type targetType, object parameter, CultureInfo culture) { Visibility v = value == null || (value as string).Length == 0 ? Visibility.Collapsed : Visibility.Visible; return(v); }