Ejemplo n.º 1
0
		private static void AddNewGuid(IAbout a)
		{
			var guid = Guid.NewGuid();
			var w = guid.ToString();

			new IHTMLPre { innerText = w }.AttachTo(a.Content);
		}
Ejemplo n.º 2
0
        public Application(IAbout a)
        {
            a.Ammo.Hide();
            a.Gold.Hide();
            a.Header.innerText = "Hi Chris!";


            var foo = new UltraRaycast6Sprite();



            foo.AttachSpriteTo(a.Foo);

            foo.AtGotItem +=
                e =>
            {
                if (e == "ammo")
                {
                    new ammo().AttachTo(a.Bag);
                }
                else if (e == "gold")
                {
                    new goldchest().AttachTo(a.Bag);
                }

                new UltraWebService().PlayerGotItem(e,
                                                    y =>
                {
                    // server anwsered :)
                }
                                                    );
            };
        }
Ejemplo n.º 3
0
		public Application(IAbout a)
		{
			Native.document.title = "ScriptCoreLib.Ultra.Components.Volatile";



			
		}
Ejemplo n.º 4
0
        private static void AddNewGuid(IAbout a)
        {
            var guid = Guid.NewGuid();
            var w    = guid.ToString();

            new IHTMLPre {
                innerText = w
            }.AttachTo(a.Content);
        }
Ejemplo n.º 5
0
        public Application(IAbout a)
        {
            var s = new InternalSaveActionSprite();

            s.AttachSpriteTo(a.Content);

            s.WebService = new ApplicationWebService();

            var pp = new ProjectNameInput();

            pp.AttachControlTo(a.Content);

            var Files = new IHTMLDiv().AttachTo(a.Content);

            s.WhenReady(
                i =>
            {
                Action Update = delegate
                {
                    var sln = new SolutionBuilder
                    {
                        Name = pp.ProjectName.Text
                    };

                    i.FileName = sln.Name + ".zip";
                    i.Clear();

                    Files.Clear();

                    sln.WriteTo(
                        (SolutionFile f) =>
                    {
                        new IHTMLPre {
                            innerText = f.Name
                        }.AttachTo(Files);

                        i.Add(f.Name, f.Content);
                    }
                        );
                };

                pp.UpdateButton.TextChanged +=
                    delegate
                {
                };

                pp.UpdateButton.Click +=
                    delegate
                {
                    Update();
                };

                Update();
            }
                );
        }
Ejemplo n.º 6
0
        public Application(IAbout a)
        {
            AddNewGuid(a);

            //for (int i = 0; i < 8; i++)
            //{
            //    AddNewGuid(a);

            //}
        }
Ejemplo n.º 7
0
		public Application(IAbout a)
		{
			AddNewGuid(a);

			//for (int i = 0; i < 8; i++)
			//{
			//    AddNewGuid(a);

			//}
		}
Ejemplo n.º 8
0
		public Application(IAbout a)
		{
			var s = new InternalSaveActionSprite();

			s.AttachSpriteTo(a.Content);

			s.WebService = new ApplicationWebService();

			var pp = new ProjectNameInput();

			pp.AttachControlTo(a.Content);

			var Files = new IHTMLDiv().AttachTo(a.Content);

			s.WhenReady(
				i =>
				{
					Action Update = delegate
					{
						var sln = new SolutionBuilder
						{
							Name = pp.ProjectName.Text
						};

						i.FileName = sln.Name + ".zip";
						i.Clear();

						Files.Clear();

						sln.WriteTo(
							(SolutionFile f) =>
							{
								new IHTMLPre { innerText = f.Name }.AttachTo(Files);

								i.Add(f.Name, f.Content);
							}
						);
					};

					pp.UpdateButton.TextChanged +=
						delegate
						{
						};

					pp.UpdateButton.Click +=
						delegate
						{
							Update();
						};

					Update();
				}
			);
		}
Ejemplo n.º 9
0
    public About()
    {
        //初始化ASP.NET内置对象
        Response    = System.Web.HttpContext.Current.Response;
        Request     = System.Web.HttpContext.Current.Request;
        Server      = System.Web.HttpContext.Current.Server;
        Session     = System.Web.HttpContext.Current.Session;
        Application = System.Web.HttpContext.Current.Application;

        tools = ToolsFactory.CreateTools();
        MyBLL = AboutFactory.CreateAbout();
    }
