private void AddSession(Session session) { string tabTitle = string.Format(CultureInfo.CurrentUICulture, Resources.SessionTabTitleFormat, session.Connection.Name, session.Connection.HostName, session.Connection.Port); string tabTooltip = string.Format(CultureInfo.CurrentUICulture, Resources.SessionTabTooltipFormat, session.Connection.Name, session.Connection.HostName, session.Connection.Port); TabPage tab = new TabPage(); tab.Tag = session; tab.Text = tabTitle; tab.ToolTipText = tabTooltip; CacheOperationsControl tabControl = new CacheOperationsControl(session); tabControl.Dock = DockStyle.Fill; tabControl.BorderStyle = BorderStyle.None; tab.Controls.Clear(); tab.Controls.Add(tabControl); this.sessionTabControl.TabPages.Add(tab); }
private void CloseSession(Session session) { }
public CacheSessionViewModel(Session session) { this.Session = session; this.cacheAdministrationService = ServiceFactory.GetCacheAdministrationService(); this.cacheService = ServiceFactory.GetCacheService(); }
public CacheOperationsControl(Session session) { this.ViewModel = new CacheSessionViewModel(session); this.InitializeComponent(); }
public void StartSession(Connection connection) { Session session = new Session(connection); this.OnSessionStarted(session); }
public void EndSession(Session session) { this.OnSessionEnded(session); }
protected void OnSessionStarted(Session session) { SessionEventArgs e = new SessionEventArgs(); e.Session = session; this.OnSessionStarted(e); }