void windowRequests_WindowLoaded_FilterResultionPartNo(object sender, EventArgs e) { PartWithNotify partWithNotify = (PartWithNotify)View.CurrentItem; WindowRequests windowRequests = (WindowRequests)sender; windowRequests.FilterResultionPartNo(partWithNotify.ResolutionPartNo); }
void windowRequests_WindowLoaded_FilterPartNoOriginal(object sender, EventArgs e) { PartWithNotify partWithNotify = (PartWithNotify)View.CurrentItem; WindowRequests windowRequests = (WindowRequests)sender; windowRequests.FilterPartNoOriginal(partWithNotify.PartNoOrignal); }
void windowRequests_WindowLoaded(object sender, EventArgs e) { PartWithNotify partWithNotify = (PartWithNotify)View.CurrentItem; WindowRequests windowRequests = (WindowRequests)sender; windowRequests.OpenWindowInsertRequest(partWithNotify); }
private void RibbonButtonAddRequest_OnClick(object sender, RoutedEventArgs e) { if (View.CurrentItem == null) { return; } PartWithNotify partWithNotify = (PartWithNotify)View.CurrentItem; bool isWindowRequestOpen = false; WindowRequests windowRequests = null; foreach (var window in Application.Current.Windows) { if (window.GetType() == typeof(WindowRequests)) { isWindowRequestOpen = true; windowRequests = (WindowRequests)window; windowRequests.Activate(); windowRequests.OpenWindowInsertRequest(partWithNotify); break; } } if (isWindowRequestOpen == false) { windowRequests = new WindowRequests(); windowRequests.WindowLoaded += windowRequests_WindowLoaded; windowRequests.Show(); } }
private void MenuItemFilterByPartNoOriginal_OnClick(object sender, RadRoutedEventArgs e) { if (View.CurrentItem == null) { return; } PartWithNotify partWithNotify = (PartWithNotify)View.CurrentItem; if (string.IsNullOrEmpty(partWithNotify.PartNoOrignal)) { return; } bool isWindowRequestOpen = false; WindowRequests windowRequests = null; foreach (var window in Application.Current.Windows) { if (window.GetType() == typeof(WindowRequests)) { isWindowRequestOpen = true; windowRequests = (WindowRequests)window; windowRequests.FilterPartNo(partWithNotify.PartNo); windowRequests.Activate(); break; } } if (isWindowRequestOpen == false) { windowRequests = new WindowRequests(); windowRequests.WindowLoaded += windowRequests_WindowLoaded_FilterPartNoOriginal; windowRequests.Show(); } }
private void RibbonButtonRequests_OnClick(object sender, RoutedEventArgs e) { WindowRequests windowRequests = new WindowRequests(); windowRequests.Show(); }