Esempio n. 1
0
        public override void InitRemotable(DextopRemote remote, DextopConfig config)
        {
            base.InitRemotable(remote, config);
            Remote.RemoteHostType = "Showcase.demos.GridEditorsWindow";
            Remote.AddStore("model", new Crud());
            Remote.AddLookupData("Lookup", new[] {
                new object[] { Lookup.L1, "Item 1" },
                new object[] { Lookup.L2, "Item 2" },
                new object[] { Lookup.L3, "Item 3" },
            });
            Remote.AddStore("RemoteLookup", RemoteLookup);

            if (remoteData == null)
            {
                remoteData = new List <RemoteLookupModel>
                {
                    new RemoteLookupModel {
                        Code = "USA", Description = "United States of America"
                    },
                    new RemoteLookupModel {
                        Code = "BIH", Description = "Bosnia and Herzegowina"
                    },
                    new RemoteLookupModel {
                        Code = "CRO", Description = "Croatia"
                    },
                    new RemoteLookupModel {
                        Code = "SRB", Description = "Serbia"
                    },
                    new RemoteLookupModel {
                        Code = "CHN", Description = "China"
                    }
                }
            }
            ;
        }
Esempio n. 2
0
        public override void InitRemotable(DextopRemote remote, DextopConfig config)
        {
            base.InitRemotable(remote, config);
            Remote.RemoteHostType = "Showcase.Session";

            config["aboutPageUrl"] = DextopUtil.AbsolutePath("source/About.html?cb=" + DateTime.Now.Ticks);
        }
Esempio n. 3
0
        public override void InitRemotable(DextopRemote remote, DextopConfig config)
        {
            base.InitRemotable(remote, config);
            Remote.RemoteHostType = "Showcase.Session";

			config["aboutPageUrl"] = DextopUtil.AbsolutePath("source/About.html?cb=" + DateTime.Now.Ticks);            
        }
Esempio n. 4
0
        public override void InitRemotable(DextopRemote remote, DextopConfig config)
        {
            base.InitRemotable(remote, config);
            var crud = new Crud();

            crud.Create(new[] { new GridModel {
                                    Name       = "Player 1",
                                    Age        = 30,
                                    Basketball = true,
                                    Football   = true,
                                    Gender     = Gender.Male,
                                    Height     = 180,
                                    Weight     = 100
                                }, new GridModel {
                                    Name       = "Player 2",
                                    Age        = 29,
                                    Basketball = true,
                                    Football   = true,
                                    Gender     = Gender.Male,
                                    Height     = 175,
                                    Weight     = 90
                                } });
            Remote.AddStore("model", crud);
            Remote.AddLookupData("Gender", new[] {
                new object[] { Gender.Male, "Male" },
                new object[] { Gender.Female, "Female" }
            });
        }
Esempio n. 5
0
        public override void InitRemotable(DextopRemote remote, DextopConfig config)
        {
            base.InitRemotable(remote, config);

            Remote.AddStore("Value2", GetValues2);
            Remote.AddStore("Value3", GetValues3);
        }
Esempio n. 6
0
        public override void InitRemotable(DextopRemote remote, DextopConfig config)
        {
            base.InitRemotable(remote, config);

            Remote.AddStore("Value2", GetValues2);
            Remote.AddStore("Value3", GetValues3);

        }
Esempio n. 7
0
 /// <summary>
 /// Initializes the remotable object.
 /// </summary>
 /// <param name="remote">Remote object used for communication with the client-side object.</param>
 /// <param name="config">Configuration of the object to be created on the client side.</param>
 public void InitRemotable(DextopRemote remote, DextopConfig config)
 {
     Remote = remote;
     Remote.RemoteHostType = "Dextop.data.Proxy";
     config["model"]       = meta.ModelName;
     config["reader"]      = serializer.Type;
     config["writer"]      = serializer.Type;
 }
Esempio n. 8
0
		/// <summary>
		/// Initializes the remotable object.
		/// </summary>
		/// <param name="remote">Remote object used for communication with the client-side object.</param>
		/// <param name="config">Configuration of the object to be created on the client side.</param>
        public void InitRemotable(DextopRemote remote, DextopConfig config)
        {
            Remote = remote;
            Remote.RemoteHostType = "Dextop.data.Proxy";
            config["model"] = meta.ModelName;
            config["reader"] = serializer.Type;
            config["writer"] = serializer.Type;
        }
