public ascx_HostLocalWebsite()
        {
            InitializeComponent();
            ascx_DropObject1.Text = "Drop Folder To Run";
            webservices = new WebServices();
            
            //extra GUI tweeks
            
            tbUrlToLoad.width(btReloadUrl.left() - tbUrlToLoad.left() -10);
			tbUrlToLoad.anchor_TopLeftRight();
			
			btStartWebService.append_Control<Button>()
				 .set_Text("Stop ")
				 .width(40)
				 .height(btStartWebService.height())
				 .onClick(()=> webservices.StopWebService());
        }
        public ascx_HostLocalWebsite()
        {
            InitializeComponent();
            ascx_DropObject1.Text = "Drop Folder here To Start WebServer (on that Folder)";           
            btStartWebService.Text = "Restart WebServer";
            webservices = new WebServices();
            
            //extra GUI tweeks
            
            tbUrlToLoad.width(btReloadUrl.left() - tbUrlToLoad.left() -10);
			tbUrlToLoad.anchor_TopLeftRight();
			
			btStartWebService.append_Control<Button>()
				 .set_Text("Stop ")
				 .width(40)
				 .height(btStartWebService.height())
				 .onClick(()=> webservices.StopWebService());
				 
			this.control<GroupBox>().align_Right();
			tbSettings_Path.widthAdd(-50); 
			tbSettings_Exe.widthAdd(-50); 	
			tbSettings_Path.append_Link("explore",()=>tbSettings_Path.get_Text().startProcess()).anchor_TopRight();
			tbSettings_Exe.append_Link("explore",()=>tbSettings_Exe.get_Text().parentFolder().startProcess()).anchor_TopRight();
        }
예제 #3
0
 public ascx_HostLocalWebsite()
 {
     InitializeComponent();
     ascx_DropObject1.Text = "Drop Folder To Run";
     webservices = new WebServices();
 }