Example #1
0
 public override void Init(SIEESettings settings)
 {
     base.Init(settings);
     mySettings = settings as SPOSettings;
     mySettings.InitializeSPOClient(spoClient);
     spoClient.Login();
 }
Example #2
0
 public SPOViewModel_DT(SPOViewModel vm)
 {
     this.vm  = vm;
     settings = vm.SPOSettings;
     nsp      = new NameSpecParser();
     Result   = nsp.Convert(settings.Specification);
 }
        public override object Clone()
        {
            SPOSettings clone = this.MemberwiseClone() as SPOSettings;

            clone.ListFilter = this.ListFilter.Clone() as SPOListFilter;
            return(clone);
        }
        public SPOViewModel(SIEESettings settings, ISPOClient spoClient)
        {
            SPOSettings = settings as SPOSettings;
            SPOClient   = spoClient;

            CT = new SPOViewModel_CT(this);
            LT = new SPOViewModel_LT(this);
            FT = new SPOViewModel_FT(this);
            DT = new SPOViewModel_DT(this);

            SelectedTab = 0;
            IsRunning   = false;
            DataLoaded  = false;

            if (SPOSettings.LoginPossible)
            {
                LoginButtonHandler();
            }

            CT.PropertyChanged += (s, e) =>
            {
                if (CT.IsConnectionRelevant(e.PropertyName))
                {
                    SPOSettings.LoginPossible = false;
                    DataLoaded = false;
                    TabNamesReset();
                }
            };
        }
        public SPOViewModel_LT(SPOViewModel vm)
        {
            this.vm  = vm;
            settings = vm.SPOSettings;

            Cultures = CultureInfo.GetCultures(CultureTypes.AllCultures).OrderBy(n => n.DisplayName).ToList();
        }
Example #6
0
        public void LoadFilterHandler()
        {
            SPOListFilter newFilter = SPOSettings.LoadFilter();

            if (newFilter != null)
            {
                Filter = newFilter;
            }
        }
Example #7
0
        private SPOViewModel createViewModel(SPOSettings settings = null)
        {
            if (settings == null)
            {
                settings = new SPOSettings();
            }
            SPOViewModel vm = new SPOViewModel(settings, new SPOClientMock());

            vm.Initialize(new SPOControlWPF());
            return(vm);
        }
 public SPOViewModel_FT(SPOViewModel vm)
 {
     this.vm  = vm;
     settings = vm.SPOSettings;
 }
Example #9
0
 public void SaveFilterAsHandler()
 {
     SPOSettings.SaveFilterAs(Filter);
 }
Example #10
0
 public void SaveAsDefaulFiltertHandler()
 {
     SPOSettings.SaveAsDefaultFilter(Filter);
 }