public FormProductList(string serverAddress)
        {
            InitializeComponent();
            this.serverAddress = serverAddress;

            webCalls = new WebCalls();
        }
Esempio n. 2
0
 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();
 }
Esempio n. 3
0
 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();
        }
Esempio n. 5
0
 /// <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;
 }