Esempio n. 9
0
 public override void InitRemotable(DextopRemote remote, DextopConfig config)
 {
     base.InitRemotable(remote, config);
     config["title"]       = "Simple Window";
     config["html"]        = "This is a simple window with html content from the server...";
     config["width"]       = 500;
     config["height"]      = 300;
     Remote.RemoteHostType = "Dextop.Window";
 }
Esempio n. 10
0
        public override void InitRemotable(DextopRemote remote, DextopConfig config)
        {
            base.InitRemotable(remote, config);
			var rand = new Random();
			data = new List<GridModel>();
			for (var i = 0; i<5000; i++)
				data.Add(new GridModel { Id = i, Name = "Item " + i, Value = rand.Next(1000, 2000) });
			Remote.AddStore("model", Read);
        }
Esempio n. 11
0
		public override void InitRemotable(DextopRemote remote, DextopConfig config)
		{
			base.InitRemotable(remote, config);			
			config["title"] = "Simple Window";
			config["html"] = "This is a simple window with html content from the server...";
			config["width"] = 500;
			config["height"] = 300;
			Remote.RemoteHostType = "Dextop.Window";
		}
Esempio n. 12
0
 public override void InitRemotable(DextopRemote remote, DextopConfig config)
 {
     base.InitRemotable(remote, config);
     Remote.AddStore("model", new Crud());
     Remote.AddLookupData("Gender", new[] {
         new object[] { Gender.Male, "Male" },
         new object[] { Gender.Female, "Female" }
     });
 }
Esempio n. 13
0
 public override void InitRemotable(DextopRemote remote, DextopConfig config)
 {
     base.InitRemotable(remote, config);
     Remote.RemoteHostType = "Showcase.demos.LiveGridWindow";
     Remote.AddLiveStore("model", store);
     Remote.AddLookupData("Type", new [] {
         new object[] { Type.Security, "Security" },
         new object[] { Type.Bond, "Bond" },
     });
 }
Esempio n. 14
0
        public override void InitRemotable(DextopRemote remote, DextopConfig config)
        {
            base.InitRemotable(remote, config);
            var crud = new DextopMemoryDataProxy <Model, int>(a => a.Id, (lastId) => { return(++lastId); })
            {
                Paging = true
            };

            Remote.AddStore("model", crud);
        }
Esempio n. 15
0
 public override void InitRemotable(DextopRemote remote, DextopConfig config)
 {
     base.InitRemotable(remote, config);
     config["data"] = new ComplexForm
     {
         Time = DateTime.Now.TimeOfDay,
         Number = 2,
         Date = DateTime.Today
     };
 }
Esempio n. 16
0
 public override void InitRemotable(DextopRemote remote, DextopConfig config)
 {
     base.InitRemotable(remote, config);          
     Remote.RemoteHostType = "Showcase.demos.LiveGridWindow";
     Remote.AddLiveStore("model", store);
     Remote.AddLookupData("Type", new [] {
         new object[] { Type.Security, "Security"},
         new object[] { Type.Bond, "Bond"},
     });
 }
Esempio n. 17
0
 public override void InitRemotable(DextopRemote remote, DextopConfig config)
 {
     base.InitRemotable(remote, config);
     config["data"] = new ComplexForm
     {
         Time   = DateTime.Now.TimeOfDay,
         Number = 2,
         Date   = DateTime.Today
     };
 }
Esempio n. 18
0
        public override void InitRemotable(DextopRemote remote, DextopConfig config)
        {
            base.InitRemotable(remote, config);
            Remote.RemoteHostType = "Showcase.demos.LiveChartWindow";
            Remote.AddLiveStore("model", store);

#if DEBUG
            timer = new Timer(OnTimer, null, 100, 300);
#else
            timer = new Timer(OnTimer, null, 100, 2000);            
#endif
        }
Esempio n. 19
0
        public override void InitRemotable(DextopRemote remote, DextopConfig config)
        {
            base.InitRemotable(remote, config);
            Remote.RemoteHostType = "Showcase.demos.LiveChartWindow";
            Remote.AddLiveStore("model", store);

#if DEBUG
            timer = new Timer(OnTimer, null, 100, 300);
#else
            timer = new Timer(OnTimer, null, 100, 2000);
#endif
        }
