Exemple #1
0
        void windowRequests_WindowLoaded_FilterResultionPartNo(object sender, EventArgs e)
        {
            PartWithNotify partWithNotify = (PartWithNotify)View.CurrentItem;
            WindowRequests windowRequests = (WindowRequests)sender;

            windowRequests.FilterResultionPartNo(partWithNotify.ResolutionPartNo);
        }
Exemple #2
0
        void windowRequests_WindowLoaded_FilterPartNoOriginal(object sender, EventArgs e)
        {
            PartWithNotify partWithNotify = (PartWithNotify)View.CurrentItem;
            WindowRequests windowRequests = (WindowRequests)sender;

            windowRequests.FilterPartNoOriginal(partWithNotify.PartNoOrignal);
        }
Exemple #3
0
        void windowRequests_WindowLoaded(object sender, EventArgs e)
        {
            PartWithNotify partWithNotify = (PartWithNotify)View.CurrentItem;
            WindowRequests windowRequests = (WindowRequests)sender;

            windowRequests.OpenWindowInsertRequest(partWithNotify);
        }
Exemple #4
0
        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();
            }
        }
Exemple #5
0
        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();
            }
        }
Exemple #6
0
        private void RibbonButtonRequests_OnClick(object sender, RoutedEventArgs e)
        {
            WindowRequests windowRequests = new WindowRequests();

            windowRequests.Show();
        }