protected override void GetToolbarItems(IToolBarSet set) { base.GetToolbarItems(set); set.Add(DefaultToolBarItem.Add, new ActionCommand(AddNew)); set.Add(DefaultToolBarItem.Edit, new ActionCommand(Edit)); set.Add(DefaultToolBarItem.Remove, new ActionCommand(ThrowException)); set.Add(DefaultToolBarItem.Refresh, new ActionCommand(EditDialog)); set.Add("Show/Hide Busy Dialog", new ActionCommand(ShowHideBusyDialod)); set.AddSeparator(); }
protected override void GetToolbarItems(IToolBarSet set) { base.GetToolbarItems(set); var cb = new ComboBox { Width = 150 }; cb.Items.Add(string.Empty); cb.Items.Add(Brushes); cb.Items.Add(SystemColors); cb.SelectionChanged += (s, e) => ShowBrushes(cb.SelectedValue as string); set.Add(cb); }
protected override void GetToolbarItems(IToolBarSet set) { base.GetToolbarItems(set); set.Add(DefaultToolBarItem.Add, AddNew, "Add new Module."); }
protected override void GetToolbarItems(IToolBarSet set) { base.GetToolbarItems(set); //set.Add(DefaultToolBarItem.Add, null, "Add"); }
protected override void GetToolbarItems(IToolBarSet set) { base.GetToolbarItems(set); set.Add(DefaultToolBarItem.Add, new ActionCommand(AddNewData), "Add New Data table"); set.Add(DefaultToolBarItem.Edit, new ActionCommand(EditData), "Edit Data table"); }
protected virtual void GetToolbarItems(IToolBarSet set) { }
/// <summary> /// this method will call GetToolbarItems /// </summary> /// <param name="set"></param> /// <returns></returns> protected async Task GetToolbarItemsAsync(IToolBarSet set) => await TaskCreater.CreateTask(GetToolbarItems, set);