public Reminder_Server() { crypting_Object = new Useful_Functions.SimpleAES(); load_Values_From_Registry(); load_The_Websocket_Details(); connected_Users = new Dictionary <string, Dictionary <string, WebSocketSession> >(); db_Connect = new DBConnect(database_Server, database_Name, database_Uid, database_Password); crypting_Object = new Useful_Functions.SimpleAES(); timer = new System.Timers.Timer(60000); timer.Elapsed += new System.Timers.ElapsedEventHandler(timer_Elapsed); timer.Start(); }
public Form_ResumeView_Server_Controller() { InitializeComponent(); image_Path = ""; crypting_Object = new Useful_Functions.SimpleAES(); initialize_FTP_Settings(); db_Connect = new DBConnect(database_Server, database_Name, database_Uid, database_Password); company_Names = new AutoCompleteStringCollection(); textBox_Company_Name.AutoCompleteCustomSource = company_Names; load_The_Company_Names(); }
static void Main(string[] args) { /*if (Is_MySQL_Service_Exist()) * { * Console.WriteLine("Mysql Service has been found"); * if (!is_MySQL_Running()) * { * Console.WriteLine("Mysql Service is not running, attempting to start it"); * while (!is_MySQL_Running()) * Start_MySQL_Service(); * } * if (is_MySQL_Running()) * Console.WriteLine("Mysql Service is running"); * } */ Console.WriteLine("Registering the values of Resume View"); crypting_Object = new Useful_Functions.SimpleAES(); load_Settings_To_Registry(); Console.WriteLine("Succesfully registered the values"); string a = Console.ReadLine(); }
public User_Form(string given_Action, User_Detail given_User_Detail) { InitializeComponent(); crypting_Object = new Useful_Functions.SimpleAES(); button_Add_Or_Update_User_Form.Text = given_Action; if (given_Action == "Update") { textBox_Name_User_Form.ReadOnly = true; } user_Detail = given_User_Detail; if (user_Detail != null) { textBox_Name_User_Form.Text = user_Detail.username; textBox_Password_User_Form.Text = crypting_Object.DecryptString(user_Detail.encrypted_General_Password); textBox_Email_Id_User_Form.Text = user_Detail.mail_Id; textBox_Phone_No_User_Form.Text = user_Detail.phone_No; comboBox_Type_User_Form.Text = user_Detail.type; pictureBox_User_Form.Load(user_Detail.image_Path); textBox_Browse_User_Form.Text = user_Detail.image_Path; } }
public Form_Reminder() { InitializeComponent(); crypting_Object = new Useful_Functions.SimpleAES(); load_Values_From_Registry(); reset_Event = new System.Threading.ManualResetEvent(false); login_Reset_Event = new System.Threading.ManualResetEvent(false); db_Connect = new DBConnect(database_Server, database_Name, database_Uid, database_Password); wipe_Out_The_User_Name_In_The_Registry(); LoginWindow login_Window = new LoginWindow(); bool cancel_Pressed = false; Company_Info temp_Company_Info = null; login_Window.button_Ok_Login.Click += new EventHandler((sender_0, e_0) => { if (login_Window.textBox_Username_Login.Text == "") { MessageBox.Show(login_Window, "Username can't be Empty", "Suggestion"); return; } else if (login_Window.textBox_Password_Login.Text == "") { MessageBox.Show(login_Window, "Password can't be Empty"); return; } string encrypted_General_password = crypting_Object.EncryptToString(login_Window.textBox_Password_Login.Text); if (!db_Connect.Check_User_Account(login_Window.textBox_Username_Login.Text, encrypted_General_password, company_Name)) { MessageBox.Show(login_Window, "Username/Password is wrong"); } else { temp_Company_Info = db_Connect.get_Company_Info_For_This_Company_Name(company_Name); username = login_Window.textBox_Username_Login.Text; put_This_User_Name_In_The_Registry(username); login_Window.Hide(); } login_Reset_Event.Set(); }); login_Window.button_Cancel_Login.Click += new EventHandler((sender_0, e_0) => { login_Window.Hide(); cancel_Pressed = true; login_Reset_Event.Set(); }); login_Window.FormClosed += new FormClosedEventHandler((sender_0, e_0) => { login_Window.Hide(); cancel_Pressed = true; login_Reset_Event.Set(); }); login_Window.ShowDialog(); login_Reset_Event.WaitOne(); if (cancel_Pressed) { Environment.Exit(0); } if (temp_Company_Info != null) { if (temp_Company_Info.message_Image_Path != "") { Welcome_Window temp_Welcome_Window = new Welcome_Window(temp_Company_Info.message_Image_Path, temp_Company_Info.message); temp_Welcome_Window.ShowDialog(); } } Initialize_WebSocket(); reset_Event.WaitOne(); this.MouseClick += new MouseEventHandler(form_Reminder_MouseClick); clicked_My_PictureBox = null; picture_Boxes = new List <My_PictureBox>(); align_Picture_Boxes(); this.Load += new EventHandler(Form_Reminder_Load); this.Resize += new EventHandler((sender, e) => { if (WindowState == FormWindowState.Minimized) { this.Hide(); } }); this.MinimizeBox = true; this.MaximizeBox = false; job_Display_Form = new Job_Display_Form(); job_Display_Form.Hide(); threads = new List <System.Threading.Thread>(); exit_Requested = false; }
public User_Display_Form() { InitializeComponent(); crypting_Object = new Useful_Functions.SimpleAES(); }