Пример #1
0
        private void requestRepair_Click(object sender, RoutedEventArgs e)
        {
            requestRepair requestRepair_nav = new requestRepair((int)id, username_global);

            requestRepair_nav.Show();
            this.Close();
        }
Пример #2
0
        private void Wip_see_Click(object sender, RoutedEventArgs e)
        {
            // See Browse.cs
            try
            {
                var repairTracking = new requestRepair((int)id, username_global);

                WIP selected_id = (WIP)current_repairs.SelectedItems[0];
                repairTracking.tracking_show((int)selected_id.ID);
            }
            catch (Exception Ex)
            {
                MessageBox.Show("You must have selected an item before proceeding!" /*Error: " + Ex + ". Actual Error Message: " + Ex.Message*/, "Alert!", MessageBoxButton.OK, MessageBoxImage.Exclamation);
            }
        }