Exemple #1
0
        private void Load(object sender, RoutedEventArgs e)
        {
            GridCursor.Margin      = new Thickness(0 + (110 * 0), 20, 0, 0);
            tcSample.SelectedIndex = 0;
            var i = (ClientsListView.connectedClients() + 1).ToString();

            txtClientID.Text           = string.Format("Client {0}", int.Parse(i) < 10 && int.Parse(i) > 0 ? "0" + i : i);
            lblLogDir.Foreground       = new SolidColorBrush(Colors.LightGray);
            txtLogDir.IsEnabled        = false;
            chkKeyLogger.IsChecked     = false;
            chkHideLogsDir.IsEnabled   = false;
            chkAutoStart.IsChecked     = false;
            chkIcon.IsChecked          = false;
            txtStartupName.IsEnabled   = false;
            txtStartupName.Text        = "";
            txtSubDirI.Text            = "";
            txtFileNameI.Text          = "";
            txtLogDir.Text             = "";
            txtAddIcon.Text            = "";
            radioGroup.IsEnabled       = false;
            spSubDirectory.IsEnabled   = false;
            spFileName.IsEnabled       = false;
            chkInstall.IsChecked       = false;
            radio1.IsChecked           = true;
            chkHideSubDirI.IsChecked   = false;
            chkHideFileI.IsChecked     = false;
            chkHideLogsDir.IsChecked   = false;
            lblDirectory.Foreground    = new SolidColorBrush(Colors.LightGray);
            lblSubDirectory.Foreground = new SolidColorBrush(Colors.LightGray);
            lblFileName.Foreground     = new SolidColorBrush(Colors.LightGray);
            lblStartupName.Foreground  = new SolidColorBrush(Colors.LightGray);
        }
Exemple #2
0
        private void Load(object sender, RoutedEventArgs e)
        {
            var i = (ClientsListView.connectedClients() + 1).ToString();

            txtClientTag.Text      = string.Format("Client {0}", int.Parse(i) < 10 ? "0" + i : i);
            lblLogDir.Foreground   = new SolidColorBrush(Colors.LightGray);
            txtLogDir.IsEnabled    = false;
            chkKeyLogger.IsChecked = false;
            chkDirHidden.IsEnabled = false;
        }