예제 #1
0
파일: Header.xaml.cs 프로젝트: lx223/Q3
        public async void NewQueueClicked(object sender, RoutedEventArgs e)
        {
            var window = new NewQueue(GroupsCache);
            window.Owner = ParentQueueList;
            window.ShowDialog();

            if (!string.IsNullOrWhiteSpace(window.NewQueueName))
            {
                var hub = Hub;
                Dispatcher.InvokeAsync(() => hub.CreateQueue(window.NewQueueName, (string)window.GroupSelector.SelectedValue));
            }
            Win32.IsApplicationActive();
        }
예제 #2
0
파일: Header.xaml.cs 프로젝트: lx223/Q3
        public async void NewQueueClicked(object sender, RoutedEventArgs e)
        {
            var window = new NewQueue(GroupsCache);

            window.Owner = ParentQueueList;
            window.ShowDialog();

            if (!string.IsNullOrWhiteSpace(window.NewQueueName))
            {
                var hub = Hub;
                Dispatcher.InvokeAsync(() => hub.CreateQueue(window.NewQueueName, (string)window.GroupSelector.SelectedValue));
            }
            Win32.IsApplicationActive();
        }