Esempio n. 1
0
        public static bool SwitchOutlook(int id)
        {
            var tmpOutlook = launchedOutlooks.Where(x => x.Id == id).FirstOrDefault();

            CurrentOutlook = tmpOutlook ?? CurrentOutlook;
            return(tmpOutlook != null);
        }
Esempio n. 2
0
        public static OutlookWrapper AddOutlook()
        {
            int            assignedId = GetNextId();
            OutlookWrapper wrapper    = new OutlookWrapper(assignedId);

            launchedOutlooks.Add(wrapper);
            CurrentOutlook = wrapper;
            return(wrapper);
        }