Esempio n. 1
0
        public App()
        {
            View_Main view = new View_Main();

            view.DataContext = new ViewModel_Main();
            view.Show();
        }
 internal Control_GameMode(View_Main main, AppBarToggleButton play, AppBarToggleButton pause, AppBarButton forward, TextBlock status, Control_Output _output)
 {
     m_main    = main;
     m_play    = play;
     m_pause   = pause;
     m_forward = forward;
     m_status  = status;
     m_output  = _output;
 }
        public Control_Settings(View_Main _main, MarkdownTextBlock _content)
        {
            m_main    = _main;
            m_content = _content;

            string path = Directory.GetCurrentDirectory() + "\\Assets\\Settings.txt";

            m_content.Text = File.ReadAllText(path);
        }
Esempio n. 4
0
        public Control_Hierarchy(View_Main _main, TreeView _tree)
        {
            m_tree       = _tree;
            m_collection = new TreeEntryCollection();

            m_engineObjectsList        = _main.m_Layout.m_ViewPort.m_renderer.m_scene.m_objectManager.m_list;
            m_engineObjectsList.OnAdd += (object sender, EventArgs e) => { Initialize(); };

            Initialize();
        }
Esempio n. 5
0
        public MainWindow()
        {
            InitializeComponent();
            _bagiShuServices      = new BagiShuServices();
            _dataKoperasiServices = new DataKoperasiServices();

            _dataShuView        = new View_Main();
            _iptAnggotaView     = new View_InptDataAnggota();
            _bagiShuView        = new View_BagiShu();
            _bagiShuAnggotaView = new View_BagiShuAnggota();
            _daftarAnggotaView  = new View_DaftarAnggota();
        }
 internal Control_Output(View_Main _main, StackPanel _stack, ScrollViewer _scroll, AppBarToggleButton _collapse, AppBarToggleButton _filterMessages, AppBarToggleButton _filterWarnings, AppBarToggleButton _filterErrors, AppBarToggleButton _pauseError, AppBarToggleButton _clearPlay)
 {
     m_main           = _main;
     m_status         = m_main.m_Status_Content;
     m_stack          = _stack;
     m_scroll         = _scroll;
     m_collapse       = _collapse;
     m_filterMessages = _filterMessages;
     m_filterWarnings = _filterWarnings;
     m_filterErrors   = _filterErrors;
     m_pauseError     = _pauseError;
     m_ClearPlay      = _clearPlay;
 }
        internal Control_TabViewPage(View_Main _main, params TabViewItemDataTemplate[] _icollection)
        {
            m_main = _main;

            m_TabView = new TabView()
            {
                TabWidthMode = TabViewWidthMode.Equal, CloseButtonOverlayMode = TabViewCloseButtonOverlayMode.Auto, IsAddTabButtonVisible = false
            };
            m_TabView.AddTabButtonClick += TabView_AddButtonClick;
            //m_TabView.TabCloseRequested += TabView_TabCloseRequested;


            foreach (var item in _icollection)
            {
                m_TabView.TabItems.Add(CreateNewTab(item));
            }
        }
Esempio n. 8
0
        public Control_Layout(View_Main _main, Grid _content, View_Port _port, View_Output _output, View_Hierarchy _hierarchy, View_Files _files, View_Properties _properties, View_Settings _settings)
        {
            m_main = _main;

            m_GridContent           = CreateLayoutNew(
                WrapGrid(m_ViewPort = _port),
                WrapInTabView(new TabViewItemDataTemplate()
            {
                Header = "Output", Content = m_ViewOutput = _output, Symbol = Symbol.Message
            },
                              new TabViewItemDataTemplate()
            {
                Header = "Files", Content = m_ViewFiles = _files, Symbol = Symbol.Document
            }),
                WrapGrid(m_ViewHierarchy  = _hierarchy),
                WrapGrid(m_ViewProperties = _properties));

            //m_GridContent = CreateLayout1(
            //    WrapInTabView(new TabViewItemDataTemplate() { Header = "Viewport", Content = m_ViewPort = _port, Symbol = Symbol.View },
            //         new TabViewItemDataTemplate() { Header = "Settings", Content = m_ViewSettings = _settings, Symbol = Symbol.Setting }),
            //    WrapInTabView(new TabViewItemDataTemplate() { Header = "Output", Content = m_ViewOutput = _output, Symbol = Symbol.Message }),
            //    WrapInTabView(new TabViewItemDataTemplate() { Header = "Scene", Content = m_ViewHierarchy = _hierarchy, Symbol = Symbol.List }),
            //    WrapInTabView(new TabViewItemDataTemplate() { Header = "Files", Content = m_ViewFiles = _files, Symbol = Symbol.Document }),
            //    WrapInTabView(new TabViewItemDataTemplate() { Header = "Properties", Content = m_ViewProperties = _properties, Symbol = Symbol.Edit }));

            //m_GridContent = CreateLayout2(
            //    WrapInTabView(new TabViewItemDataTemplate() { Header = "Scene", Content = m_ViewHierarchy = _hierarchy, Symbol = Symbol.List }),
            //    WrapInTabView(new TabViewItemDataTemplate() { Header = "Viewport", Content = m_ViewPort = _port, Symbol = Symbol.View },
            //         new TabViewItemDataTemplate() { Header = "Settings", Content = m_ViewSettings = _settings, Symbol = Symbol.Setting }),
            //    WrapInTabView(new TabViewItemDataTemplate() { Header = "Output", Content = m_ViewOutput = _output, Symbol = Symbol.Message },
            //         new TabViewItemDataTemplate() { Header = "Files", Content = m_ViewFiles = _files, Symbol = Symbol.Document }),
            //    WrapInTabView(new TabViewItemDataTemplate() { Header = "Properties", Content = m_ViewProperties = _properties, Symbol = Symbol.Edit }));


            _content.Children.Add(m_GridContent);
        }
Esempio n. 9
0
 private void DataShu_Click(object sender, RoutedEventArgs e)
 {
     _dataShuView = new View_Main();
     MainView.Children.Clear();
     MainView.Children.Add(_dataShuView);
 }