示例#1
5
 // There's not supposed to be any logic in the view, so I'd move most of the methods in here to a controller
 public LoginScreen(MainFrame mainFrame)
 {
     this.MainFrame = mainFrame;
     InitializeComponent();
     _controller = new LoginController(mainFrame, this);
 }
 public LoginScreen(MainFrame mainFrame)   
                                 // There's not supposed to be any logic in the view, so I'd move most of the methods in here to a controller
 {                                      
     this.MainFrame = mainFrame;
     InitializeComponent();
     _controller = new LoginController(mainFrame, this);
 }