public NewStateForm(IAutomata automata) { Automata = automata ?? throw new ArgumentNullException(nameof(automata), "The automata can not be null!"); InitializeComponent(); if (Automata.GetStartState() != null) { StartStateWarningLabel.Visible = true; } }