Exemplo n.º 1
0
    private void MenuItemDebug_Click(object sender, RoutedEventArgs e)
    {
        var     debugModel = new TabModel("Debug");
        TabView clone      = TabView.DeepClone();

        debugModel.AddData(clone);
        //Control debugControl = clone.CreateChildControl(debugModel, "Debug");
    }
Exemplo n.º 2
0
    public async Task LoadAsync(Call call, TabModel model)
    {
        Task task = LoadMethod.LoadAsync(call);
        await task.ConfigureAwait(false);

        object result = ((dynamic)task).Result;

        model.AddData(result);
    }
Exemplo n.º 3
0
        public override void Load(Call call, TabModel model)
        {
            model.AddData(Tab.Database);

            /*model.Items = new ItemCollection<ListItem>()
             * {
             *      //new ListItem("Platforms", new TabPlatforms()),
             *      new ListItem("Database", database),
             * };*/
        }
Exemplo n.º 4
0
        public override void Load(Call call, TabModel model)
        {
            _items = new HashSet <TabTestGridCollectionSize.TestItem>();
            AddEntries(null);
            model.AddData(_items);

            model.Actions = new List <TaskCreator>()
            {
                new TaskDelegate("Add Entries", AddEntries),
            };
        }
Exemplo n.º 5
0
        public override void Load(Call call, TabModel model)
        {
            _items = new Dictionary <string, TestItem>();
            AddEntries(null);
            model.AddData(_items);

            model.Actions = new List <TaskCreator>()
            {
                new TaskDelegate("Add Entries", AddEntries),
            };
        }
Exemplo n.º 6
0
        public override void Load(Call call, TabModel model)
        {
            // uses DataGrid internally, doesn't work well yet
            model.AddData(_logEntry);
            model.Editing = true;

            model.Actions = new List <TaskCreator>()
            {
                new TaskDelegate("Add Log Entry", AddEntry),
            };

            model.Notes = "You can specify parameters for an action.\n\nSpecify the values for a new Log Entry and click the Add button to add it";
        }
Exemplo n.º 7
0
        public override void Load(Call call, TabModel model)
        {
            var testItems = new TestItem?[10];

            for (int i = 0; i < testItems.Length; i++)
            {
                testItems[i] = new TestItem
                {
                    SmallNumber = i,
                    BigNumber   = i * 1000,
                };
            }
            //model.Items = testItems;
            model.AddData(testItems);
        }
Exemplo n.º 8
0
 public override void Load(Call call, TabModel model)
 {
     model.AddData(Tab.TestItem);
 }
Exemplo n.º 9
0
        public override void Load(Call call, TabModel model)
        {
            Tab.Bookmarks.Load(call, true);

            model.AddData(Tab.Bookmarks.Items);
        }