コード例 #1
0
 public LoginPageViewModel( )
 {
     CreateUserCommand   = new CommandRelay <Object>(CreateUser, CanCreateUser);
     _INPCInvoke         = new INPCInvoker(this);
     _Mask               = "";
     _MaskChar           = '*';
     ValidateUserCommand = new CommandRelay <Object>(ValidateUser, CanValidateUser);
 }
コード例 #2
0
ファイル: MainWindowViewModel.cs プロジェクト: snwmelt/XPDF
 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);
 }
コード例 #3
0
        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);
        }
コード例 #4
0
        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;
        }
コード例 #5
0
        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;
        }
コード例 #6
0
 public MainWindowViewModel( )
 {
     _INPCInvoke = new INPCInvoker(this);
     CurrentView = new MainPageView( );
 }
コード例 #7
0
ファイル: LocalizationViewModel.cs プロジェクト: snwmelt/XPDF
 private LocalizationViewModel()
 {
     _INPCInvoke = new INPCInvoker(this);
 }
コード例 #8
0
        public AccountsPageViewModel( )
        {
            _INPCInvoke = new INPCInvoker(this);

            AccountDataColumnIsVisible = Visibility.Collapsed;
        }
コード例 #9
0
 public LoginPageViewModel( )
 {
     _INPCInvoke         = new INPCInvoker(this);
     ValidateUserCommand = new CommandRelay <Object>(ValidateUser, CanValidateUser);
 }
コード例 #10
0
 public AboutViewModel( )
 {
     _INPCInvoker     = new INPCInvoker(this);
     ConversionTotal  = 0;
     OpenDonationLink = new CommandRelay <object>(_InvokeOpenDonationLink);
 }
コード例 #11
0
 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;;
        }