public static ControlView Instance() { if (instance == null) { instance = new ControlView(); } return instance; }
public static ControlView Instance() { if (instance == null) { instance = new ControlView(); } return(instance); }
private void controlPanel_Click(object Sender, EventArgs e) { // Close the form, which closes the application. ControlView av = ControlView.Instance(); av.Show(); av.Activate(); }
private void Window_Closing(object sender, System.ComponentModel.CancelEventArgs e) { this.Hide(); ControlView.instance = null; se.watcher.EnableRaisingEvents = true; }
private void Window_Closing(object sender, System.ComponentModel.CancelEventArgs e) { ControlView.instance = null; se.watcher.EnableRaisingEvents = true; this.Hide(); }