private void uiMapTreeUserControl2_Enter(object sender, EventArgs e) { if (_currentActiveUIMap == null) { return; } _currentActiveUIMap = uiMapTreeUserControl2; }
public MainForm() { InitializeComponent(); this.splitContainer1.Panel2Collapsed = true; _currentActiveUIMap = uiMapTreeUserControl1; #if DEBUG //txtFileName.Text = String.Format(@"{0}\Samples\MainUIMap.uitest", System.IO.Directory.GetCurrentDirectory()); // will automatically trigger load of file #endif }