public ScheduleForm(MainForm mainform , ListView listview) { InitializeComponent(); Mainform = mainform; listView = listview; }
public ShutDownForm(MainForm mainform, PythonListener pythonlistener, ListViewItem item) { InitializeComponent(); Mainform = mainform; Pythonlistener = pythonlistener; label_ip.Text = item.SubItems[0].Text; label_mac.Text = item.SubItems[1].Text; }
public PythonListener(MainForm mainform) { this.mainform = mainform; threadPythonListener = new Thread(new ThreadStart(Run)); threadPythonListener.Start(); state_machine["CompStatus"] = CompStatus; state_machine["DataBase"] = DataBase; state_machine["Schedule"] = Schedule; pythonEngine = new Process(); pythonEngine.StartInfo.FileName = @"C:\Python26\python.exe"; pythonEngine.StartInfo.Arguments = @"C:\Users\daniel\Desktop\Wake_On_Lan\Code\PythonEngine.py"; pythonEngine.StartInfo.WorkingDirectory = AppDomain.CurrentDomain.BaseDirectory; pythonEngine.Start(); }