Esempio n. 20
0
 public override void InitRemotable(DextopRemote remote, DextopConfig config)
 {
     base.InitRemotable(remote, config);
     config["data"] = new Form
     {
         R1 = "B",
         R2 = 0,
         R3 = 2,
         R4 = 3,
         R5 = 1
     };
 }
Esempio n. 21
0
 public override void InitRemotable(DextopRemote remote, DextopConfig config)
 {
     base.InitRemotable(remote, config);
     config["data"] = new Form
     {
         R1 = "B",
         R2 = 0,
         R3 = 2,
         R4 = 3,
         R5 = 1
     };
 }
Esempio n. 22
0
        public override void InitRemotable(DextopRemote remote, DextopConfig config)
        {
            base.InitRemotable(remote, config);

			Remote.AddStore("RemoteLookup", RemoteLookup);

            config["data"] = new Form
            {
                RemoteLookup2 = "Blue",
                RemoteLookup = "Red",
                RemoteLookupDescription = "Code Red"
            };
        }
Esempio n. 23
0
        public override void InitRemotable(DextopRemote remote, DextopConfig config)
        {
            base.InitRemotable(remote, config);

            Remote.AddStore("RemoteLookup", RemoteLookup);

            config["data"] = new Form
            {
                RemoteLookup2           = "Blue",
                RemoteLookup            = "Red",
                RemoteLookupDescription = "Code Red"
            };
        }
Esempio n. 24
0
        public override void InitRemotable(DextopRemote remote, DextopConfig config)
        {
            base.InitRemotable(remote, config);
            var rand = new Random();

            data = new List <GridModel>();
            for (var i = 0; i < 5000; i++)
            {
                data.Add(new GridModel {
                    Id = i, Name = "Item " + i, Value = rand.Next(1000, 2000)
                });
            }
            Remote.AddStore("model", Read);
        }
Esempio n. 25
0
        public override void InitRemotable(DextopRemote remote, DextopConfig config)
        {
            base.InitRemotable(remote, config);
            Remote.AddStore("model", Load);
            Remote.AddStore("history", LoadHistory);
            Remote.AddLookupData("Currency", CurrencyDataProvider.GetCurrencyList().Rates.Select(a => new Object[] {
                a.ISOCode,
                String.Format("{0} ({1})", a.Currency, a.ISOCode)
            }).ToArray());

            config["convertData"] = new ConvertForm
            {
                Amount   = 100,
                Currency = "EUR"
            };
        }
        public override void InitRemotable(DextopRemote remote, DextopConfig config)
        {
            base.InitRemotable(remote, config);

            var crud = new Crud();

            crud.Create(new[] { new GridModel {
                                    Name   = "John Doe",
                                    Age    = 24,
                                    Gender = Gender.Male,
                                    Height = 183
                                }, new GridModel {
                                    Name       = "Jane Doe",
                                    Age        = 25,
                                    Basketball = true,
                                    Volleyball = true,
                                    Gender     = Gender.Female,
                                    Height     = 165
                                }, new GridModel {
                                    Name     = "John Wayne",
                                    Age      = 72,
                                    Football = true,
                                    Gender   = Gender.Male,
                                    Height   = 180
                                }, new GridModel {
                                    Name       = "Laura Palmer",
                                    Age        = 70,
                                    Basketball = true,
                                    Football   = true,
                                    Gender     = Gender.Female,
                                    Height     = 172
                                }, new GridModel {
                                    Name       = "Mariah Carrey",
                                    Age        = 43,
                                    Basketball = true,
                                    Football   = true,
                                    Volleyball = true,
                                    Gender     = Gender.Female,
                                    Height     = 170
                                } });
            Remote.AddStore("model", crud);
            Remote.AddLookupData("Gender", new[] {
                new object[] { Gender.Male, "Male" },
                new object[] { Gender.Female, "Female" }
            });
        }
Esempio n. 27
0
        public override void InitRemotable(DextopRemote remote, DextopConfig config)
        {
            base.InitRemotable(remote, config);

            Remote.AddLookupData("Lookup", new[] {
                new object[] { "1", "Item 1" },
                new object[] { "2", "Item 2" },
            });

            Remote.AddStore("RemoteLookup", RemoteLookup);

            config["data"] = new Form
            {
                RemoteLookup2 = "Blue",
                RemoteLookup = "Red",
                RemoteLookupDescription = "Code Red"
            };
        }
