Exemple #1
0
        private void Yes_Clicked(object sender, EventArgs e)
        {
            CompanyWindow.Database DBDeleteStockInFavorites = new CompanyWindow.Database();

            DBDeleteStockInFavorites.ConnectToDB();
            DBDeleteStockInFavorites.DeleteDatabase(MainWindow.StockInformation.CompanySymbol);
            MessageBox.Show("Succeed!");
        }
        private void Yes_Clicked(object sender, EventArgs e)
        {
            CompanyWindow.Database DBDeleteStockInFavorites = new CompanyWindow.Database();

            DBDeleteStockInFavorites.ConnectToDB();
            DBDeleteStockInFavorites.DeleteDatabase(MainWindow.StockInformation.CompanySymbol);
            MessageBox.Show("Succeed!");
        }
Exemple #3
0
        private void Yes_Clicked(object sender, EventArgs e)
        {
            CompanyWindow.DetailQuery AddStockToFavorite    = new CompanyWindow.DetailQuery();
            CompanyWindow.Database    DBAddStockToFavorites = new CompanyWindow.Database();
            AddStockToFavorite.GetDetail(MainWindow.StockInformation.CompanySymbol);

            DBAddStockToFavorites.ConnectToDB();
            DBAddStockToFavorites.AddToDatabase(MainWindow.StockInformation.CompanySymbol,
                                                MainWindow.StockInformation.CompanyFullName,
                                                Convert.ToDecimal(MainWindow.StockInformation.StockPrice));



            MessageBox.Show("Succeed!");
        }
        private void Yes_Clicked(object sender, EventArgs e)
        {
            CompanyWindow.DetailQuery AddStockToFavorite = new CompanyWindow.DetailQuery();
            CompanyWindow.Database DBAddStockToFavorites = new CompanyWindow.Database();
            AddStockToFavorite.GetDetail(MainWindow.StockInformation.CompanySymbol);
            
            DBAddStockToFavorites.ConnectToDB();
            DBAddStockToFavorites.AddToDatabase(MainWindow.StockInformation.CompanySymbol,
                                              MainWindow.StockInformation.CompanyFullName,
                                              Convert.ToDecimal(MainWindow.StockInformation.StockPrice));



            MessageBox.Show("Succeed!");
        }