本文整理汇总了C#中IApplicationController类的典型用法代码示例。如果您正苦于以下问题:C# IApplicationController类的具体用法?C# IApplicationController怎么用?C# IApplicationController使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
IApplicationController类属于命名空间,在下文中一共展示了IApplicationController类的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的C#代码示例。
示例1: NavigateFromImportImagesToFinish
internal static void NavigateFromImportImagesToFinish(IApplicationController controller)
{
Assert.IsTrue(controller.IsOnImportImagesScreen);
Assert.IsTrue(controller.CanNext());
controller.Next();
Assert.IsTrue(controller.IsOnSelectDriveScreen);
}
开发者ID:nootn,项目名称:ClinImIm,代码行数:7,代码来源:TestNavigationHelper.cs
示例2: MainWindowViewModel
public MainWindowViewModel(IApplicationController applicationController, INavigationService navigationService, IDataTransferModel transferModel)
{
Guard.NotNull("navigationService", navigationService);
NavigationService = navigationService;
NavigationActions = new NavigationActionsViewModel(applicationController, navigationService, transferModel);
}
开发者ID:kingkino,项目名称:azure-documentdb-datamigrationtool,代码行数:7,代码来源:MainWindowViewModel.cs
示例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();
}
开发者ID:42IN11EWd,项目名称:RAS-app,代码行数:25,代码来源:ProfileViewModel.cs
示例4: NavigateFromImportImagesToSelectImages
internal static void NavigateFromImportImagesToSelectImages(IApplicationController controller)
{
Assert.IsTrue(controller.IsOnImportImagesScreen);
Assert.IsTrue(controller.CanBack());
controller.Back();
Assert.IsTrue(controller.IsOnSelectImagesScreen);
}
开发者ID:nootn,项目名称:ClinImIm,代码行数:7,代码来源:TestNavigationHelper.cs
示例5: ConfigPresenter
public ConfigPresenter(IApplicationController applicationController, IConfigForm form)
{
this.applicationController = applicationController;
this.form = form;
manager = new ConfigManager();
}
开发者ID:Mojopon,项目名称:PomodoroTimer,代码行数:7,代码来源:ConfigPresenter.cs
示例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();
}
开发者ID:nootn,项目名称:ClinImIm,代码行数:28,代码来源:App.xaml.cs
示例7: VaultNumberEditorViewModel
public VaultNumberEditorViewModel(IApplicationController app)
: base()
{
_app = app;
vaultnumberModule = new EditorModule();
Vaults = vaultnumberModule.readVaultnumbers();
}
开发者ID:42IN11EWd,项目名称:RAS-app,代码行数:7,代码来源:VaultNumberEditorViewModel.cs
示例8: LogInViewModel
public LogInViewModel(IApplicationController app)
{
_app = app;
this._ShowMainWindow = new RelayCommand(ShowMainWindow);
this._WachtwoordVergeten = new RelayCommand(ShowWachtwoordView);
_database = ModelFactory.Database;
}
开发者ID:Chirimorin,项目名称:Project_Blok8_MSD,代码行数:7,代码来源:LogInViewModel.cs
示例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);
}
}
开发者ID:fdrgnmx,项目名称:opencbs,代码行数:35,代码来源:MainView.cs
示例10: LocationEditorViewModel
public LocationEditorViewModel(IApplicationController app)
: base()
{
_app = app;
locationModule = new EditorModule();
Locations = locationModule.readLocations();
}
开发者ID:42IN11EWd,项目名称:RAS-app,代码行数:7,代码来源:LocationEditorViewModel.cs
示例11: GebruikerAccountViewModel
public GebruikerAccountViewModel(IApplicationController app)
{
_app = app;
_opslaanCommand = new RelayCommand(Opslaan);
_terugCommand = new RelayCommand(Terug);
_database = ModelFactory.Database;
}
开发者ID:Chirimorin,项目名称:Project_Blok8_MSD,代码行数:7,代码来源:GebruikerAccountViewModel.cs
示例12: VaultKindEditorViewModel
public VaultKindEditorViewModel(IApplicationController app)
: base()
{
_app = app;
vaultKindModule = new EditorModule();
Vaults = vaultKindModule.readVaultKinds();
}
开发者ID:42IN11EWd,项目名称:RAS-app,代码行数:7,代码来源:VaultKindEditorViewModel.cs
示例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;
}
}
开发者ID:yimlu,项目名称:opencbs,代码行数:25,代码来源:CorporateUserControl.cs
示例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();
}
开发者ID:BigEgg,项目名称:CountDown,代码行数:28,代码来源:App.xaml.cs
示例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>();
}
开发者ID:42IN11EWd,项目名称:RAS-app,代码行数:32,代码来源:VaultSelectorViewModel.cs
示例16: FormLogs
public FormLogs(IApplicationController controller, StratumModel stratum)
: base()
{
this.Controller = controller;
InitializeComponent();
this.KeyPreview = true;
if (ViewController.PlatformType == PlatformType.WinCE)
{
this.WindowState = FormWindowState.Maximized;
this._ceControlPanel.Visible = true;
this.Menu = null;
this.mainMenu1.Dispose();
this.mainMenu1 = null;
}
else if (ViewController.PlatformType == PlatformType.WM)
{
this._sip = new Microsoft.WindowsCE.Forms.InputPanel();
this.components.Add(_sip);
this._dataGrid.SIP = this._sip;
}
this._dataGrid.CellValidating += new EditableDataGridCellValidatingEventHandler(_dataGrid_CellValidating);
DataGridAdjuster.InitializeGrid(this._dataGrid);
DataGridTableStyle tableStyle = DataGridAdjuster.InitializeLogColumns(stratum, _dataGrid);
_logNumColumn = tableStyle.GridColumnStyles[CruiseDAL.Schema.LOG.LOGNUMBER] as EditableTextBoxColumn;
}
开发者ID:FMSC-Measurements,项目名称:FScruiserV2,代码行数:29,代码来源:FormLogs.cs
示例17: StudentPersoonViewModel
public StudentPersoonViewModel(IApplicationController app)
{
_app = app;
_verderCommand = new RelayCommand(Verder);
_terugCommand = new RelayCommand(Back);
fillEducation();
}
开发者ID:Chirimorin,项目名称:Project_Blok8_MSD,代码行数:7,代码来源:StudentPersoonViewModel.cs
示例18: NavigateFromSelectPatientToSelectImages
internal static void NavigateFromSelectPatientToSelectImages(IApplicationController controller)
{
Assert.IsTrue(controller.IsOnSelectPatientScreen);
Assert.IsTrue(controller.CanNext());
controller.Next();
Assert.IsTrue(controller.IsOnSelectImagesScreen);
}
开发者ID:nootn,项目名称:ClinImIm,代码行数:7,代码来源:TestNavigationHelper.cs
示例19: NavigateFromSelectPatientToSelectDrive
internal static void NavigateFromSelectPatientToSelectDrive(IApplicationController controller)
{
Assert.IsTrue(controller.IsOnSelectPatientScreen);
Assert.IsTrue(controller.CanBack());
controller.Back();
Assert.IsTrue(controller.IsOnSelectDriveScreen);
}
开发者ID:nootn,项目名称:ClinImIm,代码行数:7,代码来源:TestNavigationHelper.cs
示例20: StageBedrijfViewModel
public StageBedrijfViewModel(IApplicationController app)
{
_app = app;
_saveCommand = new RelayCommand(Save);
_backCommand = new RelayCommand(Back);
_database = ModelFactory.Database;
}
开发者ID:Chirimorin,项目名称:Project_Blok8_MSD,代码行数:7,代码来源:StageBedrijfViewModel.cs
注:本文中的IApplicationController类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论