public int SetNextUserControl(UserControl uc) { if (NextUserControls.Count > 0) { PreviousUserControls.Add(UserControl); UserControl = NextUserControls.Last(); NextUserControls.RemoveAt(NextUserControls.Count - 1); } return(1); }
public int SetUserControl(UserControl uc) { PreviousUserControls.Add(UserControl); UserControl = uc; return(1); }