示例#1
0
 private void Connect(object sender, RoutedEventArgs e)
 {
     client = new ClientWork(ipText.Text);
     client.SendCommand("start", "");
     client.GetCommand();
     Content = new LoginPage(this, client);
 }
 public RegistrationPage(Window window, ClientWork client)
 {
     InitializeComponent();
     this.window  = window;
     this.client  = client;
     keyText.Text = "6LauE3AGhBAAAAAAAAAAGTcpkyF9Dvq4NSHoJ7Cx-beAk8jZMZ7xHH8U3GExp2Va";
     registrationButton.IsEnabled = true;
 }
 public MainPage(Window window, ClientWork client)
 {
     isDownload = false;
     InitializeComponent();
     this.window   = window;
     this.client   = client;
     welcome.Text += client.Name + "!";
     doButtonsActive(true);
     Refreshing();
 }
示例#4
0
        public LogPage(Window win, ClientWork user)
        {
            InitializeComponent();
            window = win;
            client = user;

            if (client.LogList.Count > 1)
            {
                for (int i = 1; i < client.LogList.Count; i++)
                {
                    var        items   = client.LogList[i].Split('-');
                    LogElement element = new LogElement();
                    element.Name         = items[0];
                    element.CreationDate = items[1];
                    element.DeletedDate  = items[2];
                    logList.Items.Add(element);
                }
            }
        }
 public LoginPage(Window window, ClientWork client)
 {
     this.window = window;
     this.client = client;
     InitializeComponent();
 }