예제 #1
0
        public SmartComServerUi(SmartComServer server, Log log)
        {
            InitializeComponent();
            _server = server;

            TextBoxServerAdress.Text     = _server.ServerAdress;
            TextBoxServerPort.Text       = _server.ServerPort;
            TextBoxUserName.Text         = _server.UserLogin;
            TextBoxUserPassword.Password = _server.UserPassword;

            LabelStatus.Content = _server.ServerStatus;
            _server.ConnectStatusChangeEvent += _server_ConnectStatusChangeEvent;
            log.StartPaint(Host);

            Title = OsLocalization.Market.TitleAServerParametrUi + _server.ServerType;

            LabelAdress.Content      = OsLocalization.Market.Message59;
            LabelPort.Content        = OsLocalization.Market.Message90;
            LabelNameUser.Content    = OsLocalization.Market.Message63;
            LabelPassword.Content    = OsLocalization.Market.Message64;
            LabelServerState.Content = OsLocalization.Market.Label21;

            ButtonConnect.Content = OsLocalization.Market.ButtonConnect;
            ButtonAbort.Content   = OsLocalization.Market.ButtonDisconnect;
        }
예제 #2
0
        public SmartComServerUi(SmartComServer server, Log log)
        {
            InitializeComponent();
            _server = server;

            TextBoxServerAdress.Text     = _server.ServerAdress;
            TextBoxServerPort.Text       = _server.ServerPort;
            TextBoxUserName.Text         = _server.UserLogin;
            TextBoxUserPassword.Password = _server.UserPassword;

            LabelStatus.Content = _server.ServerStatus;
            _server.ConnectStatusChangeEvent += _server_ConnectStatusChangeEvent;
            log.StartPaint(Host);
        }