Exemplo n.º 1
0
        public void CreatePresenterWithNonGenericView()
        {
            //  Arrange
            DefaultPresenterFactory defaultPresenterFactory = new DefaultPresenterFactory();
            LaunchView view = new LaunchView();
            //LaunchPresenter createProjectPresenter = new LaunchPresenter(view);

            //  Act
            var actualPresenter = defaultPresenterFactory.Create(typeof(LaunchPresenter), typeof(LaunchView), view);

            //  Assert
            Assert.IsInstanceOfType(actualPresenter, typeof(LaunchPresenter));
        }
Exemplo n.º 2
0
        void Awake()
        {
            //InitBuglySDK();

            Screen.sleepTimeout = SleepTimeout.NeverSleep;
            mMain = new GameObject("Main");
            GameObject.DontDestroyOnLoad(mMain);
            mMain.AddComponent <OutputLog>();

            GameObject.DontDestroyOnLoad(gameObject);
            mLaunchView = new LaunchView(gameObject);

            EventDispatcher.Instance.AddEventListener(EventConstant.RETRY_CHECK_VERSION, CheckVersion);
        }
Exemplo n.º 3
0
        public MainForm()
        {
            InitializeComponent();

            outputView = new OutputView(this);

            registersView = new RegisterView(this);

            displayView = new DisplayView(this);
            controlView = new ControlView(this);
            traceView   = new TraceView(this);

            callStackView  = new CallStackView(this);
            stackFrameView = new StackFrameView(this);

            statusView           = new StatusView(this);
            symbolView           = new SymbolView(this);
            watchView            = new WatchView(this);
            breakPointView       = new BreakpointView(this);
            instructionView      = new InstructionView(this);
            methodView           = new MethodView(this);
            methodParametersView = new MethodParametersView(this);

            //scriptView = new ScriptView(this);

            sourceView = new SourceView(this);

            sourceDataView = new SourceDataView(this);              // only useful when debugging this tool

            launchView = new LaunchView(this);

            Settings = AppLocationsSettings.GetAppLocations();

            Settings.SetValue("Emulator.GDB", true);
            Settings.SetValue("Emulator.Serial", "TCPServer");
            Settings.SetValue("Emulator.Serial.Port", 1250);
            Settings.SetValue("Emulator.Display", false);

            GDBPort = 1234;

            AppDomain.CurrentDomain.DomainUnload       += (s, e) => { KillVMProcess(); };
            AppDomain.CurrentDomain.ProcessExit        += (s, e) => { KillVMProcess(); };
            AppDomain.CurrentDomain.UnhandledException += (s, e) => { KillVMProcess(); };
        }
Exemplo n.º 4
0
        public static void CheckUpdatesAtRuntime()
        {
            var model      = new Updater();
            var view       = new LaunchView();
            var controller = new LauncherController(view, model);

            if (!controller.CheckForUpdates())
            {
                MessageBox.Show(Resources.NoUpdatesFound, Resources.NoUpdatesFoundTitle, MessageBoxButtons.OK, MessageBoxIcon.Information);
                return;
            }

            if (MessageBox.Show(Resources.UpdateAvailableInform, Resources.UpdateAvailableTitle, MessageBoxButtons.YesNo, MessageBoxIcon.Information) == DialogResult.No)
            {
                return;
            }

            view.Show();
        }
Exemplo n.º 5
0
        public static void RunAutoUpdate()
        {
            var model      = new Updater();
            var view       = new LaunchView();
            var controller = new LauncherController(view, model);

            if (!controller.StartAutoUpdate())
            {
                return;
            }

            if (Settings.Default.UpdatePreference == 1)
            {
                if (MessageBox.Show(Resources.UpdateAvailableInform, Resources.UpdateAvailableTitle, MessageBoxButtons.YesNo, MessageBoxIcon.Information) == DialogResult.No)
                {
                    return;
                }
            }

            view.ShowDialog();
        }
        void ReleaseDesignerOutlets()
        {
            if (addNewItemBtn != null)
            {
                addNewItemBtn.Dispose();
                addNewItemBtn = null;
            }

            if (ChooseLabel != null)
            {
                ChooseLabel.Dispose();
                ChooseLabel = null;
            }

            if (closeBoxBtn != null)
            {
                closeBoxBtn.Dispose();
                closeBoxBtn = null;
            }

            if (GMUButton != null)
            {
                GMUButton.Dispose();
                GMUButton = null;
            }

            if (GoBackButton != null)
            {
                GoBackButton.Dispose();
                GoBackButton = null;
            }

            if (GroupLabel != null)
            {
                GroupLabel.Dispose();
                GroupLabel = null;
            }

            if (GroupPicker != null)
            {
                GroupPicker.Dispose();
                GroupPicker = null;
            }

            if (LaunchView != null)
            {
                LaunchView.Dispose();
                LaunchView = null;
            }

            if (PasswordField != null)
            {
                PasswordField.Dispose();
                PasswordField = null;
            }

            if (PasswordLabel != null)
            {
                PasswordLabel.Dispose();
                PasswordLabel = null;
            }

            if (SchoolLabel != null)
            {
                SchoolLabel.Dispose();
                SchoolLabel = null;
            }

            if (searchBtn != null)
            {
                searchBtn.Dispose();
                searchBtn = null;
            }

            if (SelectGroupLabel != null)
            {
                SelectGroupLabel.Dispose();
                SelectGroupLabel = null;
            }

            if (SubmitButton != null)
            {
                SubmitButton.Dispose();
                SubmitButton = null;
            }

            if (VCUButton != null)
            {
                VCUButton.Dispose();
                VCUButton = null;
            }
        }