示例#1
0
 public FindWindow()
 {
     InitializeComponent();
     instance = this;
     #region Event
     Instance.KeyDown += OnFindWindowKeyDown;
     Instance.findControl.cancelButton.Click += OnCancelButtonClick;
     Instance.Loaded += OnLoaded;
     Instance.Closed += OnClose;
     #endregion
 }
示例#2
0
 private void OnClose(object sender, EventArgs e)
 {
     instance = null;
 }