예제 #1
0
 internal void RaiseButtonClick(ButtonClickArgs clickArgs)
 {
     if (null != ButtonClick)
         ButtonClick(clickArgs);
     else
         clickArgs.Dispose();
 }
예제 #2
0
 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;
 }
예제 #3
0
        public void Click()
        {
            var buttonClickArgs = new ButtonClickArgs {
                Clicker = "Robert published!"
            };

            OnClick(this, buttonClickArgs);
        }
예제 #4
0
 /// <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);
     }
 }
예제 #5
0
        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;
        }
예제 #6
0
 /// <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);
     }
 }
예제 #7
0
        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();
        }
예제 #8
0
        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);
        }
예제 #9
0
 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;
 }
예제 #10
0
 internal void RaiseButtonClick(ButtonClickArgs clickArgs)
 {
     if (null != ButtonClick)
     {
         ButtonClick(clickArgs);
     }
     else
     {
         clickArgs.Dispose();
     }
 }
예제 #11
0
        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;
        }
예제 #12
0
        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;
        }
예제 #13
0
        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;
                }
            }
        }
예제 #14
0
        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;
        }
예제 #15
0
        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;
        }
예제 #16
0
        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;
        }
예제 #17
0
        /// <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);
            }

        }
예제 #18
0
        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;
        }
예제 #19
0
 public void onHospButtonClicked(object source, ButtonClickArgs args)
 {
     id = args.id_val;
     //Book_Pop.Visibility = Visibility.Visible;
     //Book_Pop.IsOpen = true;
 }
예제 #20
0
 private static void Button_Click(object sender, ButtonClickArgs args)
 {
     Console.WriteLine("Button_Click");
 }
예제 #21
0
 public void PerformClick(ButtonClickArgs args)
 {
     Click?.Invoke(this, args);
 }
예제 #22
0
 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);
 }
예제 #23
0
 static void btn_OnClick(object sender, ButtonClickArgs e)
 {
     Console.WriteLine("You click me!" + e.Clicker.ToString());
 }
예제 #24
0
 static void btn_DoubleClick(object sender, ButtonClickArgs e)
 {
     Console.WriteLine("You double click me!");
 }
예제 #25
0
 public void onButtonClicked(object source, ButtonClickArgs args)
 {
 }