Ejemplo n.º 10
0
        public AboutViewModel(IAbout about, INavigationService2 navigationService)
            : base(navigationService)
        {
            _about = about;

            // TODO - set this to null if you don't want the little "Rate Our App" widget
#pragma warning disable CS4014 // Because this call is not awaited, execution of the current method continues before the call is completed
            RateCommand = new RelayCommand(() => Launcher.LaunchUriAsync(new Uri($"ms-windows-store:REVIEW?ProductId={_about.ProductId}")));
#pragma warning restore CS4014 // Because this call is not awaited, execution of the current method continues before the call is completed

            // This currently only works for Microsoft's apps so don't uncomment it
            //FeedbackCommand = new RelayCommand(() => Launcher.LaunchUriAsync(new Uri($"windows-feedback:?contextid=522")));
        }
Ejemplo n.º 11
0
        public AboutViewModel(IAbout about, INavigationService2 navigationService)
            : base(navigationService)
        {
            _about = about;

#pragma warning disable CS4014 // Because this call is not awaited, execution of the current method continues before the call is completed
            RateCommand = new RelayCommand(() => Launcher.LaunchUriAsync(new Uri($"ms-windows-store:REVIEW?ProductId={_about.ProductId}")));
#pragma warning restore CS4014 // Because this call is not awaited, execution of the current method continues before the call is completed

//windows-feedback:ADD?PFN=Microsoft.WindowsFeedback_cw5n1h2txyewy
            //FeedbackCommand = new RelayCommand(() => Launcher.LaunchUriAsync(
            //        new Uri($"ms-windows-store:REVIEW?PFN={_about.PackageName}")));
        }
Ejemplo n.º 12
0
        public AboutViewModel(IAbout about, INavigationService2 navigationService)
            : base(navigationService)
        {
            _about = about;

#pragma warning disable CS4014 // Because this call is not awaited, execution of the current method continues before the call is completed
            RateCommand = new RelayCommand(() => Launcher.LaunchUriAsync(new Uri($"ms-windows-store:REVIEW?ProductId={_about.ProductId}")));
#pragma warning restore CS4014 // Because this call is not awaited, execution of the current method continues before the call is completed

            //windows-feedback:ADD?PFN=Microsoft.WindowsFeedback_cw5n1h2txyewy
            //FeedbackCommand = new RelayCommand(() => Launcher.LaunchUriAsync(
            //        new Uri($"ms-windows-store:REVIEW?PFN={_about.PackageName}")));
        }
Ejemplo n.º 13
0
        public AboutViewModel(IAbout about, INavigationService2 navigationService)
            : base(navigationService)
        {
            _about = about;

            // TODO - set this to null if you don't want the little "Rate Our App" widget
#pragma warning disable CS4014 // Because this call is not awaited, execution of the current method continues before the call is completed
            RateCommand = new RelayCommand(() => Launcher.LaunchUriAsync(new Uri($"ms-windows-store:REVIEW?ProductId={_about.ProductId}")));
#pragma warning restore CS4014 // Because this call is not awaited, execution of the current method continues before the call is completed

            // This currently only works for Microsoft's apps so don't uncomment it
            //FeedbackCommand = new RelayCommand(() => Launcher.LaunchUriAsync(new Uri($"windows-feedback:?contextid=522")));
        }
Ejemplo n.º 14
0
        public LibraryDemoWorkbench(IAbout about,
                                    CustomStripControlTestDockView customStripControlTestDockView,
                                    ImagesPanelControlTestDockView imagesPanelControlTestDockView)
        {
            _customStripControlTestDockView = customStripControlTestDockView;
            _imagesPanelControlTestDockView = imagesPanelControlTestDockView;

            InitializeComponent();

            DockPanelManager();
            MenuItemClickEventManager();

            Text = $"{Text} - {about.AssemblyVersion}";
            _Logger.Info($"{Name}-{GetType().Name}");
        }
