private void NewCode(Guid groupGuid) { try { txtCode.Text = AccountBussines.NewCode(groupGuid); } catch (Exception exception) { txtCode.Text = "0001"; } }
private void NewCode() { try { var groupGuid = AccountGroupBussines.Get((int)HesabType.Bank).Guid; txtCode.Text = AccountBussines.NewCode(groupGuid); } catch (Exception exception) { txtCode.Text = "0001"; } }
private void NewCode() { try { Guid guid; if (cmbType.SelectedIndex == 0) { guid = AccountGroupBussines.Get((int)HesabType.A_Haqiqi).Guid; lblCode.Text = AccountGroupBussines.Get((int)HesabType.A_Haqiqi).Aouth_Code; } else { guid = AccountGroupBussines.Get((int)HesabType.A_Hoqouqi).Guid; lblCode.Text = AccountGroupBussines.Get((int)HesabType.A_Hoqouqi).Aouth_Code; } txtCode.Text = AccountBussines.NewCode(guid); } catch (Exception exception) { txtCode.Text = "0001"; } }