/// <summary> /// When info handle is toggled it opens the info pad. /// </summary> /// <param name="sender">Sender.</param> /// <param name="args">Arguments.</param> private void OnInfoToggled(object sender, ToggleEventArgs args) { if(args.Active) { // get the default location for the floating window from the mouse event // the location is relative to 0.0 screen origin point int defaultX = 500; int defaultY = 500; if(args.MouseEvent != null) { Gdk.EventButton gdkEvent = args.MouseEvent.GdkEvent as Gdk.EventButton; if(gdkEvent != null) { defaultX = (int)gdkEvent.XRoot; defaultY = (int)gdkEvent.YRoot; } } m_applicationContext.MainWindow.ShowComponentInfoPad(this, defaultX, defaultY, ToggleOffOnInfoClosed); } else { m_applicationContext.MainWindow.HideComponentInfoPad(this); } }
void OnToggled(object o, ToggleEventArgs e) { membersStack.Visible = e.Active; }
/// <summary> /// When info handle is toggled it opens the info pad. /// </summary> /// <param name="sender">Sender.</param> /// <param name="args">Arguments.</param> private void OnInfoToggled(object sender, ToggleEventArgs args) { m_applicationContext.MainWindow.ShowComponentInfoPad(this); }
protected void OnToggled(object o, ToggleEventArgs e) { MemberCompartments.Visible = e.Active; }