本文整理汇总了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();
}
示例2: EditTableVariable
public void EditTableVariable(Variable variable)
{
variableTableEditWindow = variableTableWindowFactory.Create();
IVariableTableEditViewModel variableTableEditViewModel = variableTableEditViewModelFactory.Create(variable);
variableTableEditWindow.DataContext = variableTableEditViewModel;
variableTableEditWindow.ShowDialog();
}
示例3: EditTestItem
public void EditTestItem(TestItem testItem)
{
CurrentTestItem = testItem;
testItemEditorWindow = testItemEditorWindowFactory.Create();
ITestItemEditorViewModel testItemEditorViewModel = testItemEditorViewModelFactory.Create(testItem);
testItemEditorWindow.DataContext = testItemEditorViewModel;
testItemEditorWindow.ShowDialog();
}
示例4: New
public void New()
{
newProjectSuiteWindow = newProjectSuiteWindowFactory.Create();
INewProjectSuiteViewModel newProjectSuiteViewModel = newProjectSuiteViewModelFactory.Create();
newProjectSuiteWindow.DataContext = newProjectSuiteViewModel;
newProjectSuiteWindow.ShowDialog();
}
示例5: MenuSettings_Click
private void MenuSettings_Click(object sender, RoutedEventArgs e)
{
ApplicationSettings = this.WindowFactory.CreateWindow("ApplicationSettings");
ApplicationSettings.SaveClick += (s, ev) => SaveApplicationSettings(ApplicationSettings);
ApplicationSettings.ShowDialog();
}
示例6: MenuExpressionBuilderClick
private void MenuExpressionBuilderClick(object sender, RoutedEventArgs e)
{
this.ExpressionBuilder = ExpressionBuilderWindowFactory.CreateWindow();
ExpressionBuilder.ShowDialog();
}
示例7: MenuAboutClick
private void MenuAboutClick(object sender, RoutedEventArgs e)
{
this.About = WindowFactory.CreateWindow("About");
About.ShowDialog();
}