ChronopicWindow.updateChronopicWin C# (CSharp) Method

updateChronopicWin() private method

private updateChronopicWin ( bool state, string message ) : void
state bool
message string
return void
    private void updateChronopicWin(bool state, string message)
    {
        LogB.Information("updateChronopicWin-1");

        //need to do this, if not it crashes because chronopicConnectionWin gets died by thread ending
        //chronopicConnectionWin = ChronopicConnection.Show();

        LogB.Information("updateChronopicWin-2");
        if(state) {
            //chronopicConnectionWin.Connected(message);
            sensitivityConnected(message);
            progressbar.Fraction = 1.0;
        }
        else
            //chronopicConnectionWin.Disconnected(message);
            sensitivityDisconnected(message);

        needUpdateChronopicWin = false;
    }