Ejemplo n.º 15
0
    //private U_ILinksApplication MyApplication;

    public CMS()
    {
        //初始化ASP.NET内置对象
        Response     = System.Web.HttpContext.Current.Response;
        Request      = System.Web.HttpContext.Current.Request;
        Server       = System.Web.HttpContext.Current.Server;
        Session      = System.Web.HttpContext.Current.Session;
        Application  = System.Web.HttpContext.Current.Application;
        Webnotice    = NoticeFactory.CreateNotice();
        tools        = ToolsFactory.CreateTools();
        MyHelpCate   = HelpFactory.CreateHelpCate();
        MyHelp       = HelpFactory.CreateHelp();
        MyAbout      = AboutFactory.CreateAbout();
        mylink       = FriendlyLinkFactory.CreateFriendlyLink();
        pub          = new Public_Class();
        mylinkcate   = FriendlyLinkFactory.CreateFriendlyLinkCate();
        MyNoticeCate = NoticeFactory.CreateNoticeCate();
        // MyApplication = U_LinksApplicationFactory.CreateU_LinksApplication();
    }
Ejemplo n.º 16
0
        public Application(IAbout a)
        {
            new SolutionBuilder
            {
            }.WriteTo(
                (SolutionFile f) =>
            {
                var s = new Section().ToSectionConcept();

                s.Header = f.Name;
                s.Header.style.fontFamily = ScriptCoreLib.JavaScript.DOM.IStyle.FontFamilyEnum.Courier;


                s.Content = new SolutionFileView {
                    File = f
                }.Container;

                s.Content.style.border = "1px solid gray";

                s.IsExpanded = false;
                s.Target.Container.AttachTo(a.Content);
            }
                );
        }
Ejemplo n.º 17
0
		public Application(IAbout a)
		{
	

			a.Ammo.Hide();
			a.Gold.Hide();
			a.Header.innerText = "Hi Chris!";


			var foo = new UltraRaycast6Sprite();



			foo.AttachSpriteTo(a.Foo);

			foo.AtGotItem +=
				e =>
				{
					if (e == "ammo")
					{
						new ammo().AttachTo(a.Bag);
					}
					else if (e == "gold")
					{
						new goldchest().AttachTo(a.Bag);
					}

					new UltraWebService().PlayerGotItem(e,
						y =>
						{
							// server anwsered :)
						}
					);
				};

		}
Ejemplo n.º 18
0
		public Application(IAbout a)
		{
			new SolutionBuilder
			{

			}.WriteTo(
				(SolutionFile f) =>
				{
					var s = new Section().ToSectionConcept();

					s.Header = f.Name;
					s.Header.style.fontFamily = ScriptCoreLib.JavaScript.DOM.IStyle.FontFamilyEnum.Courier;

			
					s.Content = new SolutionFileView { File = f }.Container;

					s.Content.style.border = "1px solid gray";
		
					s.IsExpanded = false;
					s.Target.Container.AttachTo(a.Content);

				}
			);
		}
Ejemplo n.º 19
0
 public AboutViewModel(IAbout about)
 {
     About = about;
 }
Ejemplo n.º 20
0
 public AboutController(IAbout view)
 {
     _view = view;
     view.SetController(this);
 }
Ejemplo n.º 21
0
 /// <summary>Static getter for Image</summary>
 public static IPublishedContent GetImage(IAbout that)
 {
     return(that.GetPropertyValue <IPublishedContent>("image"));
 }
Ejemplo n.º 22
0
 /// <summary>Static getter for About Text</summary>
 public static IHtmlString GetAboutText(IAbout that)
 {
     return(that.GetPropertyValue <IHtmlString>("aboutText"));
 }
Ejemplo n.º 23
0
 public AboutService(IAbout about)
 {
     _about = about;
 }
Ejemplo n.º 24
0
 public About()
 {
     dal = DataAccess.CreateAbout();
 }
Ejemplo n.º 25
0
 public AboutController(IAbout aboutCollection)
 {
     this.abouts = aboutCollection;
 }
Ejemplo n.º 26
0
 public Application(IAbout a)
 {
     Native.document.title = "ScriptCoreLib.Ultra.Components.Volatile";
 }