Beispiel #1
0
 internal void _settingsView_ViewClosed(IElementCustomizationsView sender, SettingsViewActionEventArgs ea)
 {
     if (sender != null)
     {
         // its already been closed, so just clear it.
         ClearCustomizationsView();
         SimpleView.UpdateCustomizationsViewStatus(ViewStatus.Open, ViewStatus.Closed);
         OnPresentationChanged(new PresentationChangedEventArgs("Settings view closed"));
     }
 }
Beispiel #2
0
 /// <summary>
 /// Updates the <paramref name="view"/> with element status and messages.
 /// </summary>
 /// <param name="view">The IElementCustomizationsView for the element</param>
 /// <param name="element">The element core</param>
 internal void UpdateElementStatusInCustomizationsView(IElementCustomizationsView view, ISimpleElement element)
 {
     view.SetElementStatus(element.Status);
     view.MessageView.MessageBody = element.Message;
 }
Beispiel #3
0
 internal void _settingsView_Reset(IElementCustomizationsView sender, SettingsViewActionEventArgs ea)
 {
     throw new Exception("The method or operation is not implemented.");
 }
Beispiel #4
0
 /// <summary>
 /// Sets the appropriate <see cref="IElementTemplate"/> in the <paramref name="view"/>.
 /// </summary>
 /// <param name="view">The IElementCustomizationsView to set the template in.</param>
 internal void SetCustomizationsViewTemplate(IElementCustomizationsView view)
 {
     IElementTemplate template = null;
     throw new NotImplementedException();
     //IElementTemplateDictionary dic = Base.ContainerProvider.CoreContainer.Resolve<IElementTemplateDictionary>();
     //template = dic[Element.TypeId];
     //view.SetTemplate(template);
 }