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