public ObjectInfoPopup(ObjectInfoViewModel vm)
 {
     InitializeComponent();
     VM                    = vm;
     BindingContext        = VM;
     this.HasSystemPadding = false;
 }
Пример #2
0
        public MainViewModel(IWorkspaceAreaViewModel workspaceAreaViewModel,
                             IConnection connection,
                             IDialogService dialogService,
                             IAppSettings appSettings,
                             ObjectInfoViewModel objectInfoViewModel)
        {
            this.workspaceAreaViewModel = workspaceAreaViewModel;
            this.connection             = connection;
            this.dialogService          = dialogService;
            this.appSettings            = appSettings;
            this.objectInfoViewModel    = objectInfoViewModel;

            LoginCommand          = base.AddNewCommand(new ActionCommand(Login));
            LogoutCommand         = base.AddNewCommand(new ActionCommand(Logout));
            OpenObjectInfoCommand = base.AddNewCommand(new ActionCommand(OpenObjectInfo));
        }