Пример #1
0
        public void ViewerCarousel_OnImageSelected(object sender, EventArgs e)
        {
            Carousel carousel = sender as Carousel;

            if (carousel?.ActiveImage.Tag != null)
            {
                string i = carousel.ActiveImage.Tag.ToString();
                switch (i)
                {
                case "SummaryImages":
                    Selector f = new Selector(Info.SummaryImages);
                    f.Show();
                    Close();
                    return;

                case "DatabaseImages":
                case "SQLiteData":
                    DatabaseSelector ds = new DatabaseSelector(Info.DatabaseImages);
                    ds.Show();
                    Close();
                    return;

                case "Division":
                    Selector d = new Selector(Info.DivisionImages);
                    d.Show();
                    Close();
                    return;

                case "FunctionImages":
                    Selector fi = new Selector(Info.FunctionImages);
                    fi.Show();
                    Close();
                    return;

                case "Appropriation":
                    Selector aps = new Selector(Info.AppropriationImages);
                    aps.Show();
                    Close();
                    return;

                case "ObjectClass":
                    Selector obs = new Selector(Info.ObjectClass);
                    obs.Show();
                    Close();
                    return;
                }

                Source      source = (Source)Enum.Parse(typeof(Source), i);
                SummaryForm sf     = new SummaryForm(source, Provider.SQLite);
                sf.Show();
                Close();
            }
        }
Пример #2
0
 // METHODS
 private void AppropriationCarousel_OnImageSelected(object sender, EventArgs e)
 {
     try
     {
         Carousel    carousel = sender as Carousel;
         string      i        = carousel.ActiveImage.Tag.ToString();
         Source      s        = (Source)Enum.Parse(typeof(Source), i);
         SummaryForm sf       = new SummaryForm(s, Provider.SQLite);
         sf.Show();
         Close();
     }
     catch (Exception ex)
     {
         new Error(ex).ShowDialog();
     }
 }
Пример #3
0
        private void RegionSummaryButton_OnClick(object sender, EventArgs e)
        {
            SummaryForm datamgr = new SummaryForm(Source.RegionalAccounts, Provider.SQLite);

            datamgr.Show();
        }
Пример #4
0
        private void TransferButton_OnClick(object sender, EventArgs e)
        {
            SummaryForm dm = new SummaryForm(Source.MM, Provider.SQLite);

            dm.Show();
        }
Пример #5
0
        private void DivisionSummaryButton_OnClick(object sender, EventArgs e)
        {
            SummaryForm summary = new SummaryForm(Source.DivisionAccounts, Provider.SQLite);

            summary.Show();
        }