internal void RaiseButtonClick(ButtonClickArgs clickArgs) { if (null != ButtonClick) ButtonClick(clickArgs); else clickArgs.Dispose(); }
public void onHospButtonClicked(object source, ButtonClickArgs args) { id = args.id_val; Book_Pop.Visibility = Visibility.Visible; Book_Pop.IsOpen = true; DocList.SelectedItem = ((FrameworkElement)source).DataContext; }
public void Click() { var buttonClickArgs = new ButtonClickArgs { Clicker = "Robert published!" }; OnClick(this, buttonClickArgs); }
/// <summary> /// Metodo utilizado para lanzar el evento /// MenuButtonClick /// </summary> /// <param name="pButtonClicked">Bot�n presionado</param> void LinkButtonClick(Fwk.UI.Controls.Menu.ButtonBase pButtonClicked) { if (OnLinkButtonClick != null) { ButtonClickArgs <Fwk.UI.Controls.Menu.ButtonBase> e = new ButtonClickArgs <Fwk.UI.Controls.Menu.ButtonBase>(pButtonClicked); OnLinkButtonClick(this, e); } }
async void onResBtnClicked(object source, ButtonClickArgs args) { id = args.id_val; app_temp = ((FrameworkElement)source).DataContext as AppointmentDetails; await viewModel.GetApp(id); //temp = ((FrameworkElement)source).DataContext as AppointmentDetails; }
/// <summary> /// Metodo utilizado para lanzar el evento /// MenuButtonClick /// </summary> /// <param name="pButtonClicked">Bot�n presionado</param> void LinkButtonClick(Fwk.UI.Controls.Menu.ButtonBase pButtonClicked) { if (OnLinkButtonClick != null) { ButtonClickArgs<Fwk.UI.Controls.Menu.ButtonBase> e = new ButtonClickArgs<Fwk.UI.Controls.Menu.ButtonBase>(pButtonClicked); OnLinkButtonClick(this, e); } }
async void onCancelButtonClicked(object source, ButtonClickArgs args) { app_id = args.id_val; app_temp = ((FrameworkElement)source).DataContext as AppointmentDetails; CancelDialog dialog = new CancelDialog(); dialog.ButtonClicked += this.onYesButtonClicked; await dialog.ShowAsync(); }
public async void onRebookButtonClicked(object source, ButtonClickArgs args) { BookedListView.SelectedItem = ((FrameworkElement)source).DataContext; id = args.id_val; openflag = true; LocationBox.Visibility = Visibility.Visible; await viewModel.GetLastHospital(1, args.id_val); await viewModel.GetDoctor(args.id_val); }
public void onButtonClicked(object source, ButtonClickArgs args) { //System.Diagnostics.Debug.WriteLine(args.model.Name); hosp_id = args.id_val; //pos = MyScroll.VerticalOffset; //MyScroll.ChangeView(null, 100, 1); Book_Pop.Visibility = Visibility.Visible; Book_Pop.IsOpen = true; HospList.SelectedItem = ((FrameworkElement)source).DataContext; }
internal void RaiseButtonClick(ButtonClickArgs clickArgs) { if (null != ButtonClick) { ButtonClick(clickArgs); } else { clickArgs.Dispose(); } }
public async Task DeleteItemClickedAsync(object sender, ButtonClickArgs e) { if (SelectedPreset == null || MessageBoxProvider.ShowDeleteDialog("Preset")?.DialogResult != DialogResults.Yes) { return; } await _presetController.DeleteAsync(SelectedPreset); Presets.Remove(SelectedPreset); SelectedPreset = null; }
public void DeleteItemClicked(object sender, ButtonClickArgs e) { if (SelectedPreset == null || SelectedRegion == null || MessageBoxProvider.ShowDeleteDialog("Region")?.DialogResult != DialogResults.Yes) { return; } _regionController.Delete(SelectedPreset.Id, SelectedRegion.Id); Regions.Remove(SelectedRegion); SelectedRegion = null; }
private void toolBarControl1_ToolBarButtonClick(object sender, ButtonClickArgs <Fwk.UI.Controls.Menu.ButtonBase> e) { if (e.ButtonClicked.GetType() == typeof(SimpleButton)) { switch (e.ButtonClicked.Id) { case "btnEditRules": break; default: break; } } }
public void NewItemClicked(ButtonClickArgs e) { var title = $"{e.Action} {e.ItemDescriptor}"; var message = $"{e.Action} {e.ItemDescriptor}: "; var results = CrudDialogProvider.Show(new NestedViewModel <RegionViewModel>(title, message, new RegionViewModel(), DialogButtons.OkCancel)); if (results.DialogResult != DialogResults.Ok) { return; } var newRegion = _regionController.Create(SelectedPreset.Id, results.InnerResults.Name); Regions.Add(newRegion); SelectedRegion = newRegion; }
public void EditItemClicked(object sender, ButtonClickArgs e) { var selectedRegion = SelectedRegion; var results = CrudDialogProvider.Show(new NestedViewModel <RegionViewModel>("Editing Region", "Editing Region: ", selectedRegion, DialogButtons.OkCancel)); if (results.DialogResult != DialogResults.Ok) { return; } var existingRegionIndex = Regions.IndexOf(SelectedRegion); _regionController.Delete(SelectedPreset.Id, SelectedRegion.Id); var newRegion = _regionController.Create(SelectedPreset.Id, results.InnerResults.Name); Regions[existingRegionIndex] = newRegion; SelectedRegion = newRegion; }
public async Task EditItemClickedAsync(object sender, ButtonClickArgs e) { var results = CrudDialogProvider.Show(new NestedViewModel <PresetViewModel>("Editing Preset", "Editing Preset: ", SelectedPreset, DialogButtons.OkCancel)); if (results.DialogResult != DialogResults.Ok) { return; } var existingPresetIndex = Presets.IndexOf(SelectedPreset); SelectedPreset.Name = results.InnerResults.Name; SelectedPreset.ProcessName = results.InnerResults.ProcessName; await _presetController.UpdateAsync(SelectedPreset); Presets[existingPresetIndex] = SelectedPreset; }
/// <summary> /// Metodo utilizado para lanzar el evento /// ToolBarButtonClick /// </summary> /// <param name="pButtonClicked">Botón presionado</param> private void OnToolBarButtonClick(ButtonBase pButtonClicked) { if (ToolBarButtonClick != null) { ButtonClickArgs<ButtonBase> e = new ButtonClickArgs<ButtonBase>(pButtonClicked); if (pButtonClicked.GetType() == typeof(ButtonBase)) { if (!string.IsNullOrEmpty(((ButtonBase)pButtonClicked).AssemblyInfo)) { XtraForm wFrm = (XtraForm)Fwk.HelperFunctions.ReflectionFunctions.CreateInstance(((ButtonBase)pButtonClicked).AssemblyInfo); e.Form = wFrm; } } ToolBarButtonClick(this, e); } }
public async Task NewItemClickedAsync(ButtonClickArgs args) { var e = (ButtonClickArgs)args; var title = $"{e.Action} {e.ItemDescriptor}"; var message = $"{e.Action} {e.ItemDescriptor}: "; var selectedItem = SelectedPreset; var results = CrudDialogProvider.Show(new NestedViewModel <PresetViewModel>(title, message, selectedItem, DialogButtons.OkCancel)); if (results.DialogResult != DialogResults.Ok) { return; } var newPreset = await _presetController.CreateAsync(results.InnerResults.Name, results.InnerResults.ProcessName); Presets.Add(newPreset); SelectedPreset = newPreset; }
public void onHospButtonClicked(object source, ButtonClickArgs args) { id = args.id_val; //Book_Pop.Visibility = Visibility.Visible; //Book_Pop.IsOpen = true; }
private static void Button_Click(object sender, ButtonClickArgs args) { Console.WriteLine("Button_Click"); }
public void PerformClick(ButtonClickArgs args) { Click?.Invoke(this, args); }
void uC_NavMenu1_MenuButtonClick(object sender, ButtonClickArgs <Fwk.UI.Controls.Menu.ButtonBase> e) { _CurrentButtonBase = e.ButtonClicked; textBox1.Text = _CurrentButtonBase.Guid.ToString(); LoadControl <UC_ButtonBaseEditor>(_CurrentButtonBase, ActionTypes.Edit, uC_NavMenu1.ActiveGroup.Tag); }
static void btn_OnClick(object sender, ButtonClickArgs e) { Console.WriteLine("You click me!" + e.Clicker.ToString()); }
static void btn_DoubleClick(object sender, ButtonClickArgs e) { Console.WriteLine("You double click me!"); }
public void onButtonClicked(object source, ButtonClickArgs args) { }