private static void AddNewGuid(IAbout a)
		{
			var guid = Guid.NewGuid();
			var w = guid.ToString();

			new IHTMLPre { innerText = w }.AttachTo(a.Content);
		}
Example #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 :)
                }
                                                    );
            };
        }
		public Application(IAbout a)
		{
			Native.document.title = "ScriptCoreLib.Ultra.Components.Volatile";



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

            new IHTMLPre {
                innerText = w
            }.AttachTo(a.Content);
        }
Example #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();
            }
                );
        }
Example #6
0
        public Application(IAbout a)
        {
            AddNewGuid(a);

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

            //}
        }
		public Application(IAbout a)
		{
			AddNewGuid(a);

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

			//}
		}
		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();
				}
			);
		}
Example #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();
    }
        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")));
        }
Example #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}")));
        }
Example #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}")));
        }
Example #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")));
        }
        public LibraryDemoWorkbench(IAbout about,
                                    CustomStripControlTestDockView customStripControlTestDockView,
                                    ImagesPanelControlTestDockView imagesPanelControlTestDockView)
        {
            _customStripControlTestDockView = customStripControlTestDockView;
            _imagesPanelControlTestDockView = imagesPanelControlTestDockView;

            InitializeComponent();

            DockPanelManager();
            MenuItemClickEventManager();

            Text = $"{Text} - {about.AssemblyVersion}";
            _Logger.Info($"{Name}-{GetType().Name}");
        }
Example #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();
    }
Example #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);
            }
                );
        }
		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 :)
						}
					);
				};

		}
		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);

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