Exemple #1
0
        private void DebugToolstripItem_Click(object sender, RoutedEventArgs e)
        {
            if (settings.AdvancedMode)
            {
                var parent = Application.Current.MainWindow;
                if (parent != null)
                {
                    var debugWnd = new DebugDialog(cpu, modules, MEMCFG, BMC, AsusWmi)
                    {
                        Owner = parent, Width = parent.Width, Height = parent.Height
                    };
                    debugWnd.ShowDialog();
                }
            }
            else
            {
                var messageBox = new MessageBoxModel
                {
                    Text = "Debug functionality requires Advanced Mode.\n\n" +
                           "Do you want to enable it now (the application will restart automatically)?",
                    Caption = "Debug Report",
                    Buttons = MessageBoxButtons.YesNoCancel()
                };

                MessageBox.Show(messageBox);

                if (messageBox.Result == MessageBoxResult.Yes)
                {
                    settings.AdvancedMode = true;
                    Restart();
                }
            }
        }
Exemple #2
0
        private void DebugToolstripItem_Click(object sender, RoutedEventArgs e)
        {
            if (settings.AdvancedMode)
            {
                var         parent   = Application.Current.MainWindow;
                DebugDialog debugWnd = new DebugDialog(cpu, modules, MEMCFG, BMC, AsusWmi)
                {
                    Owner = parent
                };
                debugWnd.Width  = parent.Width;
                debugWnd.Height = parent.Height;
                debugWnd.ShowDialog();
            }
            else
            {
                MessageBoxResult result = MessageBox.Show(
                    "Debug functionality requires Advanced Mode.\n\n" +
                    "Do you want to enable it now (the application will restart automatically)?",
                    "Debug Report",
                    MessageBoxButton.YesNoCancel
                    );

                if (result == MessageBoxResult.Yes)
                {
                    settings.AdvancedMode = true;
                    Restart();
                }
            }
        }
Exemple #3
0
        private void DebugToolstripItem_Click(object sender, EventArgs e)
        {
            if (settings.AdvancedMode)
            {
                Form debugWnd = new DebugDialog(dramBaseAddress, modules, MEMCFG, SI, BMC, PowerTable, OPS);
                debugWnd.ShowDialog();
            }
            else
            {
                DialogResult result = MessageBox.Show(
                    "Debug functionality requires Advanced Mode.\n\n" +
                    "Do you want to enable it now (the application will restart automatically)?",
                    "Debug Report",
                    MessageBoxButtons.YesNoCancel);

                if (result == DialogResult.Yes)
                {
                    settings.AdvancedMode = true;
                    Restart();
                }
            }
        }
Exemple #4
0
        private void DebugToolstripItem_Click(object sender, EventArgs e)
        {
            Form debugWnd = new DebugDialog(dramBaseAddress, modules, MEMCFG, SI, BMC, PowerTable, OPS);

            debugWnd.ShowDialog();
        }