private void buttonStore_Click(object sender, EventArgs e) { if (!checkFileOk()) { return; } IcsManipulator.manipulateFile(textBoxFile.Text, checkBoxResolution.Checked, checkBoxTransparentKeyPassthrough.Checked, textBoxHRes.Text, textBoxVRes.Text); storeSettings(); }
private void buttonDragDropStore_DragDrop(object sender, DragEventArgs e) { var files = (string[])e.Data.GetData(DataFormats.FileDrop); textBoxFile.Text = files[0]; if (!checkFileOk()) { return; } IcsManipulator.manipulateFile(textBoxFile.Text, checkBoxResolution.Checked, checkBoxTransparentKeyPassthrough.Checked, textBoxHRes.Text, textBoxVRes.Text); storeSettings(); }
private void MainForm_Load(object sender, EventArgs e) { checkBoxResolution.Checked = Properties.Settings.Default.checkBoxResolution; checkBoxTransparentKeyPassthrough.Checked = Properties.Settings.Default.checkBoxTransparentKeyPassthrough; textBoxHRes.Text = Properties.Settings.Default.HRes; textBoxVRes.Text = Properties.Settings.Default.VRes; textBoxCitrix.Text = Properties.Settings.Default.CitrixLocation; if (fileName != null) { textBoxFile.Text = fileName; IcsManipulator.manipulateFile(textBoxFile.Text, checkBoxResolution.Checked, checkBoxTransparentKeyPassthrough.Checked, textBoxHRes.Text, textBoxVRes.Text); execute(); Application.Exit(); } }