MCLauncherW.MainWindow.minecraftUpdate C# (CSharp) Method

minecraftUpdate() public method

public minecraftUpdate ( ) : void
return void
        public void minecraftUpdate()
        {
            if (isMinecraftUpdate)
            {
                if (MessageBox.Show(this.Resources["haveNewMinecraftUpdates"].ToString(), this.Resources["haveNewUpdatesTitle"].ToString(), MessageBoxButton.YesNo, MessageBoxImage.Information) == MessageBoxResult.Yes)
                {
                    try
                    {
                        this.Hide();
                        GetUpdate updateForm = new GetUpdate();
                        updateForm.Show();
                        updateForm.setParent(this);
                        updateForm.setDownload(minecraftDownload);
                        updateForm.minecraftUpdateStart();
                        updateForm.Show();
                    }
                    catch (Exception ex)
                    {
                        if (ex.Message == "networkerror")
                        {
                            MessageBox.Show(this.Resources["networkError"].ToString(), this.Resources["errorMessageTitle"].ToString(), MessageBoxButton.OK, MessageBoxImage.Error);
                        }
                    }
                }
            }
        }