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

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

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