public dialprogr_new(string path, neqweqe neqqqqq) { InitializeComponent(); this.neqqqqq = neqqqqq; this.path = path; log.Add("Старт диалога"); INIManager client_man = new INIManager(Environment.CurrentDirectory + @"\ecadpro.ini"); admin = client_man.GetPrivateString("giulianovars", "3dsadmin"); //версия клиента authotiz_root = client_man.GetPrivateString("giulianovars", "attivazione"); //получ ключ активации loadspis(); lb2.Content = "Текущий заказ " + path.Split('\\').Last(); log.Add("Текущий заказ " + path.Split('\\').Last()); if (admin != "1") { admbtn.Visibility = Visibility.Collapsed; mivip.Visibility = Visibility.Collapsed; miarh.Visibility = Visibility.Collapsed; mizagr.Visibility = Visibility.Collapsed; } log.Add("admin " + admin); }
private static async Task AddClientToBitrix(Bitrix_Clients clients) { INIManager BTX = new INIManager("c:\\config.ini"); string BitrixName = BTX.GetPrivateString("BTX", "logPD"); string BitrixPass = BTX.GetPrivateString("BTX", "pasPD"); string url = "https://" + BitrixName + "/rest/1/" + BitrixPass + "/crm.contact.add.json"; // Serialize our concrete class into a JSON String foreach (Bitrix_Client client in clients.bitrix_Clients) { if (!client.Status) { var stringPayload = await Task.Run(() => JsonConvert.SerializeObject(ClientToBitrixFormat(client))); // Wrap our JSON inside a StringContent which then can be used by the HttpClient class var httpContent = new StringContent(stringPayload, Encoding.UTF8, "application/json"); using (var httpClient = new HttpClient()) { // Do the actual request and await the response var httpResponse = await httpClient.PostAsync(url, httpContent); // If the response contains content we want to read it! if (httpResponse.Content != null) { var responseContent = await httpResponse.Content.ReadAsStringAsync(); Console.WriteLine(responseContent); if (responseContent.Contains("\"result\":")) { client.Status = true; } // From here on you could deserialize the ResponseContent back again to a concrete C# type using Json.Net } } } } List <Bitrix_Client> k = new List <Bitrix_Client>(); int i = 0; foreach (Bitrix_Client cl in clients.bitrix_Clients) { if (clients.bitrix_Clients == null || clients.bitrix_Clients[i].Add_date != DateTime.Today) { k.Add(cl); } i++; } foreach (var n in k) { clients.bitrix_Clients.Remove(n); } WriteToJsonFile <Bitrix_Clients>("clients.json", clients); }
private void Enter_Load(object sender, EventArgs e) { INIManager ini = new INIManager(iniName); textBox1.Text = ini.GetPrivateString("Enter", "ServerName"); textBox2.Text = ini.GetPrivateString("Enter", "DataBaseName"); folderBrowserDialog1.SelectedPath = ini.GetPrivateString("Enter", "Path"); textBox3.Text = folderBrowserDialog1.SelectedPath; }
public DBConnect() { string strPath = System.IO.Path.GetDirectoryName(System.Diagnostics.Process.GetCurrentProcess().MainModule.FileName); INIManager manager = new INIManager(strPath + @"\settings.ini"); host = manager.GetPrivateString("DatabaseConnect", "host"); db = manager.GetPrivateString("DatabaseConnect", "database"); user = manager.GetPrivateString("DatabaseConnect", "user"); password = manager.GetPrivateString("DatabaseConnect", "password"); }
private static async Task <string> AddCheklistToBitrixTask(string ID, string NAME, string Person) { INIManager BTX = new INIManager("c:\\config.ini"); string BitrixName = BTX.GetPrivateString("BTX", "logPD"); string BitrixPass = BTX.GetPrivateString("BTX", "pasPD"); string task = "task.checklistitem.add"; string url = "https://" + BitrixName + "/rest/32/" + BitrixPass + "/" + task; // Serialize our concrete class into a JSON String var stringPayload = await Task.Run(() => JsonConvert.SerializeObject( new { TASKID = ID, FIELDS = new[] { new{ TITLE = NAME + " " + "@" + Person, SORT_INDEX = 1, IS_COMPLETE = "N" }, new{ TITLE = NAME + "2323 " + "@" + Person, SORT_INDEX = 2, IS_COMPLETE = "Y" }, } } )); var httpContent = new StringContent(stringPayload, Encoding.UTF8, "application/json"); using (var httpClient = new HttpClient()) { // Do the actual request and await the response var httpResponse = await httpClient.PostAsync(url, httpContent); // var httpResponse = await httpClient.GetAsync(url); // If the response contains content we want to read it! if (httpResponse.Content != null) { var responseContent = await httpResponse.Content.ReadAsStringAsync(); WriteLog(responseContent); Console.WriteLine(responseContent); Console.WriteLine(DateTime.Now + " : " + task); ID = responseContent; // From here on you could deserialize the ResponseContent back again to a concrete C# type using Json.Net } } // WriteLog(ID); ID = Regex.Match(Regex.Match(ID, @"""ID"":""\d+").Value, @"\d+").Value; // WriteLog(ID); Console.WriteLine(DateTime.Now + " : " + ID); return(ID); }
private void LoadUserSettings(string appFileName) { INIManager iniManager = new INIManager(appFileName); miAddUniversityMember.Enabled = bool.Parse(iniManager. GetPrivateString("miAddUniversityMember", "Enabled")); miRemoveUniversityMember.Enabled = bool.Parse(iniManager. GetPrivateString("miRemoveUniversityMember", "Enabled")); miAddGroupMember.Enabled = bool.Parse(iniManager. GetPrivateString("miAddGroupMember", "Enabled")); miRemoveGroupMember.Enabled = bool.Parse(iniManager. GetPrivateString("miRemoveGroupMember", "Enabled")); }
private void MenuItem_Click(object sender, RoutedEventArgs e) { //загрузить // WebClient client = new WebClient(); var url = "ftp://giulianovars.ru/zakaz/for_spis/" + (lb1.SelectedItem as zayavki).files.Split(',').First(); INIManager client_man = new INIManager(Environment.CurrentDirectory + @"\_ecadpro\ecadpro.ini"); string path_sysdba = client_man.GetPrivateString("Infogen", "percorsoordini");//версия клиента string tmppath = Environment.CurrentDirectory + @"\" + path_sysdba + @"\000001.eve"; log.Add("Путь куда установили " + tmppath); // MessageBox.Show(tmppath); // client.DownloadFile(url, tmppath);//скачаем новую // Get the object used to communicate with the server. FtpWebRequest request = (FtpWebRequest)WebRequest.Create(url); request.Method = WebRequestMethods.Ftp.DownloadFile; // This example assumes the FTP site uses anonymous logon. request.Credentials = new NetworkCredential("ecad", "UWnlLh3PLy"); // получаем ответ от сервера в виде объекта FtpWebResponse FtpWebResponse response = (FtpWebResponse)request.GetResponse(); // получаем поток ответа Stream responseStream = response.GetResponseStream(); // сохраняем файл в дисковой системе // создаем поток для сохранения файла FileStream fs = new FileStream(tmppath, FileMode.Create); //Буфер для считываемых данных byte[] buffer = new byte[64]; int size = 0; while ((size = responseStream.Read(buffer, 0, buffer.Length)) > 0) { fs.Write(buffer, 0, size); } fs.Close(); response.Close(); neqqqqq.getParam(neqqqqq.xamb, "carica", tmppath); neqqqqq.getParamI(neqqqqq.Ambiente, "bcarica"); retzakaz = "1"; // MessageBox.Show("Готово, теперь в номере заказа укажите 1"); Close(); }
static void Main(string[] args) { INIManager manager = new INIManager("C:\\my.ini"); string name = manager.GetPrivateString("main", "name"); Console.WriteLine(name); manager.WritePrivateString("Василий", "возраст", "21"); }
void skachatb() { var url = "ftp://giulianovars.ru/zakaz/" + (lb1.SelectedItem as string); INIManager client_man = new INIManager(Environment.CurrentDirectory + @"\_ecadpro\ecadpro.ini"); string path_sysdba = client_man.GetPrivateString("Infogen", "percorsoordini");//версия клиента string tmppath = Environment.CurrentDirectory + @"\" + path_sysdba + @"\000001.eve"; log.Add("Путь куда установили " + tmppath); // MessageBox.Show(tmppath); // client.DownloadFile(url, tmppath);//скачаем новую // Get the object used to communicate with the server. FtpWebRequest request = (FtpWebRequest)WebRequest.Create(url); request.Method = WebRequestMethods.Ftp.DownloadFile; // This example assumes the FTP site uses anonymous logon. request.Credentials = new NetworkCredential("ecad", "UWnlLh3PLy"); FtpWebResponse response = (FtpWebResponse)request.GetResponse(); // получаем поток ответа Stream responseStream = response.GetResponseStream(); // сохраняем файл в дисковой системе // создаем поток для сохранения файла FileStream fs = new FileStream(tmppath, FileMode.Create); //Буфер для считываемых данных byte[] buffer = new byte[64]; int size = 0; while ((size = responseStream.Read(buffer, 0, buffer.Length)) > 0) { fs.Write(buffer, 0, size); } fs.Close(); response.Close(); Console.WriteLine("Загрузка и сохранение файла завершены"); Console.Read(); retzakaz = "1"; neqqqqq.getParam(neqqqqq.xamb, "carica", tmppath); neqqqqq.getParamI(neqqqqq.Ambiente, "bcarica"); Close(); }
public kommunikacii_main(string pathBD) { InitializeComponent(); log.Add("старт диалог моделей"); lb4.Visibility = Visibility.Collapsed; lb1.Visibility = Visibility.Collapsed; // stpan.Visibility = Visibility.Collapsed; //btnserv.Visibility = Visibility.Collapsed; dir3ds = Environment.CurrentDirectory + @"\3dsObject\Web"; dir3ds_user = Environment.CurrentDirectory + @"\3dsObject\User"; Directory.CreateDirectory(dir3ds); Directory.CreateDirectory(dir3ds_user); this.pathBD = pathBD; BD.path = pathBD; //укажем файл бд INIManager client_man = new INIManager(Path.GetDirectoryName(Assembly.GetExecutingAssembly().Location) + @"\ecadpro.ini"); admin = client_man.GetPrivateString("Infogen", "3dsadmin");//версия клиента if (admin == "1") { label1.Visibility = Visibility.Visible; allnaserver.Visibility = Visibility.Visible; } else { lb4.ContextMenu = null; label1.Visibility = Visibility.Collapsed; allnaserver.Visibility = Visibility.Collapsed; } move_to_new_41(); loadpage(); log.Add("lb3napolnene"); lb3napolnene(); lb2napolnene(); }
private void Button_Click(object sender, RoutedEventArgs e) { INIManager manager = new INIManager(Environment.CurrentDirectory + @"\ecadpro.ini"); string authotiz_root = manager.GetPrivateString("giulianovars", "attivazione");//получ ключ активации //отрпавка самого фала // FileStream fileStream = File.OpenRead(path); // pb1.Minimum = 0; // pb1.Maximum = (fileStream.Length) / 1024; // pb1.Value = 0; btnStart.IsEnabled = false; // pb1.Value = result; string massivfiles = ""; string pref = authotiz_root + "_" + nomzakaza + "_"; massivfiles += pref + nomzakaza + ".eve" + ","; FTPupload(path, pref + nomzakaza + ".eve"); //1 закачиваем сам заказ foreach (spisfiles elem in tb_dop.Items) { massivfiles += pref + elem.name + ","; FTPupload(elem.path, pref + elem.name); //1 закачиваем сам заказ } massivfiles = massivfiles.Trim(','); WebClient client = new WebClient(); var url = "http://ecad.giulianovars.ru/php/upload_progr/load_spis.php?command=2"; client.Headers["Content-Type"] = "application/x-www-form-urlencoded"; client.Encoding = Encoding.UTF8; var response = client.UploadString(url, "POST", "text=" + rb1.Text + "&files=" + massivfiles + "&authotiz_root=" + authotiz_root + "&zakaz=" + nomzakaza); MessageBox.Show("Заказ успешно отправлен"); Close(); }
public void update() { try { string fullPath = Application.StartupPath.ToString(); INIManager manager = new INIManager(fullPath + "\\my.ini"); string v = manager.GetPrivateString("main", "version"); string pack = new WebClient().DownloadString("http://allminer.ru/api/?method=version"); Movie m = JsonConvert.DeserializeObject <Movie>(pack); string ver = m.version; GlobalVars.version = m.version; GlobalVars.link = m.source; if (v == ver) { //MessageBox.Show("У Вас старая версия"); label1.Text = "У Вас актуальная версия"; Process psiw; psiw = Process.Start("cmd", @"/c taskkill /f /im informer.exe"); psiw.Close(); System.Threading.Thread.Sleep(2000); Process.Start("informer.exe"); } else { label1.Text = "Вышла новая версия! Обновление!"; //MessageBox.Show("Новая версия!!!" + v + " " + ver); Process psiw; psiw = Process.Start("cmd", @"/c taskkill /f /im informer.exe"); psiw.Close(); download(GlobalVars.link); } } catch (Exception ex) { LogFile Log = new LogFile("error_launcher"); Log.writeLogLine(ex.Message + " fun update"); } }
public ArrayList GetInfoportionsFiles() { ArrayList res = new ArrayList(); if (File.Exists(Folder_game + SYSTEM_FILE)) { //Создание объекта, для работы с файлом INIManager IniManager = new INIManager(Folder_game + SYSTEM_FILE); //Получить значение string files = IniManager.GetPrivateString("info_portions", "files"); string[] buff = files.Split(new char[] { ',' }, StringSplitOptions.RemoveEmptyEntries); foreach (string str in buff) { res.Add(str.Trim() + ".xml"); } } else { throw new Exception($"Отсутствует файл {SYSTEM_FILE}"); } return(res); }
/// <summary> /// Получаем список файлов локализации /// </summary> /// <returns>Массив строк с файлами локализации</returns> public ArrayList GetStringTableFiles() { ArrayList arrDialogFiles = new ArrayList(); if (File.Exists(Folder_game + LOCALIZATION_FILE)) { //Создание объекта, для работы с файлом INIManager IniManager = new INIManager(Folder_game + LOCALIZATION_FILE); //Получить значение string files = IniManager.GetPrivateString("string_table", "files"); string[] buff = files.Split(new char[] { ',' }, StringSplitOptions.RemoveEmptyEntries); foreach (string str in buff) { arrDialogFiles.Add(str.Trim() + ".xml"); } } else { throw new Exception($"Отсутствует файл {LOCALIZATION_FILE}"); } return(arrDialogFiles); }
private void MenuItem_Click_7(object sender, RoutedEventArgs e) { if (!(lb2.SelectedIndex > -1)) { MessageBox.Show("Сначала выберите категорию"); return; } if (!(lb1.SelectedIndex > -1)) { MessageBox.Show("Сначала выберите объект"); return; } var file = lb1.SelectedValue as Models3d; if (!(MessageBox.Show( "Вы действительно хотите отправить \"" + file.name + "\" на сервер?", "", MessageBoxButton.YesNo) == MessageBoxResult.Yes)) { return; } if (!(File.Exists(file.path))) { MessageBox.Show("3ds файл на Вашем компьютере не обнаружен"); return; } string startPath = file.pathcategory; string zipPath = Path.GetTempPath() + "3ds_to_server_TreeCadN.zip"; if (File.Exists(zipPath)) { File.Delete(zipPath); } log.Add("zipPath - " + zipPath); ZipFile.CreateFromDirectory(startPath, zipPath); string time = DateTime.Now.ToFileTimeUtc().ToString(); string path3ds = Tr2(file.name).Replace(' ', '_') + "_" + time + ".zip"; string pathjpg = Tr2(file.name).Replace(' ', '_') + "_" + time + ".jpg"; log.Add("Отправляем заказ на фабрику: " + path3ds + " " + pathjpg); (new FTP()).otprav(zipPath, "ftp://ecad.giulianovars.ru/public/3dmodels/NEW/" + path3ds); if (File.Exists(file.jpg_path)) { (new FTP()).otprav(file.jpg_path, "ftp://ecad.giulianovars.ru/public/3dmodels/NEW/" + pathjpg); } string categoryuser = (lb2.SelectedItem as treespis).name; //Создание объекта, для работы с файлом INIManager manager = new INIManager(GetEcadProIni()); string authotiz_root = manager.GetPrivateString("giulianovars", "attivazione");//получ ключ активации (new web_zapros()).load("new3ds", "filename=" + file.name + "&filename3ds=" + path3ds + "&filenamejpg=" + pathjpg + "&idclienta=" + authotiz_root + "&x=" + file.x + "&y=" + file.y + "&z=" + file.z + "&categoryuser="******"Объект успешно отправлен"); }
public static void Init() { INIManager BTX = new INIManager("c:\\config.ini"); BitrixName = BTX.GetPrivateString("BTX", "logPD"); BitrixPass = BTX.GetPrivateString("BTX", "pasPD"); DepSale = BTX.GetPrivateString("BTX", "DepSale"); DepFas = BTX.GetPrivateString("BTX", "DepFas"); DepStone = BTX.GetPrivateString("BTX", "DepStone"); StaffSale = BTX.GetPrivateString("BTX", "StaffSale"); StaffFas = BTX.GetPrivateString("BTX", "StaffFas"); StaffStone = BTX.GetPrivateString("BTX", "StaffStone"); Direct1 = BTX.GetPrivateString("BTX", "Direct1"); Direct2 = BTX.GetPrivateString("BTX", "Direct2"); Direct3 = BTX.GetPrivateString("BTX", "Direct3"); }
public void ini() { string reboots_temp_max = manager.GetPrivateString("main", "reboots_temp_max"); string temp_max = manager.GetPrivateString("main", "temp_max"); string time_temp_max = manager.GetPrivateString("main", "time_temp_max"); string reboot_temp_min = manager.GetPrivateString("main", "reboot_temp_min"); string temp_min = manager.GetPrivateString("main", "temp_min"); string time_temp_min = manager.GetPrivateString("main", "time_temp_min"); string reboot_max_fan = manager.GetPrivateString("main", "reboot_max_fan"); string fan_max = manager.GetPrivateString("main", "fan_max"); string time_fan_max = manager.GetPrivateString("main", "time_fan_max"); string reboot_min_fan = manager.GetPrivateString("main", "reboot_min_fan"); string fan_min = manager.GetPrivateString("main", "fan_min"); string time_fan_min = manager.GetPrivateString("main", "time_fan_min"); string reload_file = manager.GetPrivateString("main", "reload_file"); string reload_temp_min_file = manager.GetPrivateString("main", "reload_temp_min_file"); string reload_time_min_file = manager.GetPrivateString("main", "reload_time_min_file"); string path = manager.GetPrivateString("main", "path"); string path2 = manager.GetPrivateString("main", "path2"); string reboot_clock = manager.GetPrivateString("main", "reboot_clock"); string clock = manager.GetPrivateString("main", "clock"); string time_clock = manager.GetPrivateString("main", "time_clock"); string reboot_memory = manager.GetPrivateString("main", "reboot_memory"); string memory = manager.GetPrivateString("main", "memory"); string time_memory = manager.GetPrivateString("main", "time_memory"); string reboot_GPU = manager.GetPrivateString("main", "reboot_GPU"); string count_GPU = manager.GetPrivateString("main", "count_GPU"); string time_count_GPU = manager.GetPrivateString("main", "time_count_GPU"); string reboot_load_GPU = manager.GetPrivateString("main", "reboot_load_GPU"); string load_GPU = manager.GetPrivateString("main", "load_GPU"); string time_load_GPU = manager.GetPrivateString("main", "time_load_GPU"); string reboot_internet = manager.GetPrivateString("main", "reboot_internet"); string time_internet = manager.GetPrivateString("main", "time_internet"); //string time_start = manager.GetPrivateString("main", "time_start"); //не используется string stat = manager.GetPrivateString("main", "stat"); string pool = manager.GetPrivateString("main", "pool"); string wallet = manager.GetPrivateString("main", "wallet"); // if (reboots_temp_max == "True") { cbTempMaxGPU.Checked = true; } else if (reboots_temp_max == "False") { cbTempMaxGPU.Checked = false; } if (reboot_temp_min == "1") { cbTempMinGPU.Checked = true; } else { cbTempMinGPU.Checked = false; } if (reboot_max_fan == "1") { cbFanMaxGPU.Checked = true; } else { cbFanMaxGPU.Checked = false; } if (reboot_min_fan == "1") { cbFanMinGPU.Checked = true; } else { cbFanMinGPU.Checked = false; } if (reload_file == "1") { cbReloadFile.Checked = true; } else { cbReloadFile.Checked = false; } if (reboot_clock == "1") { cbClockMinGPU.Checked = true; } else { cbClockMinGPU.Checked = false; } if (reboot_memory == "1") { cbMemoryMinGPU.Checked = true; } else { cbMemoryMinGPU.Checked = false; } if (reboot_GPU == "1") { cbFellOffGPU.Checked = true; } else { cbFellOffGPU.Checked = false; } if (reboot_load_GPU == "1") { cbLoadGPU.Checked = true; } else { cbLoadGPU.Checked = false; } if (reboot_internet == "1") { cbInternetOff.Checked = true; } else { cbInternetOff.Checked = false; } tbTempMax.Text = temp_max; tbTempMaxSec.Text = time_temp_max; tbTempMin.Text = temp_min; tbTempMinSec.Text = time_temp_min; tbFanMax.Text = fan_max; tbFanMaxSec.Text = time_fan_max; tbFanMin.Text = fan_min; tbFanMinSec.Text = time_fan_min; tbReloadTempFile.Text = reload_temp_min_file; tbReloadFileSec.Text = reload_time_min_file; // combTimeStart.Text = time_start; tbPath1.Text = path; tbPath2.Text = path2; tbClockMin.Text = clock; tbClockMinSec.Text = time_clock; tbMemoryMin.Text = memory; tbMemoryMinSec.Text = time_memory; tbCountGPU.Text = count_GPU; tbCountGPUSec.Text = time_count_GPU; tbLoadGPU.Text = load_GPU; tbLoadGPUSec.Text = time_load_GPU; tbInternetOffSec.Text = time_internet; }
public void ini() { string fullPath = Application.StartupPath.ToString(); INIManager manager = new INIManager(fullPath + "\\my.ini"); string max = manager.GetPrivateString("main", "max"); string min = manager.GetPrivateString("main", "min"); string t_min = manager.GetPrivateString("main", "t_min"); string t_max = manager.GetPrivateString("main", "t_max"); string reboot_max = manager.GetPrivateString("main", "reboot_max"); string reboot_max_fan = manager.GetPrivateString("main", "reboot_max_fan"); string reboot_min = manager.GetPrivateString("main", "reboot_min"); string reboot_min_fan = manager.GetPrivateString("main", "reboot_min_fan"); string reboot_clock = manager.GetPrivateString("main", "reboot_clock"); string reboot_memory = manager.GetPrivateString("main", "reboot_memory"); string stat = manager.GetPrivateString("main", "stat"); string reload = manager.GetPrivateString("main", "reload"); string pool = manager.GetPrivateString("main", "pool"); string wallet = manager.GetPrivateString("main", "wallet"); string t_start = manager.GetPrivateString("main", "t_start"); string r_min = manager.GetPrivateString("main", "r_min"); string rt_min = manager.GetPrivateString("main", "rt_min"); string path = manager.GetPrivateString("main", "path"); string path2 = manager.GetPrivateString("main", "path2"); string fan_max = manager.GetPrivateString("main", "fan_max"); string fan_min = manager.GetPrivateString("main", "fan_min"); string t_fan_max = manager.GetPrivateString("main", "t_fan_max"); string t_fan_min = manager.GetPrivateString("main", "t_fan_min"); string memory = manager.GetPrivateString("main", "memory"); string clock = manager.GetPrivateString("main", "clock"); string t_memory = manager.GetPrivateString("main", "t_memory"); string t_clock = manager.GetPrivateString("main", "t_clock"); string t_inet = manager.GetPrivateString("main", "t_inet"); string internet_r = manager.GetPrivateString("main", "internet_r"); if (reboot_max == "1") { checkBox1.Checked = true; } else { checkBox1.Checked = false; } if (reboot_min == "1") { checkBox2.Checked = true; } else { checkBox2.Checked = false; } if (reload == "1") { checkBox3.Checked = true; } else { checkBox3.Checked = false; } if (reboot_max_fan == "1") { checkBox4.Checked = true; } else { checkBox4.Checked = false; } if (reboot_min_fan == "1") { checkBox5.Checked = true; } else { checkBox5.Checked = false; } if (reboot_clock == "1") { checkBox6.Checked = true; } else { checkBox6.Checked = false; } if (reboot_memory == "1") { checkBox7.Checked = true; } else { checkBox7.Checked = false; } if (internet_r == "1") { checkBox8.Checked = true; } else { checkBox8.Checked = false; } textBox1.Text = max; textBox2.Text = min; textBox7.Text = t_max; textBox8.Text = t_min; //textBox4.Text = wallet; //textBox9.Text = pool; comboBox2.Text = t_start; textBox11.Text = rt_min; textBox5.Text = r_min; textBox3.Text = path; textBox12.Text = path2; textBox4.Text = fan_max; textBox6.Text = fan_min; textBox9.Text = t_fan_max; textBox10.Text = t_fan_min; textBox13.Text = clock; textBox14.Text = t_clock; textBox15.Text = memory; textBox16.Text = t_memory; textBox17.Text = t_inet; }