BioCore  5.0.0
A Windows .NET microscopy library and application for viewing, editing, and annotating images.
Loading...
Searching...
No Matches
BioCore.Login Class Reference
Inheritance diagram for BioCore.Login:

Public Member Functions

 Login ()
 

Static Public Attributes

static string host
 
static string username
 
static string password
 
static int port
 

Protected Member Functions

override void Dispose (bool disposing)
 Clean up any resources being used.
 

Detailed Description

Definition at line 3 of file Login.Designer.cs.

Constructor & Destructor Documentation

◆ Login()

BioCore.Login.Login ( )

Definition at line 17 of file Login.cs.

18 {
19 InitializeComponent();
20 this.DialogResult = DialogResult.Cancel;
21 BioLib.Settings.Load();
22 string h = BioLib.Settings.GetSettings("host");
23 string p = BioLib.Settings.GetSettings("port");
24 string u = BioLib.Settings.GetSettings("username");
25 if (h != "")
26 {
27 hostBox.Text = h;
28 host = h;
29 }
30 if (p != "")
31 {
32 portBox.Text = int.Parse(p).ToString();
33 port = int.Parse(p);
34 }
35 if(u != "")
36 {
37 usernameBox.Text = u;
38 username = u;
39 }
40 BioLib.Settings.AddSettings("username", usernameBox.Text);
41 BioLib.Settings.AddSettings("host", hostBox.Text);
42 BioLib.Settings.AddSettings("port", ((int)portBox.Value).ToString());
43
44 }
static string host
Definition Login.cs:15
static int port
Definition Login.cs:16
static string username
Definition Login.cs:15

Member Function Documentation

◆ Dispose()

override void BioCore.Login.Dispose ( bool disposing)
protected

Clean up any resources being used.

Parameters
disposingtrue if managed resources should be disposed; otherwise, false.

Definition at line 14 of file Login.Designer.cs.

15 {
16 if (disposing && (components != null))
17 {
18 components.Dispose();
19 }
20 base.Dispose(disposing);
21 }

Member Data Documentation

◆ host

string BioCore.Login.host
static

Definition at line 15 of file Login.cs.

◆ password

string BioCore.Login.password
static

Definition at line 15 of file Login.cs.

◆ port

int BioCore.Login.port
static

Definition at line 16 of file Login.cs.

◆ username

string BioCore.Login.username
static

Definition at line 15 of file Login.cs.


The documentation for this class was generated from the following files: