public PropertiesManager(Form dashboard) { InitializeComponent(); this.DbService = new Service.InterfaceWCFClient(); this.Dashboard = dashboard as Dashboard; DisplayService_BindList(); }
public Dashboard() { InitializeComponent(); this.DbService = new Service.InterfaceWCFClient(); this.panel.Padding = new System.Windows.Forms.Padding(5); this.flow.Padding = new System.Windows.Forms.Padding(5); DisplayService_BindList(); DisplayService_BindPanel(); this.buttonFilter.Enabled = false; this.buttonFilter.BackColor = Color.Gainsboro; this.buttonVideo.Enabled = false; this.buttonVideo.BackColor = Color.Gainsboro; }
static void Main() { Application.EnableVisualStyles(); Application.SetCompatibleTextRenderingDefault(false); Application.Run(new Dashboard()); Service.InterfaceWCFClient client = new Service.InterfaceWCFClient(); /* * client.GetFiles();*/ /* * var remoteAddress = new System.ServiceModel.EndpointAddress("http://localhost:8080/PC"); * * using (var productService = new InterfaceWCFClient(new System.ServiceModel.BasicHttpBinding(), remoteAddress)) * { * //set timeout * productService.Endpoint.Binding.SendTimeout = new TimeSpan(0, 0, 0, 5); * * //call web service method * productService.GetFiles(); * } * * Console.ReadLine();*/ }