add manual add camera

This commit is contained in:
Kwimbee
2024-05-06 14:47:59 +02:00
parent 38b7f93ca2
commit a5b5e39f90
5 changed files with 279 additions and 17 deletions

View File

@@ -270,5 +270,18 @@ namespace robospot_camera_finder
File.WriteAllText(saveFile.FileName, json);
}
}
private void manualAddToolStripMenuItem_Click(object sender, EventArgs e)
{
Manual_IP_Form manualForm = new Manual_IP_Form();
if (manualForm.ShowDialog(this) == DialogResult.OK)
{
string ipAddress = manualForm.ipAddress;
Camera camera_to_add = new Camera("Camera " + ipAddress, ipAddress, "", "");
add_camera(camera_to_add);
}
}
}
}