public static login lg; public login() { InitializeComponent(); lg = this; }
收起
this代表当前类的实例对象 , lg = this 代表将这个实例对象赋值给lg这个静态变量
报告相同问题?