//Конструктор public Controller(IViewLogin view) { _authorization = false; _view = view; _view.Connected += _view_Connected; _model = new Model(); _model.AddedSetting += _model_AddedSetting; _view.ServerAddItems(_model.ServerSettings); }
public PLogin( IViewLogin View ) { _view = View; _connectionString = ""; _view.clickOk +=new EventHandler<EventArgs>(On_view_clickOk); _view.clickCancel += new EventHandler<EventArgs>(On_view_clickCancel); isShowed = false; }
public static void SetLoginForm(IViewLogin vLogin) { _vLogin = vLogin; }