Ejemplo n.º 1
0
        private void ShowTitleScenario()
        {
            scenarios = new List<Scenario>();
            Scenario local = new Scenario()
            {
                Title = CMLibrary.Properties.Resources.local_contact_management,
                Content = PageContent.Local,
                ImagePath = "pack://application:,,,/CMLibrary;component/Images/ic_local.png"
            };
            scenarios.Add(local);
            Scenario printer = new Scenario()
            {
                Title = CMLibrary.Properties.Resources.printer_contact_management,
                Content = PageContent.Printer,
                ImagePath = "pack://application:,,,/CMLibrary;component/Images/ic_printers.png"
            };
            scenarios.Add(printer);
            Scenario setting = new Scenario()
            {
                Title = CMLibrary.Properties.Resources.settings,
                Content = PageContent.Setting,
                ImagePath = "pack://application:,,,/CMLibrary;component/Images/ic_gears.png"
            };
            scenarios.Add(setting);

            ScenarioControl.ItemsSource = scenarios;
        }
Ejemplo n.º 2
0
        public UC_AddressBook()
        {
            new DatabaseParameterController().LoadDatabaseParameters();
            InitializeComponent();

            UpdatePrinterList("");

            Thread thread = new Thread(CheckDatabase);
            thread.Start();

            scenarios = new List<Scenario>();

            Scenario local = new Scenario() { Title = CMLibrary.Properties.Resources.local_contact_management, Content = PageContent.Local };
            scenarios.Add(local);
            Scenario printer = new Scenario() { Title = CMLibrary.Properties.Resources.printer_contact_management, Content = PageContent.Printer };
            scenarios.Add(printer);
            Scenario setting = new Scenario() { Title = CMLibrary.Properties.Resources.settings, Content = PageContent.Setting };
            scenarios.Add(setting);

            ScenarioControl.ItemsSource = scenarios;
            ScenarioControl.SelectedIndex = 0;
            page_LocalContacts.UpdateUCAddressBook(this);
        }
Ejemplo n.º 3
0
        public UC_AddressBook()
        {
            new DatabaseParameterController().LoadDatabaseParameters();
            InitializeComponent();

            UpdatePrinterList(Settings.PrinterJson);

            Thread thread = new Thread(CheckDatabase);
            thread.Start();

            //while (checkDB == -1)
            //{
            //    Thread.Sleep(2000);
            //}

            scenarios = new List<Scenario>();
            Scenario local = new Scenario()
            {
                Title = CMLibrary.Properties.Resources.local_contact_management,
                Content = PageContent.Local,
                ImagePath = "pack://application:,,,/CMLibrary;component/Images/ic_local.png"
            };
            scenarios.Add(local);
            Scenario printer = new Scenario()
            {
                Title = CMLibrary.Properties.Resources.printer_contact_management,
                Content = PageContent.Printer,
                ImagePath = "pack://application:,,,/CMLibrary;component/Images/ic_printers.png"
            };
            scenarios.Add(printer);
            Scenario setting = new Scenario()
            {
                Title = CMLibrary.Properties.Resources.settings,
                Content = PageContent.Setting,
                ImagePath = "pack://application:,,,/CMLibrary;component/Images/ic_gears.png"
            };
            scenarios.Add(setting);




            ScenarioControl.ItemsSource = scenarios;
            ScenarioControl.SelectedIndex = 0;
            page_LocalContacts.UpdateUCAddressBook(this);
        }
Ejemplo n.º 4
0
        public UC_AddressBook()
        {
            new DatabaseParameterController().LoadDatabaseParameters();
            InitializeComponent();
            UpdatePrinterList(Settings.PrinterJson);
            CheckDatabase();
            //Thread thread = new Thread(CheckDatabase);
            //thread.Start();

            scenarios = new List<Scenario>();
            Scenario local = new Scenario()
            {
                TooltipStr = CMLibrary.Properties.Resources.tooltip_menu_left_all_contacts,
                Title = CMLibrary.Properties.Resources.local_contact_management,
                CountContacts = String.Format("({0})", dbController.GetContactCount("").ToString()),
                Content = PageContent.Local,
                ImagePath = "pack://application:,,,/CMLibrary;component/Images/ic_local.png"
            };
            scenarios.Add(local);
            Scenario printer = new Scenario()
            {
                TooltipStr = CMLibrary.Properties.Resources.tooltip_menu_left_printer,
                Title = CMLibrary.Properties.Resources.printer_contact_management,
                CountContacts = String.Format("({0})", ListDisplayContact.Count().ToString()),
                Content = PageContent.Printer,
                ImagePath = "pack://application:,,,/CMLibrary;component/Images/ic_printers.png"
            };
            scenarios.Add(printer);
            Scenario setting = new Scenario()
            {
                TooltipStr = CMLibrary.Properties.Resources.tooltip_menu_left_setting,
                Title = CMLibrary.Properties.Resources.settings,
                Content = PageContent.Setting,
                ImagePath = "pack://application:,,,/CMLibrary;component/Images/ic_gears.png"
            };
            scenarios.Add(setting);
            ScenarioControl.ItemsSource = scenarios;
            ScenarioControl.SelectedIndex = 0;
            //WindowResizerContact();
        }