public LoginPageViewModel( ) { CreateUserCommand = new CommandRelay <Object>(CreateUser, CanCreateUser); _INPCInvoke = new INPCInvoker(this); _Mask = ""; _MaskChar = '*'; ValidateUserCommand = new CommandRelay <Object>(ValidateUser, CanValidateUser); }
public MainWindowViewModel( ) { _INPCInvoke = new INPCInvoker(this); InitializeUICommand = new CommandRelay <Object>(_InitialiseUI); SelectEngCommand = new CommandRelay <Object>(_InvokeENGLocalisation, _CanLocaliseToENG); SelectItaCommand = new CommandRelay <Object>(_InvokeITALocalisation, _CanLocaliseToITA); DisplayAboutCommand = new CommandRelay <Object>(_InvokeDisplayAbout, _CanDisplayAboutPage); DisplayConvertCommand = new CommandRelay <Object>(_InvokeDisplayConvert, _CanDisplayConvertPage); DisplaySettingsCommand = new CommandRelay <Object>(_InvokeDisplaySettings, _CanDisplaySettingsPage); }
public MainPageViewModel( ) { _INPCInvoke = new INPCInvoker(this); AddServerCommand = new CommandRelay <Object>(AddServer); CopyCommand = new CommandRelay <Object>(CopyContnet, CanCopyContnetContent); ExportCommand = new CommandRelay <Object>(ExportContnet, CanExportContent); GenerateCommand = new CommandRelay <Object>(GenerateScriptContnet, CanGenerateScriptContnet); ToggleServerInfoCommand = new CommandRelay <Object>(ToggleServerInfo); ValidateCommand = new CommandRelay <Object>(ValidateScript, CanValidateScript); ViewScriptCommand = new CommandRelay <Object>(ToggleDisplayingScript); }
public DocumentConverterViewModel() { _INPCInvoke = new INPCInvoker(this); _XPDFConverter = new FatturaElecttronicaConversionManager( ); SelectDestinationCommand = new CommandRelay <Object>(SelectDestination, ConversionInProgressPredicate); SelectSourceCommand = new CommandRelay <Object>(SelectSource, ConversionInProgressPredicate); XPDFConvertCommand = new CommandRelay <Object>(XPDFConvert, ConversionInteractionAllowed); ConversionInProgress = false; _XPDFConverter.FileConversionUpdateEvent += _CProgressUpdateEventHandler; _XPDFConverter.StateChangedEvent += _CStateChangedEventHandler; }
private SettingsViewModel( ) { _INPCInvoker = new INPCInvoker(this); this.PropertyChanged += _SettingsViewModelPropertyChanged; SelectDefaultDestinationCommand = new CommandRelay <object>(_InvokeSelectDefaultDestinationDirectory); SelectDefaultSourceCommand = new CommandRelay <object>(_InvokeSelectDefaultSourceDirectory); PrinterList = new ObservableCollection <String>( ); foreach (String PrinterName in System.Drawing.Printing.PrinterSettings.InstalledPrinters) { PrinterList.Add(PrinterName); } Settings.Default.TempDestinationDirectory = null; Settings.Default.TempSourceDirectory = null; }
public MainWindowViewModel( ) { _INPCInvoke = new INPCInvoker(this); CurrentView = new MainPageView( ); }
private LocalizationViewModel() { _INPCInvoke = new INPCInvoker(this); }
public AccountsPageViewModel( ) { _INPCInvoke = new INPCInvoker(this); AccountDataColumnIsVisible = Visibility.Collapsed; }
public LoginPageViewModel( ) { _INPCInvoke = new INPCInvoker(this); ValidateUserCommand = new CommandRelay <Object>(ValidateUser, CanValidateUser); }
public AboutViewModel( ) { _INPCInvoker = new INPCInvoker(this); ConversionTotal = 0; OpenDonationLink = new CommandRelay <object>(_InvokeOpenDonationLink); }
public AddServerUserControlViewModel( ) { UseWindowsAuthentication = true; Core.DataContext.RegisterServerDetailsProvider(this); _INPCInvoker = new INPCInvoker(this); }
public EnvironmentSelectorUserControlViewModel( ) { _INPCInvoker = new INPCInvoker(this); (Core.DataContext as IEnumerableDataSource <ISQLServer>).OnDataLoaded += DataContext_OnDataLoaded;; }