/// <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(); }
public BackupRestore(CmdProcess adbFrm, FormMethods formMethodsFrm) { InitializeComponent(); _adb = adbFrm; _formMethods = formMethodsFrm; }
public InstallUninstall(CmdProcess adbFrm, FormMethods formMethodsFrm) { InitializeComponent(); adb = adbFrm; formMethods = formMethodsFrm; }
public Sideload(CmdProcess adbFrm, FormMethods formMethodsFrm) { InitializeComponent(); _adb = adbFrm; _formMethods = formMethodsFrm; }
/// <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(); }
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; }
private void AltAdb_CommandExecutionStarted() { BeginInvoke((MethodInvoker) delegate { if (FormMethods.AlwaysClearConsole()) { _lOut.rtb_console.Clear(); } }); }
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; }
/// <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(); }
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(); }
public SetProp(CmdProcess adbFrm, FormMethods fMethods) { adb = adbFrm; formMethods = fMethods; InitializeComponent(); }
public ScreenRecord(CmdProcess adbFrm, FormMethods formMethodsFrm) { InitializeComponent(); _adb = adbFrm; _formMethods = formMethodsFrm; }
public FileOps(CmdProcess adbFrm, FormMethods formMethodsFrm) { InitializeComponent(); adb = adbFrm; formMethods = formMethodsFrm; }
public Density(CmdProcess adbFrm, FormMethods formMethodsFrm) { InitializeComponent(); _adb = adbFrm; _formMethods = formMethodsFrm; }
private void MainForm_FormClosed(object sender, FormClosedEventArgs e) => FormMethods.KillServer();
/// <summary> /// /// </summary> /// <param name="adbFrm"></param> /// <param name="formMethodsFrm"></param> public ResolutionChange(CmdProcess adbFrm, FormMethods formMethodsFrm) { InitializeComponent(); _adb = adbFrm; _formMethods = formMethodsFrm; }
/// <summary> /// /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void Tsb_KillServer_Click(object sender, EventArgs e) { FormMethods.KillServer(); }
public SpoofMac(CmdProcess adbFrm, FormMethods formMethodsFrm) { InitializeComponent(); adb = adbFrm; formMethods = formMethodsFrm; }