void CloseLayerForm() { if (this._layer != null) { this._layer.Close(); this._layer = null; } }
void OpenLayerForm() { if (this._layer == null) { this._layer = new LineLayerForm(); // this._layer.WindowState = FormWindowState.Maximized; // Rectangle rect = Screen.GetWorkingArea(this); this._layer.TopMost = true; } }