Ejemplo n.º 1
0
        void OnTab_RequestsClose(object sender, EventArgs e)
        {
            Workspace_ViewModel tab = sender as Workspace_ViewModel;

            this.TabsCollection.Remove(tab);

            if (sender is SettingsList_ViewModel)
            {
                (sender as SettingsList_ViewModel).RestartRequest -= Tab_RestartRequest;
            }
        }
Ejemplo n.º 2
0
 private void SetActiveTab(Workspace_ViewModel tab)
 {
     CommandsCollection.MoveCurrentTo(tab);
 }