public static void SaveAndRenderData(IDataRenderer dataRenderer) { dataRenderer.SaveData(); dataRenderer.RenderData(); //...more...code.. }