Esempio n. 1
0
    private void New_Click(object sender, RoutedEventArgs e)
    {
        var createModDialog = new CreateModDialog(ViewModel.ModConfigService);

        createModDialog.Owner = Window.GetWindow(this);
        createModDialog.ShowDialog();
    }
Esempio n. 2
0
 private void Button_PreviewMouseDown(object sender, MouseButtonEventArgs e)
 {
     if (e.LeftButton == MouseButtonState.Pressed)
     {
         var createModDialog = new CreateModDialog();
         createModDialog.Owner = Window.GetWindow(this);
         createModDialog.ShowDialog();
     }
 }
Esempio n. 3
0
        private void Button_PreviewMouseDown(object sender, MouseButtonEventArgs e)
        {
            if (e.LeftButton != MouseButtonState.Pressed)
            {
                return;
            }

            var createModDialog = new CreateModDialog(ViewModel.ModConfigService);

            createModDialog.Owner = Window.GetWindow(this);
            createModDialog.ShowDialog();
        }