Esempio n. 1
0
        public static async Task <bool> KickAsync(Authentication authentication, IUserDescriptor descriptor)
        {
            var dialog = await KickViewModel.CreateInstanceAsync(authentication, descriptor);

            if (dialog != null && await dialog.ShowDialogAsync() == true)
            {
                return(true);
            }
            return(false);
        }
Esempio n. 2
0
        public Kick(IMainWindowTelnet telnet, string playerID = "")
        {
            InitializeComponent();

            var model = new KickModel(telnet)
            {
                Name = playerID
            };

            model.Ended += Model_Ended;

            var vm = new KickViewModel(model);

            DataContext = vm;
        }
Esempio n. 3
0
        public static async Task <bool> KickAsync(Authentication authentication, IUserDescriptor descriptor)
        {
            var dialog = await KickViewModel.CreateInstanceAsync(authentication, descriptor);

            return(dialog?.ShowDialog() == true);
        }