Example #1
0
        //Конструктор
        public Controller(IViewLogin view)
        {
            _authorization = false;

            _view = view;
            _view.Connected += _view_Connected;

            _model = new Model();
            _model.AddedSetting += _model_AddedSetting;
            _view.ServerAddItems(_model.ServerSettings);
        }
Example #2
0
        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;
        }
Example #3
0
 public static void SetLoginForm(IViewLogin vLogin)
 {
     _vLogin = vLogin;
 }