private void ListViewMenu_SelectionChanged(object sender, SelectionChangedEventArgs e) { switch (((ListViewItem)((ListView)sender).SelectedItem).Name) { case "ItemHome": MenuScreen menu = new MenuScreen(arr); menu.Show(); this.Close(); break; case "AddRec": NewRecord nR = new NewRecord(arr); nR.WindowState = WindowState.Maximized; nR.Show(); this.Close(); break; case "GitHub": System.Diagnostics.Process.Start("https://github.com/CIMDBORG/CIMMigrationProject/issues"); break; default: break; } }
//******************************************************************* //Author: Pawel Kusiak //Name: UserMenu_Window.xaml.cs //Function Name: //Purpose: Opens a new New Issue form on button click, by creating and showing an instance of Window NewRecord. // Passes login-based data to NewRecord form for pre-population of fields. //Parameters: //Return Value: //Local Variables: //Algorithm: //Version: //Date modified: //Assistance Received: //******************************************************************* private void NewRecordbutton_Click(object sender, RoutedEventArgs e) { NewRecord newRecord = new NewRecord(arr); newRecord.WindowState = WindowState.Maximized; newRecord.Show(); }
/*Name: Michael Figueroa * Function Name: CancelButton_Click * Purpose: event handler for cancel button; exits the form * Parameters: Auto-Generated * Return Value: None * Local Variables: None * Algorithm: ID is assigned using parameter int x, status_date is assigned using StatusDatePicker, sys_impact is assigned using System_ComboBox, status_note * Version: 2.0.0.4 * Date modified: Prior to 1/1/20 * Assistance Received: N/A */ private void CancelButton_Click(object sender, RoutedEventArgs e) { if (MessageBox.Show("Are you sure you want to exit?", "", MessageBoxButton.YesNo) == MessageBoxResult.Yes) { MenuScreen mS = new MenuScreen(arr); mS.Show(); this.Close(); } else { NewRecord nR = new NewRecord(arr); nR.Show(); nR.WindowState = WindowState.Maximized; this.Close(); } }
//******************************************************************* // DESCRIPTION: Opens a new New Issue form on button click, by creating and showing an instance of Window NewRecord. // Passes login-based data to NewRecord form for pre-population of fields. //******************************************************************* private void NewRecordbutton_Click(object sender, RoutedEventArgs e) { NewRecord newRecord = new NewRecord(arr); newRecord.Show(); }