public OrderRowFunc() { if (Config.IsThordUser) { garpref = new GarpReferrals(); thordfunc = new ThordFunctions(); } try { mOR = new OrderRowCOM(); } catch { } try { InstanceContext context = new InstanceContext(this); mProdClient = new ProductionService.OrderServiceClient(context); } catch(Exception e) { Logger.loggError(e, "Error creating OrderServiceClient", "", "OrderRowFunc()"); } }
private void ThordMainForm_Load(object sender, EventArgs e) { //string sVersion = System.Diagnostics.FileVersionInfo.GetVersionInfo(System.Reflection.Assembly.GetExecutingAssembly().Location).FileVersion; //this.Text = "Garp Remiss " +sVersion; try { if (Application.ProductVersion.Substring(4, 1).Equals("0")) this.Text = Application.ProductName + " - " + Application.ProductVersion.Substring(0, 3); else this.Text = Application.ProductName + " - " + Application.ProductVersion.Substring(0, 5); labUser.Text = Config.ThordUserId; labPassword.Text = Config.ThordPassword; } catch { this.Text = Application.ProductName; } try { oCust = new Ortoped.GarpFunctions.CustomerFunc(); tf = new ThordFunctions(); gf = new GarpReferrals(); } catch (Exception ex) { Log4Net.Logger.loggError(ex, "Error when collection refferals from Thord", Config.User, "frmDiagThord.ThordMainForm_Load"); } }