本文整理汇总了C#中IApplicationController类的典型用法代码示例。如果您正苦于以下问题:C# IApplicationController类的具体用法?C# IApplicationController怎么用?C# IApplicationController使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
IApplicationController类属于命名空间,在下文中一共展示了IApplicationController类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: NavigateFromImportImagesToFinish
internal static void NavigateFromImportImagesToFinish(IApplicationController controller)
{
Assert.IsTrue(controller.IsOnImportImagesScreen);
Assert.IsTrue(controller.CanNext());
controller.Next();
Assert.IsTrue(controller.IsOnSelectDriveScreen);
}
示例2: MainWindowViewModel
public MainWindowViewModel(IApplicationController applicationController, INavigationService navigationService, IDataTransferModel transferModel)
{
Guard.NotNull("navigationService", navigationService);
NavigationService = navigationService;
NavigationActions = new NavigationActionsViewModel(applicationController, navigationService, transferModel);
}
示例3: ProfileViewModel
public ProfileViewModel(IApplicationController app)
: base()
{
_app = app;
uModule = new UserModule();
filterList = new ObservableCollection<gymnast>();
// Set the menu
MenuViewModel menuViewModel = new MenuViewModel(_app);
menuViewModel.VisibilityLaser = false;
Menu = menuViewModel;
// Get the user profile
FilterField = "";
gymnastList = uModule.getGymnastCollection();
applyFilter();
//Other misc stuff
PictureCommandVisible = Visibility.Hidden;
EnableFilter = true;
inEditingMode = false;
creatingNewGymnast = false;
setValidationRules();
}
示例4: NavigateFromImportImagesToSelectImages
internal static void NavigateFromImportImagesToSelectImages(IApplicationController controller)
{
Assert.IsTrue(controller.IsOnImportImagesScreen);
Assert.IsTrue(controller.CanBack());
controller.Back();
Assert.IsTrue(controller.IsOnSelectImagesScreen);
}
示例5: ConfigPresenter
public ConfigPresenter(IApplicationController applicationController, IConfigForm form)
{
this.applicationController = applicationController;
this.form = form;
manager = new ConfigManager();
}
示例6: OnStartup
protected override void OnStartup(StartupEventArgs e)
{
base.OnStartup(e);
#if (DEBUG != true)
// Don't handle the exceptions in Debug mode because otherwise the Debugger wouldn't
// jump into the code when an exception occurs.
DispatcherUnhandledException += AppDispatcherUnhandledException;
AppDomain.CurrentDomain.UnhandledException += AppDomainUnhandledException;
#endif
XmlConfigurator.Configure();
_log.Debug("OnStartup called");
var catalog = new AggregateCatalog();
catalog.Catalogs.Add(new AssemblyCatalog(typeof(Controller).Assembly));
catalog.Catalogs.Add(new AssemblyCatalog(Assembly.GetExecutingAssembly()));
catalog.Catalogs.Add(new AssemblyCatalog(typeof(IApplicationController).Assembly));
catalog.Catalogs.Add(new AssemblyCatalog(typeof(ValidationModel).Assembly));
_container = new CompositionContainer(catalog);
var batch = new CompositionBatch();
batch.AddExportedValue(_container);
_container.Compose(batch);
_controller = _container.GetExportedValue<IApplicationController>();
_controller.Initialize();
_controller.Run();
}
示例7: VaultNumberEditorViewModel
public VaultNumberEditorViewModel(IApplicationController app)
: base()
{
_app = app;
vaultnumberModule = new EditorModule();
Vaults = vaultnumberModule.readVaultnumbers();
}
示例8: LogInViewModel
public LogInViewModel(IApplicationController app)
{
_app = app;
this._ShowMainWindow = new RelayCommand(ShowMainWindow);
this._WachtwoordVergeten = new RelayCommand(ShowWachtwoordView);
_database = ModelFactory.Database;
}
示例9: MainView
public MainView(IApplicationController applicationController)
{
InitializeComponent();
try
{
_applicationController = applicationController;
_applicationController.Subscribe<ShowViewMessage>(this, OnShowView);
_applicationController.Subscribe<ActivateViewMessage>(this, OnActivateView);
_applicationController.Subscribe<StartPageShownMessage>(this, OnStartPageShown);
_applicationController.Subscribe<StartPageHiddenMessage>(this, OnStartPageHidden);
_applicationController.Subscribe<AlertsShownMessage>(this, OnAlertsShown);
_applicationController.Subscribe<AlertsHiddenMessage>(this, OnAlertsHidden);
_applicationController.Subscribe<DashboardShownMessage>(this, OnDashboardShown);
_applicationController.Subscribe<DashboardHiddenMessage>(this, OnDashboardHidden);
_applicationController.Subscribe<EditLoanMessage>(this, OnEditLoan);
_applicationController.Subscribe<EditSavingMessage>(this, OnEditSaving);
_applicationController.Subscribe<RestartApplicationMessage>(this, m =>
{
RestartApplication(m.Language);
});
SetUp();
MefContainer.Current.Bind(this);
_menuItems = new List<MenuObject>();
_menuItems = Services.GetMenuItemServices().GetMenuList(OSecurityObjectTypes.MenuItem);
LoadReports();
LoadReportsToolStrip();
InitializeTracer();
DisplayWinFormDetails();
InitMenu();
}
catch (Exception error)
{
MessageBox.Show(error.Message, "Error", MessageBoxButtons.OK, MessageBoxIcon.Error);
}
}
示例10: LocationEditorViewModel
public LocationEditorViewModel(IApplicationController app)
: base()
{
_app = app;
locationModule = new EditorModule();
Locations = locationModule.readLocations();
}
示例11: GebruikerAccountViewModel
public GebruikerAccountViewModel(IApplicationController app)
{
_app = app;
_opslaanCommand = new RelayCommand(Opslaan);
_terugCommand = new RelayCommand(Terug);
_database = ModelFactory.Database;
}
示例12: VaultKindEditorViewModel
public VaultKindEditorViewModel(IApplicationController app)
: base()
{
_app = app;
vaultKindModule = new EditorModule();
Vaults = vaultKindModule.readVaultKinds();
}
示例13: CorporateUserControl
public CorporateUserControl(Corporate corporate, Form pMdiParent, IApplicationController applicationController)
{
_applicationController = applicationController;
_mdifrom = pMdiParent;
_corporate = corporate;
_fundingLine = null;
InitializeComponent();
InitializeUserControlsAddress();
InitializeCorporate();
PicturesServices ps = ServicesProvider.GetInstance().GetPicturesServices();
if (ps.IsEnabled())
{
pictureBox1.Image = ps.GetPicture("CORPORATE", corporate.Id, true, 0);
pictureBox1.SizeMode = PictureBoxSizeMode.Zoom;
pictureBox2.Image = ps.GetPicture("CORPORATE", corporate.Id, true, 1);
pictureBox2.SizeMode = PictureBoxSizeMode.Zoom;
}
else
{
pictureBox1.Visible = false;
pictureBox2.Visible = false;
linkLabelChangePhoto.Visible = false;
linkLabelChangePhoto2.Visible = false;
}
}
示例14: OnStartup
protected override void OnStartup(StartupEventArgs e)
{
base.OnStartup(e);
#if (DEBUG != true)
// Don't handle the exceptions in Debug mode because otherwise the Debugger wouldn't
// jump into the code when an exception occurs.
DispatcherUnhandledException += AppDispatcherUnhandledException;
AppDomain.CurrentDomain.UnhandledException += AppDomainUnhandledException;
#endif
AggregateCatalog catalog = new AggregateCatalog();
// Add the WpfApplicationFramework assembly to the catalog
catalog.Catalogs.Add(new AssemblyCatalog(typeof(Controller).Assembly));
// Add the Waf.BookLibrary.Library.Presentation assembly to the catalog
catalog.Catalogs.Add(new AssemblyCatalog(Assembly.GetExecutingAssembly()));
// Add the Waf.BookLibrary.Library.Applications assembly to the catalog
catalog.Catalogs.Add(new AssemblyCatalog(typeof(ShellViewModel).Assembly));
this.container = new CompositionContainer(catalog);
CompositionBatch batch = new CompositionBatch();
batch.AddExportedValue(container);
this.container.Compose(batch);
this.applicationController = container.GetExportedValue<IApplicationController>();
this.applicationController.Initialize();
this.applicationController.Run();
}
示例15: VaultSelectorViewModel
public VaultSelectorViewModel(IApplicationController app)
: base()
{
_app = app;
// Set menu
MenuViewModel menuViewModel = new MenuViewModel(_app);
menuViewModel.VisibilityLaser = false;
Menu = menuViewModel;
ratingVM = new RatingViewModel(_app);
RatingControl = ratingVM;
// get all info on startup of this viewmodel
List<location> locations = vaultModule.getLocations();
List<vaultnumber> vaultnumbers = vaultModule.getVaultNumbers();
locationList = new ObservableCollection<location>(locations);
vaultNumberList = new ObservableCollection<vaultnumber>(vaultnumbers);
gymnastList = userModule.getGymnastCollection();
modifyVaultVM = new ModifyVaultViewModel(_app, "SELECT", gymnastList, vaultnumbers, vaultModule.getVaultKinds(), locations);
ModifyViewModelControl = modifyVaultVM;
this.Content = modifyVaultVM;
modifyVaultVM.setData(null);
dateVisibility = Visibility.Hidden;
OnPropertyChanged("DateVisibility");
FilterText = "";
filterList = new ObservableCollection<string>();
}