/// <summary> /// Handles the Click event of the Item_Stages_button control. /// </summary> /// <param name="sender">The source of the event.</param> /// <param name="e">The <see cref="RoutedEventArgs"/> instance containing the event data.</param> private void Item_Stages_button_Click(object sender, RoutedEventArgs e) { try { DataRowView row = (DataRowView)dataGrid1.SelectedItems[0]; string selected_Item = row["מקט פריט"].ToString(); ManagerGeneralItemStagesGui MGIG = new ManagerGeneralItemStagesGui(selected_Item); MGIG.Owner = this; MGIG.ShowDialog(); } catch { MessageBox.Show("לא נבחר סט פריט", "!שים לב", MessageBoxButton.OK, MessageBoxImage.Error); return; } }
/// <summary> /// Handles the Click event of the Item_Stages_button control. /// </summary> /// <param name="sender">The source of the event.</param> /// <param name="e">The <see cref="RoutedEventArgs"/> instance containing the event data.</param> private void Item_Stages_button_Click(object sender, RoutedEventArgs e) { ManagerGeneralItemStagesGui MGIG = new ManagerGeneralItemStagesGui(itemID); MGIG.Owner = this; MGIG.ShowDialog(); }