Exemplo n.º 1
0
 private frmNewDrzava(DrzavaDto drzava = null)
 {
     Drzava = drzava;
     InitializeComponent();
     Text        = Drzava != null ? Properties.Resources.frmNewDrzavaUpdate : Properties.Resources.frmNewDrzavaAdd;
     _apiService = new APIService(Routes.DrzaveRoute);
 }
Exemplo n.º 2
0
 public static frmNewDrzava InstanceWithData(DrzavaDto drzava)
 {
     if (_instance == null || _instance.IsDisposed)
     {
         _instance = new frmNewDrzava(drzava);
     }
     else
     {
         _instance.Drzava = drzava;
     }
     return(_instance);
 }