示例#1
0
        //public bool IsCompleteInfo 
        //    => UserSession?.AuthFile?.IsCompleteInfo ?? false;



        public MainWindowVM(ISessionClient d7Client, LogScrollerVM logScroller, UserSessionVM userSessionVM)
            : base(userSessionVM)
        {
            DisplayName   = "ErrH Uploader (2nd attempt)";
            OtherTabs.Add(logScroller.ListenTo(this));

            CompletelyLoaded += (src, ea) =>
            {
                UserSession.SetClient(d7Client);

                var foldrsTab = ForwardLogs(IoC.Resolve<FoldersTabVM>());

                foldrsTab.MainList.ItemPicked += (s, e) =>
                    { ShowSingleton<FilesTabVM2>(e.Value, IoC); };

                NaviTabs.Add(foldrsTab);
                NaviTabs.SelectOne(0);
                foldrsTab.Refresh();

                //OtherTabs.Add(BatRunner());
                //OtherTabs.SelectOne(1);
                //RaisePropertyChanged(nameof(IsCompleteInfo));
                //UserSession.ra
            };
        }
示例#2
0
        public MainWindowVmBase(UserSessionVM userSessionVM)
        {
            WindowState = WindowState.Normal;
            IsVisible   = true;
            NaviTabs    = new VmList <WorkspaceVmBase>();
            MainTabs    = new VmList <WorkspaceVmBase>();
            OtherTabs   = new VmList <WorkspaceVmBase>();
            UserSession = ForwardLogs(userSessionVM);

            MainTabs.CollectionChanged += OnWorkspacesChanged;

            NaviTabs.ItemPicked += ResetDetailsState;
            MainTabs.ItemPicked += ResetDetailsState;


            CompletelyLoaded += (s, e) => { Refresh(); };
        }