Ejemplo n.º 1
0
        /// <summary>
        ///
        /// </summary>
        public MainForm()
        {
            InitializeComponent();

            // pass formMethods the created Form this
            _formMethods = new FormMethods(this);

            _cmdProcess.GetProcess.Start();

            // Begin and cancel so the RichTextBox will stay clean. Otherwise it will start in line 2.
            _cmdProcess.GetProcess.BeginOutputReadLine();
            _cmdProcess.GetProcess.CancelOutputRead();

            _cmdProcess.GetProcess.OutputDataReceived += AppendReceivedData;
            _cmdProcess.GetProcess.ErrorDataReceived  += AppendReceivedData;

            Thread.Sleep(20);

            _cmdProcess.GetProcess.BeginOutputReadLine();
            _cmdProcess.GetProcess.BeginErrorReadLine();
            rtb_console.Clear();

            _cmdProcess.CommandExecutionStarted += CommandExecutionStarted;
            _cmdProcess.ClearConsole            += () => { rtb_console.Clear(); };

            // Select custom command control
            cbx_customCommand.Select();

            // Start the watcher which fires if adb devices changed
            AdbDeviceWatcher.DeviceChanged += DwAdb_DeviceChanged;
            AdbDeviceWatcher.StartDeviceWatcher();
        }
Ejemplo n.º 2
0
        public BackupRestore(CmdProcess adbFrm, FormMethods formMethodsFrm)
        {
            InitializeComponent();

            _adb         = adbFrm;
            _formMethods = formMethodsFrm;
        }
Ejemplo n.º 3
0
        public InstallUninstall(CmdProcess adbFrm, FormMethods formMethodsFrm)
        {
            InitializeComponent();

            adb         = adbFrm;
            formMethods = formMethodsFrm;
        }
Ejemplo n.º 4
0
        public Sideload(CmdProcess adbFrm, FormMethods formMethodsFrm)
        {
            InitializeComponent();

            _adb         = adbFrm;
            _formMethods = formMethodsFrm;
        }
Ejemplo n.º 5
0
        /// <summary>
        /// Allows the game to perform any initialization it needs to before starting to run.
        /// This is where it can query for any required services and load any non-graphic
        /// related content.  Calling base.Initialize will enumerate through any components
        /// and initialize them as well.
        /// </summary>
        protected override void Initialize()
        {
            FlatRedBallServices.InitializeFlatRedBall(this, graphics);

            InitializeIoc();

            this.TargetElapsedTime = TimeSpan.FromSeconds(1 / 30.0);

            mToolForm       = new ToolForm();
            mToolForm.Owner = (Form)(Form.FromHandle(FlatRedBallServices.WindowHandle));
            mToolForm.ItemCollapsedOrExpanded += HandleToolFormItemCollapsedOrExpanded;
            Plugin.PluginManager.Initialize();

            IsMouseVisible = true;

            IsFixedTimeStep = false;

            GuiData.Initialize();

            RegisterAdditionalAssemblies();

            AvailableAssetTypes.Self.Initialize(FileManager.RelativeDirectory);

            #region Set up resizing

            mFormMethods = new FormMethods(0, 0, 0, 0);

            #endregion

            SpriteManager.Camera.BackgroundColor = Color.Gray;
            FlatRedBall.Math.Geometry.Polygon.TolerateEmptyPolygons = true;
            ExposedVariableManager.Initialize();

            try
            {
                RemotingServer.SetupPort(8686);
                RemotingServer.SetupInterface <FlatRedBall.Glue.SelectionInterface>();
                RemotingServer.SetupInterface <RegisterInterface>();
            }
            catch (Exception e)
            {
                System.Windows.Forms.MessageBox.Show("GlueView could not start, please make sure GlueView is not already running on your computer \n \n Exception: \n" + e.ToString());
                FlatRedBall.FlatRedBallServices.Game.Exit();
            }

            mToolForm.Show();

            GluxManager.ContentManagerName = "GlueView";


            EditorLogic.Initialize();

            CommandLineManager.Self.ProcessCommandLineArgs(this.mToolForm);

            mainForm         = Form.FromHandle(FlatRedBallServices.WindowHandle) as Form;
            mainForm.Resize += HandleResize;
            base.Initialize();
        }
Ejemplo n.º 6
0
        public InstallUninstall(CmdProcess adbFrm, FormMethods formMethodsFrm)
        {
            InitializeComponent();
            this.btn_InstallUninstallInstall.DragEnter += new DragEventHandler(Btn_InstallUninstallInstall_DragEnter);
            this.btn_InstallUninstallInstall.DragDrop  += new DragEventHandler(Btn_InstallUninstallInstall_DragDrop);

            adb         = adbFrm;
            formMethods = formMethodsFrm;
        }
