Beispiel #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");
    }
Beispiel #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);
    }
Beispiel #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),
             * };*/
        }
Beispiel #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),
            };
        }
        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),
            };
        }
        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";
        }
        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);
        }
Beispiel #8
0
 public override void Load(Call call, TabModel model)
 {
     model.AddData(Tab.TestItem);
 }
Beispiel #9
0
        public override void Load(Call call, TabModel model)
        {
            Tab.Bookmarks.Load(call, true);

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