Exemplo n.º 1
0
        private void btnAddOnlineModel_Click(object sender, RoutedEventArgs e)
        {
            OnlineModelView onlineSelection = new OnlineModelView();

            onlineSelection.DataContext = this.DataContext;
            MainWindow mainWindow = (MainWindow)Application.Current.MainWindow;

            mainWindow.AddTab(new ActionTabItem()
            {
                Content = onlineSelection, Header = "Online models", Closable = true
            });
        }
        private void btnAddOnlineModel_Click(object sender, RoutedEventArgs e)
        {
            OnlineModelView onlineSelection = new OnlineModelView();

            onlineSelection.DataContext = this.DataContext;
            MainWindow mainWindow = (MainWindow)Application.Current.MainWindow;

            mainWindow.AddTab(new ActionTabItem()
            {
                Content = onlineSelection, Header = OpusCatMTEngine.Properties.Resources.Main_OnlineModelsTab, Closable = true
            });
        }