AcManager.AppArguments.Has C# (CSharp) Méthode

Has() public static méthode

public static Has ( AppFlag flag ) : bool
flag AppFlag
Résultat bool
        public static bool Has(AppFlag flag) {
            return _args != null && _args.ContainsKey(flag);
        }

Usage Example

Exemple #1
0
 private static Task ShowMainWindowAsync()
 {
     if (AppArguments.Has(AppFlag.ServerManagementMode) && InternalUtils.IsAllRight)
     {
         return(new ModernWindow {
             Title = "Content Manager Servers Manager",
             BackButtonVisibility = Visibility.Collapsed,
             TitleButtonsVisibility = Visibility.Collapsed,
             MenuTopRowVisibility = Visibility.Collapsed,
             MenuLinkGroups =
             {
                 new LinkGroupFilterable {
                     Source = new Uri("/Pages/Lists/ServerPresetsListPage.xaml", UriKind.Relative),
                     GroupKey = "server",
                     DisplayName = AppStrings.Main_ServerPresets,
                     FilterHint = FilterHints.ServerPresets
                 }
             },
             DefaultContentSource = new Uri("/Pages/Lists/ServerPresetsListPage.xaml", UriKind.Relative),
             MinHeight = 400,
             MinWidth = 800,
             MaxHeight = DpiAwareWindow.UnlimitedSize,
             MaxWidth = DpiAwareWindow.UnlimitedSize,
             Padding = new Thickness(0),
             SizeToContent = SizeToContent.Manual,
             ResizeMode = ResizeMode.CanResizeWithGrip,
             LocationAndSizeKey = @".ServerManagerWindow"
         }.ShowAndWaitAsync());
     }
     return(new MainWindow().ShowAndWaitAsync());
 }
All Usage Examples Of AcManager.AppArguments::Has