public Form1() { InitializeComponent(); dataGridView1.Font = new Font("arial", 18); dataGridView1.AutoGenerateColumns = false; dataGridView1.ColumnCount = 2; dataGridView1.AutoSize = true; dataGridView1.AutoSizeColumnsMode = dataGridView1.AutoSizeColumnsMode = DataGridViewAutoSizeColumnsMode.AllCells; this.Text = AppData.selectedServer.ServerName; textBox_ServerName.Text = AppData.selectedServer.ServerName; createtable(); //vytvori datagrid a naplni textboxy editlogic(); // edit radiobutton logika Form1_logic.CreatePicture(ref pictureBox_Home, 50, 50, pictureName: "home.png"); Form1_logic.CreatePicture(ref pictureBox_Plus, 35, 35, pictureName: "plus.png"); Form1_logic.CreatePicture(ref pictureBox_Minus, 35, 35, pictureName: "minus.png"); Form1_logic.CreatePicture(ref pictureBox_DeleteServer, 50, 50, pictureName: "deleteServer.png"); }
int DTflowLayoutContendWidth = 0; // sirka obrazku s datadiskama public Home_screen() { InitializeComponent(); if (AppData.Database == null) { try { AppData.Database = new List <Datadisk>(XML.ReadXMlFile()); fillDatadisk(); } catch { MessageBox.Show("Nepodarilo se najit soubor s db"); AppData.Database = new List <Datadisk>(); } } Form1_logic.CreatePicture(ref pictureBox_Home, 50, 50, pictureName: RLMS_NEW.Icon.home); Form1_logic.CreatePicture(ref pictureBox_AddServer, 50, 50, pictureName: RLMS_NEW.Icon.plus); Form1_logic.CreatePicture(ref pictureBox_DeleteDatadisk, 20, 20, pictureName: RLMS_NEW.Icon.minus); Form1_logic.CreatePicture(ref pictureBox_RenameDatadisk, 20, 20, pictureName: RLMS_NEW.Icon.pen); }
private void button1_Click_1(object sender, EventArgs e) { Form1_logic.runExe(AppData.selectedServer.ExePath); }
private void linkLabel1_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e) { Form1_logic.openWebPage(AppData.selectedServer.Website); }