void Page_Loaded(object sender, RoutedEventArgs e) { MainGraphics = new Canvas(); LayoutRoot.Children.Add(MainGraphics); BuildApplicationBar(); Syscalls.progressDialog = new ProgressDialog(this); isLandscapeScreen = 0; //todomt getVisibleWidth()> getVisibleHeight() ? 1 : 0; CopySounds(); app = new FreemapApp(); try { app.Main(null); } catch (Exception ex) { MessageBox.Show("error in init " + ex); } }
void Page_Loaded(object sender, RoutedEventArgs e) { // Set the real appbar size _appBarSize = (int)ApplicationBar.DefaultSize; if (m_mainGraphics == null) { m_mainGraphics = new Canvas(); // no need for canvas in XNA // LayoutRoot.Children.Add(m_mainGraphics); CopySounds(); app = new FreemapApp(); try { app.Main(null); } catch (Exception ex) { MessageBox.Show("error in init " + ex); } } }
void Page_Loaded(object sender, RoutedEventArgs e) { if (m_mainGraphics == null) { m_mainGraphics = new Canvas(); LayoutRoot.Children.Add(m_mainGraphics); BuildApplicationBar(); CopySounds(); app = new FreemapApp(); try { app.Main(null); } catch (Exception ex) { MessageBox.Show("error in init " + ex); } } }