Ejemplo n.º 7
0
 private void AltAdb_CommandExecutionStarted()
 {
     BeginInvoke((MethodInvoker) delegate
     {
         if (FormMethods.AlwaysClearConsole())
         {
             _lOut.rtb_console.Clear();
         }
     });
 }
Ejemplo n.º 8
0
        public LogcatAdvanced(CmdProcess adbFrm, FormMethods formMethodsFrm)
        {
            InitializeComponent();

            _adb         = adbFrm;
            _formMethods = formMethodsFrm;

            _altAdb.GetProcess.Start();
            _altAdb.GetProcess.BeginOutputReadLine();
            _altAdb.GetProcess.BeginErrorReadLine();

            _altAdb.GetProcess.OutputDataReceived += GetProcess_OutputDataReceived;
            _altAdb.GetProcess.ErrorDataReceived  += GetProcess_OutputDataReceived;

            _altAdb.CommandExecutionStarted += AltAdb_CommandExecutionStarted;
        }
Ejemplo n.º 9
0
        /// <summary>
        /// Allows the game to perform any initialization it needs to before starting to run.
        /// This is where it can query for any required services and load any non-graphic
        /// related content.  Calling base.Initialize will enumerate through any components
        /// and initialize them as well.
        /// </summary>
        protected override void Initialize()
        {
            FlatRedBallServices.InitializeFlatRedBall(this, this.graphics);
            FlatRedBall.Graphics.Renderer.UseRenderTargets = true;
            SpriteManager.Camera.FarClipPlane = 20000;

            // Since the application will be using the FlatRedBall GUI the
            // mouse needs to be visible and the GUI needs to be enabled.
            IsMouseVisible         = true;
            GuiManager.IsUIEnabled = true;

            this.Window.AllowUserResizing = true;

            mFormMethods = new FormMethods();

            FlatRedBallServices.GraphicsOptions.BackgroundColor = Color.Gray;

            base.Initialize();
        }
Ejemplo n.º 10
0
        protected override void Initialize()
        {
            Renderer.UseRenderTargets = false;
            FlatRedBallServices.InitializeFlatRedBall(this, graphics);

            LightManager.AddAmbientLight(Color.White);


            IsMouseVisible         = true;
            GuiManager.IsUIEnabled = true;

            FormMethods methods = new FormMethods();

            SpriteManager.Camera.CameraModelCullMode = FlatRedBall.Graphics.CameraModelCullMode.None;

            methods.AllowFileDrop(EditorData.HandleDragDrop);

            EditorData.Initialize();
            GuiData.Initialize();

            ProcessCommandLineArguments();

            base.Initialize();
        }
Ejemplo n.º 11
0
 public SetProp(CmdProcess adbFrm, FormMethods fMethods)
 {
     adb         = adbFrm;
     formMethods = fMethods;
     InitializeComponent();
 }
Ejemplo n.º 12
0
 public ScreenRecord(CmdProcess adbFrm, FormMethods formMethodsFrm)
 {
     InitializeComponent();
     _adb         = adbFrm;
     _formMethods = formMethodsFrm;
 }
Ejemplo n.º 13
0
 public FileOps(CmdProcess adbFrm, FormMethods formMethodsFrm)
 {
     InitializeComponent();
     adb         = adbFrm;
     formMethods = formMethodsFrm;
 }
Ejemplo n.º 14
0
 public Density(CmdProcess adbFrm, FormMethods formMethodsFrm)
 {
     InitializeComponent();
     _adb         = adbFrm;
     _formMethods = formMethodsFrm;
 }
Ejemplo n.º 15
0
 private void MainForm_FormClosed(object sender, FormClosedEventArgs e) => FormMethods.KillServer();
Ejemplo n.º 16
0
 /// <summary>
 ///
 /// </summary>
 /// <param name="adbFrm"></param>
 /// <param name="formMethodsFrm"></param>
 public ResolutionChange(CmdProcess adbFrm, FormMethods formMethodsFrm)
 {
     InitializeComponent();
     _adb         = adbFrm;
     _formMethods = formMethodsFrm;
 }
Ejemplo n.º 17
0
 /// <summary>
 ///
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 private void Tsb_KillServer_Click(object sender, EventArgs e)
 {
     FormMethods.KillServer();
 }
Ejemplo n.º 18
0
 public SpoofMac(CmdProcess adbFrm, FormMethods formMethodsFrm)
 {
     InitializeComponent();
     adb         = adbFrm;
     formMethods = formMethodsFrm;
 }