public static void EkranGuncelle(string FormAdi) // Kullanıcı hangi formadını girerse o formu güncelleyecek. { try { IGuncelleyebilme f = (IGuncelleyebilme)Application.OpenForms[FormAdi]; if (f != null & f is IGuncelleyebilme) { f.Guncelleme(); // form boş değilse ekranı güncelle boşsa zaten boş kalsın. } } catch { } }
public static void EkranGuncelle(string FormAdi) { try { IGuncelleyebilme f = (IGuncelleyebilme)Application.OpenForms[FormAdi]; if (f != null & f is IGuncelleyebilme) { f.Guncelleme(); } } catch { } }