예제 #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();
        }