Esempio n. 28
0
 public override void InitRemotable(DextopRemote remote, DextopConfig config)
 {
     base.InitRemotable(remote, config);
     Remote.OnProcessAjaxRequest = RenderReport;
     Remote.AddStore("reports", new[] {
         new ReportType {
             ReportId = "GdpByYear", Title = "GDP By Year"
         },
         new ReportType {
             ReportId = "GdpByCountry", Title = "GDP By Country"
         },
         new ReportType {
             ReportId = "BiggestCountries", Title = "Biggest Countries"
         },
         new ReportType {
             ReportId = "FastestGrowingCountries", Title = "Fastest Growing Countries"
         },
         new ReportType {
             ReportId = "BestCountries", Title = "Best Countries (GNI per Capita)"
         },
     });
 }
Esempio n. 29
0
        public override void InitRemotable(DextopRemote remote, DextopConfig config)
        {
            base.InitRemotable(remote, config);

            Remote.AddLookupData("Lookup", new[] {
                new object[] { "1", "Item 1" },
                new object[] { "2", "Item 2" },
            });

            Remote.AddStore("RemoteLookup", RemoteLookup);

            config["data"] = new Form
            {
                Date                    = DateTime.Today,
                Time                    = DateTime.Now.TimeOfDay,
                Checkbox                = true,
                Text                    = "Some text",
                TextArea                = "Some multiline\r\ntext",
                Lookup                  = "2",
                RemoteLookup            = "Red",
                RemoteLookupDescription = "Code Red"
            };
        }
Esempio n. 30
0
        public override void InitRemotable(DextopRemote remote, DextopConfig config)
        {
            base.InitRemotable(remote, config);

			Remote.AddLookupData("Lookup", new[] {
				new object[] { "1", "Item 1" },
				new object[] { "2", "Item 2" },
			});

			Remote.AddStore("RemoteLookup", RemoteLookup);

			config["data"] = new Form
			{
				Date = DateTime.Today,
				Time = DateTime.Now.TimeOfDay,
				Checkbox = true,
				Text = "Some text",
				TextArea = "Some multiline\r\ntext",
				Lookup = "2",
				RemoteLookup = "Red",
				RemoteLookupDescription = "Code Red"
			};
        }
Esempio n. 31
0
 public override void InitRemotable(DextopRemote remote, DextopConfig config)
 {
     base.InitRemotable(remote, config);
     Remote.AddLiveStore("model", store);
     windows.TryAdd(this, 1);
 }
Esempio n. 32
0
 public override void InitRemotable(DextopRemote remote, DextopConfig config)
 {
     base.InitRemotable(remote, config);
     Remote.OnProcessAjaxRequest = DownloadFileHandler;
 }
Esempio n. 33
0
 public override void InitRemotable(DextopRemote remote, DextopConfig config)
 {
     base.InitRemotable(remote, config);
     Remote.RemoteHostType = "Showcase.demos.LiveGridWindow";
     Remote.AddLiveStore("model", store);
 }
Esempio n. 34
0
        public override void InitRemotable(DextopRemote remote, DextopConfig config)
        {
            base.InitRemotable(remote, config);                      
            Remote.AddLiveStore("model", store);
			windows.TryAdd(this, 1);
        }
 public override void InitRemotable(DextopRemote remote, DextopConfig config)
 {
     base.InitRemotable(remote, config);
     Remote.OnMapRemotingException = MapException;
 }
Esempio n. 36
0
		public override void InitRemotable(DextopRemote remote, DextopConfig config)
		{
			base.InitRemotable(remote, config);
			config.Add("soundUrl", DextopUtil.AbsolutePath("client/sound/notify.mp3"));
		}
Esempio n. 37
0
        public override void InitRemotable(DextopRemote remote, DextopConfig config)
        {
            base.InitRemotable(remote, config);
			Remote.AddStore("model", Read);
        }
Esempio n. 38
0
        public override void InitRemotable(DextopRemote remote, DextopConfig config)
        {
            base.InitRemotable(remote, config);			
			Remote.OnMapRemotingException = MapException;
        }
