private void ViewerCarousel_OnImageSelected(object sender, EventArgs e)
        {
            Carousel carousel = sender as Carousel;
            string   i        = carousel.ActiveImage.Tag.ToString();
            Function s        = (Function)Enum.Parse(typeof(Function), i);

            switch (s)
            {
            case Function.SQLiteData:
                DatabaseSelector sd = new DatabaseSelector(Info.DatabaseImages);
                sd.Show();
                Close();
                break;

            case Function.BudgetTools:
                BudgetTools bt = new BudgetTools();
                bt.Show();
                break;

            case Function.DataTools:
                BudgetTools dt = new BudgetTools();
                dt.Show();
                break;

            case Function.ExcelImporter:
                ExcelData ei = new ExcelData();
                ei.Show();
                break;

            case Function.PdfDataReader:
                PdfDataReader pdfdr = new PdfDataReader();
                pdfdr.Show();
                break;
            }

            Close();
        }
Exemplo n.º 2
0
        /// <summary>
        /// The ExcelButton_OnClick
        /// </summary>
        /// <param name="sender">The sender<see cref="object"/></param>
        /// <param name="e">The e<see cref="EventArgs"/></param>
        private void ExcelButton_OnClick(object sender, EventArgs e)
        {
            ExcelData ef = new ExcelData();

            ef.Show();
        }