private void NewStateNameButtonClick(object sender, ButtonPressedEventArgs e) { var layout = DBAdmin.UserLayout_Insert(controlForm.Name, editor.Name, ((ButtonEdit)sender).MaskBox.MaskBoxText, editor.GetLayoutData(), 0); layouts.Add(layout); MessageWindow.GetInstance("Настройка состояния успешно сохранена", MessageType.Info); menu.HidePopup(); }
private void personSelector_ButtonPressed(object sender, ButtonPressedEventArgs e) { if (e.Button.Index == recentButton.Index) { if (recentMenu.OwnerPopup != null) { recentMenu.HidePopup(); } else { var evi = personSelector.GetViewInfo() as ButtonEditViewInfo; var bvi = evi.ButtonInfoByButton(e.Button); var pt = new Point(bvi.Bounds.Left, bvi.Bounds.Bottom); MenuManagerHelper.GetMenuManager(LookAndFeel).ShowPopupMenu(recentMenu, personSelector, pt); } } }