Ejemplo n.º 1
0
        private void Window_client_ContentRendered(object sender, EventArgs e)
        {
            SAPPTcpClient.logger.Info("Finished rendering content for SAPPRemoteUI");

            if (theme_p.SelectedItem is ColorDataList)
            {
                if (((ColorDataList)this.theme_p.SelectedItem).ColorMetadata == "REC")
                {
                    SetTheme(((ColorDataList)this.theme_p.SelectedItem).ColorName);
                }
                else if (((ColorDataList)this.theme_p.SelectedItem).ColorMetadata != "SEP")
                {
                    string cdata = ((ColorDataList)this.theme_p.SelectedItem).ColorMetadata;
                    Color  cx    = (Color)System.Windows.Media.ColorConverter.ConvertFromString(cdata);
                    SetTheme(cx);
                }
            }
            this.grid_loading.Visibility = Visibility.Hidden;

            if (SAPPTcpClient.ISettings.AutoConnect == true)
            {
                SAPPTcpClient.Connect(textBox_ip_port.Text);
            }

            textBox_password.Password = SAPPTcpClient.ISettings.Password;
        }
Ejemplo n.º 2
0
 private void Button_connect_Click(object sender, RoutedEventArgs e)
 {
     SAPPTcpClient.Connect(textBox_ip_port.Text);
 }