当前位置: 首页>>代码示例>>C#>>正文


C# IWindow.ShowDialog方法代码示例

本文整理汇总了C#中IWindow.ShowDialog方法的典型用法代码示例。如果您正苦于以下问题:C# IWindow.ShowDialog方法的具体用法?C# IWindow.ShowDialog怎么用?C# IWindow.ShowDialog使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在IWindow的用法示例。


在下文中一共展示了IWindow.ShowDialog方法的7个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。

示例1: EditParameter

        public void EditParameter(OperationParameter parameter)
        {
            editParameterWindow = editParameterWindowFactory.Create(parameter.TypeIdentifier);
            IEditParameterViewModel editParameterViewModel = editParameterViewModelFactory.Create(parameter);

            editParameterWindow.DataContext = editParameterViewModel;

            editParameterWindow.ShowDialog();
        }
开发者ID:philt5252,项目名称:GoldenHorse,代码行数:9,代码来源:TestItemController.cs

示例2: EditTableVariable

        public void EditTableVariable(Variable variable)
        {
            variableTableEditWindow = variableTableWindowFactory.Create();
            IVariableTableEditViewModel variableTableEditViewModel = variableTableEditViewModelFactory.Create(variable);

            variableTableEditWindow.DataContext = variableTableEditViewModel;

            variableTableEditWindow.ShowDialog();
        }
开发者ID:philt5252,项目名称:GoldenHorse,代码行数:9,代码来源:VariableController.cs

示例3: EditTestItem

        public void EditTestItem(TestItem testItem)
        {
            CurrentTestItem = testItem;
            testItemEditorWindow = testItemEditorWindowFactory.Create();
            ITestItemEditorViewModel testItemEditorViewModel = testItemEditorViewModelFactory.Create(testItem);

            testItemEditorWindow.DataContext = testItemEditorViewModel;

            testItemEditorWindow.ShowDialog();
        }
开发者ID:philt5252,项目名称:GoldenHorse,代码行数:10,代码来源:TestItemController.cs

示例4: New

        public void New()
        {
            newProjectSuiteWindow = newProjectSuiteWindowFactory.Create();
            INewProjectSuiteViewModel newProjectSuiteViewModel = newProjectSuiteViewModelFactory.Create();

            newProjectSuiteWindow.DataContext = newProjectSuiteViewModel;

            newProjectSuiteWindow.ShowDialog();
        }
开发者ID:philt5252,项目名称:GoldenHorse,代码行数:9,代码来源:ProjectSuiteController.cs

示例5: MenuSettings_Click

 private void MenuSettings_Click(object sender, RoutedEventArgs e)
 {
     ApplicationSettings = this.WindowFactory.CreateWindow("ApplicationSettings");
     ApplicationSettings.SaveClick += (s, ev) => SaveApplicationSettings(ApplicationSettings);
     ApplicationSettings.ShowDialog();
 }
开发者ID:DannyGB,项目名称:OxTail,代码行数:6,代码来源:MainWindow.xaml.cs

示例6: MenuExpressionBuilderClick

 private void MenuExpressionBuilderClick(object sender, RoutedEventArgs e)
 {
     this.ExpressionBuilder = ExpressionBuilderWindowFactory.CreateWindow();
     ExpressionBuilder.ShowDialog();
 }
开发者ID:DannyGB,项目名称:OxTail,代码行数:5,代码来源:MainWindow.xaml.cs

示例7: MenuAboutClick

 private void MenuAboutClick(object sender, RoutedEventArgs e)
 {
     this.About = WindowFactory.CreateWindow("About");
     About.ShowDialog();
 }
开发者ID:DannyGB,项目名称:OxTail,代码行数:5,代码来源:MainWindow.xaml.cs


注:本文中的IWindow.ShowDialog方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。