Пример #1
0
        private void StormIntensities_RightClick_Edit_Click(object sender, RoutedEventArgs e)
        {
            EditStorm EStorm = new EditStorm(this); // my old code was so ugly lol

            EStorm.Owner = this;
            EStorm.Show();
        }
Пример #2
0
        private void StormMenu_EditSelected_Click(object sender, RoutedEventArgs e)
        {
            // Shows the edit storm window.

            // if nothing is selected show an error message
            if (StormIntensities.SelectedIndex == -1)
            {
                MessageBox.Show("Error: Can't edit a point when there are no points selected!", "ACE Calculator", MessageBoxButton.OK, MessageBoxImage.Warning);
                return;
            }

            EditStorm EditStorm = new EditStorm(this);

            EditStorm.ShowDialog();
        }