public static bool SwitchOutlook(int id) { var tmpOutlook = launchedOutlooks.Where(x => x.Id == id).FirstOrDefault(); CurrentOutlook = tmpOutlook ?? CurrentOutlook; return(tmpOutlook != null); }
public static OutlookWrapper AddOutlook() { int assignedId = GetNextId(); OutlookWrapper wrapper = new OutlookWrapper(assignedId); launchedOutlooks.Add(wrapper); CurrentOutlook = wrapper; return(wrapper); }