Ejemplo n.º 1
0
        private void FuncMenus_MenuSelectChangedEvent(object sender, Controls.MenuSelectedEventArgs e)
        {
            MainWindow window = App.Current.MainWindow as MainWindow;

            switch (e.SelectedIndex)
            {
            case 0: window.StartPage(new TaskInfoList());
                break;

            case 1: window.StartPage(new DataScriptList());
                break;

            case 2: window.StartPage(new ProjectList());
                break;

            case 3: window.StartPage(new TaskProgressList());
                break;

            case 4:
                window.StartPage(new MdbAdapter.MdbAdapterPage());
                break;

            case 5:
                window.StartPage(new BetchImport());
                break;
            }
        }
Ejemplo n.º 2
0
        private void MenuSelectChanged()
        {
            MenuSelectedEventArgs args = new MenuSelectedEventArgs()
            {
                SelectedIndex = this.selectedIndex
            };

            if (this.MenuSelectChangedEvent != null)
            {
                MenuSelectChangedEvent(this, args);
            }
        }