■ ■ ■ ■ ■ ■
Source/NETworkManager/ViewModels/NetworkInterfaceViewModel.cs
| skipped 580 lines |
581 | 581 | | public Func<double, string> FormatterSpeed { get; set; } |
582 | 582 | | public SeriesCollection Series { get; set; } |
583 | 583 | | |
584 | | - | private async void LoadNetworkInterfaces() |
| 584 | + | private async Task LoadNetworkInterfaces() |
585 | 585 | | { |
586 | 586 | | IsNetworkInterfaceLoading = true; |
587 | 587 | | |
| skipped 25 lines |
613 | 613 | | |
614 | 614 | | private bool ReloadNetworkInterfaces_CanExecute(object obj) => !IsNetworkInterfaceLoading && Application.Current.MainWindow != null && !((MetroWindow)Application.Current.MainWindow).IsAnyDialogOpen; |
615 | 615 | | |
616 | | - | private async void ReloadNetworkInterfacesAction() |
| 616 | + | private async Task ReloadNetworkInterfacesAction() |
617 | 617 | | { |
618 | 618 | | IsNetworkInterfaceLoading = true; |
619 | 619 | | |
| skipped 16 lines |
636 | 636 | | |
637 | 637 | | private bool OpenNetworkConnections_CanExecute(object paramter) => Application.Current.MainWindow != null && !((MetroWindow)Application.Current.MainWindow).IsAnyDialogOpen; |
638 | 638 | | |
639 | | - | public async void OpenNetworkConnectionsAction() |
| 639 | + | public async Task OpenNetworkConnectionsAction() |
640 | 640 | | { |
641 | 641 | | try |
642 | 642 | | { |
| skipped 66 lines |
709 | 709 | | |
710 | 710 | | private bool FlushDNS_CanExecute(object paramter) => Application.Current.MainWindow != null && !((MetroWindow)Application.Current.MainWindow).IsAnyDialogOpen; |
711 | 711 | | |
712 | | - | private async void FlushDNSAction() |
| 712 | + | private async Task FlushDNSAction() |
713 | 713 | | { |
714 | 714 | | IsConfigurationRunning = true; |
715 | 715 | | IsStatusMessageDisplayed = false; |
| skipped 14 lines |
730 | 730 | | |
731 | 731 | | private bool ReleaseRenew_CanExecute(object paramter) => Application.Current.MainWindow != null && !((MetroWindow)Application.Current.MainWindow).IsAnyDialogOpen; |
732 | 732 | | |
733 | | - | private async void ReleaseRenewAction() |
| 733 | + | private async Task ReleaseRenewAction() |
734 | 734 | | { |
735 | 735 | | IsConfigurationRunning = true; |
736 | 736 | | |
| skipped 6 lines |
743 | 743 | | |
744 | 744 | | private bool Release_CanExecute(object paramter) => Application.Current.MainWindow != null && !((MetroWindow)Application.Current.MainWindow).IsAnyDialogOpen; |
745 | 745 | | |
746 | | - | private async void ReleaseAction() |
| 746 | + | private async Task ReleaseAction() |
747 | 747 | | { |
748 | 748 | | IsConfigurationRunning = true; |
749 | 749 | | |
| skipped 6 lines |
756 | 756 | | |
757 | 757 | | private bool Renew_CanExecute(object paramter) => Application.Current.MainWindow != null && !((MetroWindow)Application.Current.MainWindow).IsAnyDialogOpen; |
758 | 758 | | |
759 | | - | private async void RenewAction() |
| 759 | + | private async Task RenewAction() |
760 | 760 | | { |
761 | 761 | | IsConfigurationRunning = true; |
762 | 762 | | |
| skipped 6 lines |
769 | 769 | | |
770 | 770 | | private bool AddIPv4Address_CanExecute(object paramter) => Application.Current.MainWindow != null && !((MetroWindow)Application.Current.MainWindow).IsAnyDialogOpen; |
771 | 771 | | |
772 | | - | private async void AddIPv4AddressAction() |
| 772 | + | private async Task AddIPv4AddressAction() |
773 | 773 | | { |
774 | 774 | | var customDialog = new CustomDialog |
775 | 775 | | { |
| skipped 48 lines |
824 | 824 | | ConfigSecondaryDNSServer = dnsServers.Count > 1 ? dnsServers[1].ToString() : string.Empty; |
825 | 825 | | } |
826 | 826 | | } |
827 | | - | public async void ApplyConfiguration() |
| 827 | + | public async Task ApplyConfiguration() |
828 | 828 | | { |
829 | 829 | | IsConfigurationRunning = true; |
830 | 830 | | IsStatusMessageDisplayed = false; |
| skipped 48 lines |
879 | 879 | | } |
880 | 880 | | } |
881 | 881 | | |
882 | | - | public async void AddIPv4Address(string ipAddress, string subnetmaskOrCidr) |
| 882 | + | public async Task AddIPv4Address(string ipAddress, string subnetmaskOrCidr) |
883 | 883 | | { |
884 | 884 | | IsConfigurationRunning = true; |
885 | 885 | | IsStatusMessageDisplayed = false; |
| skipped 28 lines |
914 | 914 | | } |
915 | 915 | | } |
916 | 916 | | |
917 | | - | public async void ApplyProfileConfig() |
| 917 | + | public async Task ApplyProfileConfig() |
918 | 918 | | { |
919 | 919 | | IsConfigurationRunning = true; |
920 | 920 | | IsStatusMessageDisplayed = false; |
| skipped 240 lines |