public RegisterForm(RFState rfs) { InitializeComponent(); switch (rfs) { case RFState.FirstTime: break; case RFState.Tips: this.labelTips.Text = "软件即将过期,请注册,以方便您的继续使用!"; break; case RFState.Invalid: this.labelTips.Text = "软件试用期已过,请注册后再使用!"; this.buttonTry.Enabled = false; break; default: break; } }
/// <summary> /// Constructor /// </summary> /// <param name="state"></param> public OnStateChangedEventArgs(RFState state) { this.state = state; }
private void FireStateChangedEvent(RFState e) { TellThemOnStateChanged(this, new OnStateChangedEventArgs(e)); }