Ejemplo n.º 1
0
        public static SearchSettings Instance()
        {
            RequestCategoryWindow NewForm = new RequestCategoryWindow();

            SessionCore.Instance.Windows.ShowDialog(NewForm);
            return(NewForm.result);
        }
Ejemplo n.º 2
0
        private async void CommandBinding_RequestCategory(object sender, ExecutedRoutedEventArgs e)
        {
            if (!menuRequestCategory.IsEnabled)
            {
                return;
            }

            if (!menuRequestCategory.IsChecked)
            {
                SearchSettings Result = RequestCategoryWindow.Instance();
                if (Result != null)
                {
                    await SetRequestCategoryModeAsync(Result);
                }
            }
            else
            {
                await SetRequestCategoryModeAsync(null);
            }
        }
 public static SearchSettings Instance() {
     RequestCategoryWindow NewForm = new RequestCategoryWindow();
     SessionCore.Instance.Windows.ShowDialog(NewForm);
     return NewForm.result;
 }