Esempio n. 39
0
		public override void InitRemotable(DextopRemote remote, DextopConfig config)
		{
			base.InitRemotable(remote, config);
			Remote.AddSharedLookupData("OnOff"); //See Session.cs to see how to add lookups
		}
Esempio n. 40
0
 public override void InitRemotable(DextopRemote remote, DextopConfig config)
 {
     base.InitRemotable(remote, config);
     Remote.OnProcessAjaxRequest = DownloadFileHandler;
 }
Esempio n. 41
0
 public override void InitRemotable(DextopRemote remote, DextopConfig config)
 {
     base.InitRemotable(remote, config);
     Remote.RemoteHostType = "Showcase.demos.WindowOnDemandWindow";
 }
Esempio n. 42
0
 public override void InitRemotable(DextopRemote remote, DextopConfig config)
 {
     base.InitRemotable(remote, config);
     Remote.AddStore("model", Read);
 }
Esempio n. 43
0
 public override void InitRemotable(DextopRemote remote, DextopConfig config)
 {
     base.InitRemotable(remote, config);
     config["title"] = title;
 }
 public override void InitRemotable(DextopRemote remote, DextopConfig config)
 {
     base.InitRemotable(remote, config);
     Remote.RemoteHostType = "Showcase.demos.ModelValidationGridWindow";
     Remote.AddStore <ValidationGridModel>("validationmodel", new ValidationCrud());
 }
Esempio n. 45
0
 public override void InitRemotable(DextopRemote remote, DextopConfig config)
 {
     base.InitRemotable(remote, config);
     Remote.AddSharedLookupData("OnOff");             //See Session.cs to see how to add lookups
 }
Esempio n. 46
0
 public override void InitRemotable(DextopRemote remote, DextopConfig config)
 {
     base.InitRemotable(remote, config);
     Remote.RemoteHostType = "Showcase.demos.GroupedGridHeadersWindow";
     Remote.AddStore <MarketDepth>("model", new Crud());
 }
Esempio n. 47
0
 public override void InitRemotable(DextopRemote remote, DextopConfig config)
 {
     base.InitRemotable(remote, config);
     Remote.RemoteHostType        = "Showcase.demos.TreeWindow";
     Remote.OnProcessAjaxRequest += ProcessAjaxRequest;
 }
Esempio n. 48
0
 /// <summary>
 /// Initializes the remotable object.
 /// </summary>
 /// <param name="remote">Remote object used for communication with the client-side object.</param>
 /// <param name="config">Configuration of the object to be created on the client side.</param>
 public void InitRemotable(DextopRemote remote, DextopConfig config)
 {
     Remote = remote;
     remote.RemoteHostType = "Dextop.data.LiveStore";
     config["model"] = meta.ModelName;
 }
Esempio n. 49
0
 public override void InitRemotable(DextopRemote remote, DextopConfig config)
 {
     base.InitRemotable(remote, config);
     Remote.RemoteHostType = "Showcase.demos.LogWindow";
 }
Esempio n. 50
0
 public override void InitRemotable(DextopRemote remote, DextopConfig config)
 {
     base.InitRemotable(remote, config);
     Remote.RemoteHostType = "Showcase.demos.TreeWindow";
     Remote.OnProcessAjaxRequest += ProcessAjaxRequest;
 }
Esempio n. 51
0
        public override void InitRemotable(DextopRemote remote, DextopConfig config)
        {
            base.InitRemotable(remote, config);
			Remote.RemoteHostType = "Showcase.demos.RemotingCallbacksWindow";            
        }
Esempio n. 52
0
 public void InitRemotable(DextopRemote remote, DextopConfig config)
 {
     throw new NotImplementedException();
 }
Esempio n. 53
0
 public override void InitRemotable(DextopRemote remote, DextopConfig config)
 {
     base.InitRemotable(remote, config);
     Remote.AddStore("model", new Codaxy.Dextop.Data.DextopMemoryDataProxy <User, int>(a => a.Id, (id) => { return(++id); }));
 }
Esempio n. 54
0
 public override void InitRemotable(DextopRemote remote, DextopConfig config)
 {
     base.InitRemotable(remote, config);
     Remote.AddStore("model", new Crud(), Remote.IsClientInitiated ? "store" : null);
 }
Esempio n. 55
0
 public override void InitRemotable(DextopRemote remote, DextopConfig config)
 {
     base.InitRemotable(remote, config);
     config["title"] = title;
 }