Exemple #1
0
 public SshConnectionForm(SshSessionDetails sessionDetail, ProgramInfo info)
 {
     InitializeComponent();
     // Load in the object passed to the
     details     = sessionDetail;
     information = info;
 }
Exemple #2
0
        private void Form1_Load(object sender, EventArgs e)
        {
            // This on opening should load in the settings from file and add them to the settings page. This will also be passed to each form
            // to keep settings consistant.
            // Json Formatted. (File stored with exe as pam.settings)

            try
            {
                // Load file
                var fileInformation = JsonConvert.DeserializeObject <ProgramInfo>(System.IO.File.ReadAllText(Path.Combine(Directory.GetCurrentDirectory(), "pam.settings")));
                // Send info to the form.
                information = fileInformation;
                // Load these into the settings box
                txtPort.Text          = information.Port.ToString();
                txtServerAddress.Text = information.URL;
            }
            catch (Exception ex)
            {
                MessageBox.Show("Settings File seems to be missing! Please click the settings tab and re-enter! Details: " + ex);
            }
        }
Exemple #3
0
 public EditOrAddServer(Server server, ProgramInfo info)
 {
     InitializeComponent();
     current     = server;
     information = info;
 }
Exemple #4
0
 public ViewUsers(ProgramInfo info)
 {
     InitializeComponent();
     information = info;
 }
Exemple #5
0
 public VncWindow(SshSessionDetails conn, ProgramInfo info)
 {
     InitializeComponent();
     details     = conn;
     information = info;
 }
Exemple #6
0
 public ServerView(ProgramInfo info)
 {
     InitializeComponent();
     information = info;
 }
Exemple #7
0
 public EditOrAddUser(ProgramInfo info)
 {
     InitializeComponent();
     information = info;
     current     = null;
 }
Exemple #8
0
 public EditOrAddUser(ProgramInfo info, UserGeneral sentUser)
 {
     InitializeComponent();
     information = info;
     current     = sentUser;
 }
Exemple #9
0
 public ServerManager(List <Server> serversLst, ProgramInfo info)
 {
     InitializeComponent();
     servers     = serversLst;
     information = info;
 }