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

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

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

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

            windowRequests.Show();
        }