public void HandlePost(PostInfo i_Post) { SendPostCommand postCommand = new SendPostCommand { Post = i_Post, LoggedInUser = this.LoggedInUser }; bool networkAvalable = NetworkInterface.GetIsNetworkAvailable(); if (Enabled && !networkAvalable) { MessageBox.Show(@"Network is unavailable. The post will be posted when network is returns."); NetworkCommandScheduler.ScheduleOnNetworkAvailability(postCommand); } else { postCommand.Execute(); } }