private void insertCurrencyCompleted(object sender, InsertTLMENUCompletedEventArgs e) { try { if (!e.Result.Equals("")) { this.currentMenu.MENU_ID = int.Parse(e.Result); if (this.currentMenu.MENU_PARENT.Equals("")) { this.ParentData.Add(new TL_MENU() { MENU_PARENT = e.Result, MENU_NAME = this.currentMenu.MENU_NAME }); } this.messagePop.Successful(ValidatorResource.InsertSuccessful); Messenger.Default.Send(new ParentMessage() { isEdit = this.isEdit, currentObject = this.currentMenu }); } else { this.messagePop.SetSingleError(ValidatorResource.ErrorInsert); } } catch (Exception) { this.messagePop.SetSingleError(CommonResource.errorCannotConnectServer); } finally { MyHelper.IsFree(); } }
private void insertCurrencyCompleted(object sender, InsertTLMENUCompletedEventArgs e) { try { if (!e.Result.Equals("")) { this.currentMenu.MENU_ID = int.Parse(e.Result); if (this.currentMenu.MENU_PARENT.Equals("")) this.ParentData.Add(new TL_MENU() { MENU_PARENT = e.Result, MENU_NAME = this.currentMenu.MENU_NAME }); this.messagePop.Successful(ValidatorResource.InsertSuccessful); Messenger.Default.Send(new ParentMessage() { isEdit = this.isEdit, currentObject = this.currentMenu }); } else { this.messagePop.SetSingleError(ValidatorResource.ErrorInsert); } } catch (Exception) { this.messagePop.SetSingleError(CommonResource.errorCannotConnectServer); } finally { MyHelper.IsFree(); } }