public TeacherLogIn() { this.username = new NoneLogin(); this.password = new NoneLogin(); this.loginVisitor = new TheVisitor <string>(); this.InitializeComponent(); }
public U Visit <U>(IOptionVisitor <T, U> visitor) { return(visitor.OnSome <U>(this.value)); }
public override bool Accept(IOptionVisitor visitor) { return visitor.Visit(this); }
public abstract bool Accept(IOptionVisitor visitor);
public U Visit <U>(IOptionVisitor <T, U> visitor) { return(visitor.OnNone <U>()); }
public IElement Accept(IOptionVisitor <IElement> visitor) => visitor.Visit(this);
public void ClassicVisit(IOptionVisitor <string> visitor) { visitor.OnUsername(this); }
public void ClassicVisit(IOptionVisitor <string> visitor) { visitor.OnPassword(this); }
public void ClassicVisit(IOptionVisitor <string> visitor) { visitor.OnNone(); }
public U Visit <U>(IOptionVisitor <T, U> visistor) { return(visistor.onNone()); }
public override bool Accept(IOptionVisitor visitor) { return(visitor.Visit(this)); }
public void ClassicVisit <U>(IOptionVisitor visitor) { visitor.OnNone(); }
public void ClassicVisit <U>(IOptionVisitor visitor) { visitor.OnSome(this.value); }