コード例 #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
            });
        }
コード例 #2
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 = OpusCatMTEngine.Properties.Resources.Main_OnlineModelsTab, Closable = true
            });
        }