private void UserControl_Loaded(object sender, RoutedEventArgs e) { util = new Util(); DatabaseConnection dbc = new DatabaseConnection(); c = dbc.getConnection(); cmd = c.CreateCommand(); updatePane(); }
public Search() { try { util = new Util(); DatabaseConnection dbc = new DatabaseConnection(); c = dbc.getConnection(); cmd = c.CreateCommand(); InitializeComponent(); } catch (Exception) { } }
public add_imdb() { try { util = new Util(); DatabaseConnection dbc = new DatabaseConnection(); c = dbc.getConnection(); cmd = c.CreateCommand(); m = new MovieDeatils(); InitializeComponent(); } catch (Exception) {} }
public add_search() { try { util = new Util(); DatabaseConnection dbc = new DatabaseConnection(); c = dbc.getConnection(); cmd = c.CreateCommand(); sj = new Rootobject(); imdbids = new List<string>(); InitializeComponent(); } catch (Exception) { } }