void report_MouseDown(object sender, MouseButtonEventArgs e)
 {
         ReportBug rep = new ReportBug(Dimensions.GetWidth() * 0.5, Dimensions.GetHeight() * 0.8, "Report a bug");
         rep.Show();
 }
Exemplo n.º 2
0
 void _bugItem_MouseDown(object sender, System.Windows.Input.MouseButtonEventArgs e)
 {
         ReportBug bug = new ReportBug(Dimensions.GetWidth() * 0.6, Dimensions.GetHeight() * 0.8, "Report a bug");
 }
Exemplo n.º 3
0
                }//SetDimensions()


                #region Key_Handling

                void Home_KeyDown(object sender, KeyEventArgs e)
                {
                        if (e.Key == Key.N)
                        {
                                if (Keyboard.IsKeyDown(Key.LeftCtrl) || Keyboard.IsKeyDown(Key.RightCtrl))
                                        _mainPanel = _ninja.GetNewProjectPanel();
                        }

                        if (e.Key == Key.O)
                        {
                                if (Keyboard.IsKeyDown(Key.LeftCtrl) || Keyboard.IsKeyDown(Key.RightCtrl))
                                        _mainPanel = _ninja.GetOpenProjectPanel();
                        }


                        if (e.Key == Key.S)
                        {
                                if (Keyboard.IsKeyDown(Key.LeftCtrl) || Keyboard.IsKeyDown(Key.RightCtrl))
                                        new Captain().ToSettings("home");
                        }



                        if (e.Key == Key.B)
                        {
                                if (Keyboard.IsKeyDown(Key.LeftCtrl) || Keyboard.IsKeyDown(Key.RightCtrl))
                                {
                                        ReportBug rep = new ReportBug(Dimensions.GetWidth() * 0.5, Dimensions.GetHeight() * 0.8, "Report a bug");
                                }
                        }

                }