#include <iostream> #include <vector> #include <algorithm> using namespace std; class Action { public: int room; int time; int type; Action(int room_, int time_, int type_) { room = room_; time = time_; type = type_; }; show() { cout<…
直接切入主题 有时候同一个项目下我们可能会使用多个窗体,窗体间方法互相调用也不可避免,好了,使用无参无返回值的方法,开始上图 1.新建一个winform项目Form1,并再添加一个窗体Form2:拖入button和textbox,如下 2.先编辑Form2,定义属性存放无参无返回值的方法,重载Form2的构造函数,处理相关方法 public Form2(List<Action> a) //public List<Action> Form2m(params Action[] a) {…