void Next(PanelSlider panel) { if (panel.KeepLoaded) { this.myPanelsBack.Push(panel); this.myActivePanel = panel; panel.Swipe(true); } }
void mbtnNext_Click(object sender, EventArgs e) { var currentActive = myActivePanel; var nextActive = myPanelsNext.Pop(); if (currentActive.KeepLoaded) { myPanelsBack.Push(currentActive); } currentActive.Swipe(false); myActivePanel = nextActive; myActivePanel.Swipe(true); ToggleCloseButton(); }
void KundeMainView_FormClosing(object sender, FormClosingEventArgs e) { myActivePanel.Swipe(false); ClearPanels(); }