static void Main(string[] args) { var form = new DbForm(); var state = new State(); var db = new DbLogic(); // stuff here var sel = form.Selection; db.Create(state, sel); }