private void FadingTextOut(Object state) // Kaldes når fadingTextTimer går af indtil opacity igen er 0 { SaveBlockOpacity = SaveBlockOpacity - 0.1f; if (SaveBlockOpacity > 0) { FadingTextTimer.Change(100, Timeout.Infinite); } else { fadingTextCallBack = FadingText; FadingTextTimer.Dispose(); } }
private void FadingText(Object state) // Kaldes når fadingTextTimer går af indtil opacity er 1 { SaveBlockOpacity = SaveBlockOpacity + 0.1f; if (SaveBlockOpacity < 1) { FadingTextTimer.Change(100, Timeout.Infinite); } else { fadingTextCallBack = FadingTextOut; FadingTextTimer.Change(100, Timeout.Infinite); } }