public SshConnectionForm(SshSessionDetails sessionDetail, ProgramInfo info) { InitializeComponent(); // Load in the object passed to the details = sessionDetail; information = info; }
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); } }
public EditOrAddServer(Server server, ProgramInfo info) { InitializeComponent(); current = server; information = info; }
public ViewUsers(ProgramInfo info) { InitializeComponent(); information = info; }
public VncWindow(SshSessionDetails conn, ProgramInfo info) { InitializeComponent(); details = conn; information = info; }
public ServerView(ProgramInfo info) { InitializeComponent(); information = info; }
public EditOrAddUser(ProgramInfo info) { InitializeComponent(); information = info; current = null; }
public EditOrAddUser(ProgramInfo info, UserGeneral sentUser) { InitializeComponent(); information = info; current = sentUser; }
public ServerManager(List <Server> serversLst, ProgramInfo info) { InitializeComponent(); servers = serversLst; information = info; }