public FormProductList(string serverAddress) { InitializeComponent(); this.serverAddress = serverAddress; webCalls = new WebCalls(); }
public Update(string serverAddress, string productName, int productID) { this.serverAddress = serverAddress; applicationPath = Common.SetSlashOnEndOfDirectory(System.Windows.Forms.Application.StartupPath); product = new Product(productName, "", productID); webCalls = WebCalls.Create(); }
public Update(string serverAddress, Product product) { this.serverAddress = serverAddress; this.product = product; applicationPath = Common.SetSlashOnEndOfDirectory(System.Windows.Forms.Application.StartupPath); webCalls = WebCalls.Create(); }
public FormProductList(string serverAddress, bool isExternal) { InitializeComponent(); this.isExternal = isExternal; this.serverAddress = serverAddress; webCalls = new WebCalls(); }
/// <summary> /// Make new instance if not exists or return old one /// </summary> /// <returns></returns> public static WebCalls Create() { if (WebCalls.webCalls == null) { WebCalls.webCalls = new WebCalls(); } return WebCalls.webCalls; }