/// <summary> /// Construct data from used components with IBootloader /// </summary> /// <param name="bootloader"></param> public Inspector(IBootloader bootloader) { this.bootloader = bootloader; foreach(IComponent c in bootloader.Registered) { #if DEBUG Log.Trace("Inspector: extracting from '{0}'", c.GetType().Name); #endif extract(c, data); } if(data.Count < 1) { return; } // Aliases to components foreach(var root in data[new NodeIdent()]) { if(root.Aliases == null) { continue; } foreach(string alias in root.Aliases) { data[new NodeIdent(alias, root.Link.method, root.Link.className)] = data[root.Link]; //shallow copies } } }
/// <param name="bootloader"></param> /// <param name="pin"></param> public VersionFrm(IBootloader bootloader, ITransfer pin) { manager = new Manager(bootloader.Env); _pin = pin; InitializeComponent(); Icon = Resource.Package_32; editorStepGen._.WordWrap = false; editorStepGen._.IsReadOnly = true; editorStepGen._.FontSize = 9.25f; editorStepGen.setBackgroundFromString("#F4F4F4"); editorFinalScript.colorize(TextEditor.ColorSchema.SBEScripts); editorFinalScript.codeCompletionInit(new Inspector(bootloader), new MSBuild.Parser(bootloader.Env, bootloader.UVariable)); editorFinalScript.CodeCompletionEnabled = true; editorFinalScript._.WordWrap = false; tabControlMain.Top = -22; tabControlMain.Height += 22; tcRevNumber.SizeMode = TabSizeMode.Fixed; tcReplType.SizeMode = TabSizeMode.Fixed; btnPrevStep.Visible = false; string spath = bootloader.Env.SolutionPath ?? Settings.WPath; ftbInputNum.Dialog.InitialDirectory = ftbOutputFile.Dialog.InitialDirectory = ftbReplFile.Dialog.InitialDirectory = spath.PathFormat(); }
public TrayForm(IBootloader loader, FormWindowState state) { if (loader == null) { throw new ArgumentNullException("Bootloader cannot be null."); } this.loader = loader; svc = new Mokona(loader); fic = listener(typeof(InterruptedClickFilter)); fmc = listener(typeof(MixedClicksFilter)); fdc = listener(typeof(DoubleClicksFilter)); fhs = listener(typeof(HyperactiveScrollFilter)); InitializeComponent(); origin = ClientSize; try { notifyIconMain.Icon = Icon = Icon.ExtractAssociatedIcon(Application.ExecutablePath); } catch (ArgumentException ex) { notifyIconMain.Icon = Icon; LSender.Send(this, ex.Message, Log.Message.Level.Debug); } hotKeys.KeyPress += onHotKeys; log.Received += onLogMsgReceived; fic.Triggering += (object sender, DataArgs <ulong> e) => { uiAction(() => labelInterruptedClick.Text = e.Data.ToString()); }; fmc.Triggering += (object sender, DataArgs <ulong> e) => { uiAction(() => labelMixedClicks.Text = e.Data.ToString()); }; fdc.Triggering += (object sender, DataArgs <ulong> e) => { uiAction(() => labelDoubleClick.Text = e.Data.ToString()); }; fhs.Triggering += (object sender, DataArgs <ulong> e) => { uiAction(() => labelHyperactiveScroll.Text = e.Data.ToString()); }; WindowState = state; Resize += (object _sender, EventArgs _e) => { visible(WindowState); }; Modifiers mcomb = Modifiers.ControlKey | Modifiers.AltKey | Modifiers.ShiftKey; try { hotKeys.register(mcomb, Keys.Z); hotKeys.register(mcomb, Keys.X); } catch (Exception ex) { log.send(this, ex.Message, Log.Message.Level.Error); } }
public Events(IBootloader bootloader, IInspector inspector = null) { this.Bootloader = bootloader; this.inspector = inspector; Env = bootloader.Env; backupUpdate(); }
/// <summary> /// Construct data from used components with IBootloader /// </summary> /// <param name="bootloader"></param> public Inspector(IBootloader bootloader) { this.bootloader = bootloader; foreach (IComponent c in bootloader.Registered) { #if DEBUG Log.Trace("Inspector: extracting from '{0}'", c.GetType().Name); #endif extract(c, data); } if (data.Count < 1) { return; } // Aliases to components foreach (var root in data[new NodeIdent()]) { if (root.Aliases == null) { continue; } foreach (string alias in root.Aliases) { data[new NodeIdent(alias, root.Link.method, root.Link.className)] = data[root.Link]; //shallow copies } } }
/// <param name="bootloader"></param> /// <param name="pin"></param> public VersionFrm(IBootloader bootloader, ITransfer pin) { manager = new Manager(bootloader.Env); _pin = pin; InitializeComponent(); Icon = Resource.Package_32; editorStepGen._.WordWrap = false; editorStepGen._.IsReadOnly = true; editorStepGen._.FontSize = 9.25f; editorStepGen.setBackgroundFromString("#F4F4F4"); editorFinalScript.colorize(TextEditor.ColorSchema.SBEScripts); editorFinalScript.codeCompletionInit(new Inspector(bootloader), new MSBuild.Parser(bootloader.Env, bootloader.UVariable)); editorFinalScript.CodeCompletionEnabled = true; editorFinalScript._.WordWrap = false; tabControlMain.Top = -22; tabControlMain.Height += 22; tcRevNumber.SizeMode = TabSizeMode.Fixed; tcReplType.SizeMode = TabSizeMode.Fixed; btnPrevStep.Visible = false; string spath = bootloader.Env.SolutionPath ?? Settings.WPath; ftbInputNum.Dialog.InitialDirectory = ftbOutputFile.Dialog.InitialDirectory = ftbReplFile.Dialog.InitialDirectory = spath.PathFormat(); }
public Mokona(IBootloader loader) { if (loader == null) { throw new ArgumentNullException("Bootloader cannot be null."); } Loader = loader; }
public ComponentsFrm(IBootloader bootloader, IInspector inspector) { this.bootloader = bootloader; this.inspector = inspector; InitializeComponent(); Icon = Resource.Package_32; Util.fixDGVRowHeight(dgvComponents); }
public ComponentsFrm(IBootloader bootloader, IInspector inspector) { this.bootloader = bootloader; this.inspector = inspector; InitializeComponent(); Icon = Resource.Package_32; Util.fixDGVRowHeight(dgvComponents); }
public ToolContext(IEnvironment env) { Log.Trace("Initialization of the clean context for testing."); bootloader = new Bootloader(env, uvariable); bootloader.register(); inspector = new Inspector(bootloader); script = new Script(bootloader); msbuild = new MSBuild.Parser(env, uvariable); }
/// <param name="loader">Initialization with loader</param> public MSBuildComponent(IBootloader loader) : base(loader) { }
public static void Enqueue(this IBootContext context, IBootloader bootloader) { context.Enqueue(bootloader.GetType().Name, bootloader.Load); }
public ToolContext(IEnvironment env) { Log.Trace("Initialization of the clean context for testing."); bootloader = new Bootloader(env, uvariable); bootloader.register(); inspector = new Inspector(bootloader); script = new Script(bootloader); msbuild = new MSBuild.Parser(env, uvariable); }
/// <param name="loader">Initialization with IBootloader</param> public Script(IBootloader loader) { bootloader = loader; env = loader.Env; uvariable = loader.UVariable; }
/// <param name="loader">Initialize with loader</param> public BuildComponent(IBootloader loader) : base(loader) { }
/// <param name="loader">Initialize with loader</param> public SevenZipComponent(IBootloader loader) : base(loader) { initLib(); }
/// <param name="loader">Initialization with loader</param> public Component(IBootloader loader) : this() { init(loader.Env, loader.UVariable); script = new Script(loader); }
/// <param name="loader">Initialization with IBootloader</param> public Script(IBootloader loader) { bootloader = loader; env = loader.Env; uvariable = loader.UVariable; }
/// <param name="loader">Initialization with loader</param> public UserVariableComponent(IBootloader loader) : base(loader) { }
/// <param name="loader">Initialize with loader</param> public FunctionComponent(IBootloader loader) : base(loader) { }
/// <param name="loader">Initialization with loader</param> public TryComponent(IBootloader loader) : base(loader) { }
/// <param name="loader">Initialization with loader</param> public InternalComponent(IBootloader loader) : base(loader) { }
/// <param name="loader">Initialize with loader</param> public SevenZipComponent(IBootloader loader) : base(loader) { initLib(); }
/// <param name="loader">Initialization with loader</param> public BoxComponent(IBootloader loader) : base(loader) { init(); }
/// <param name="loader">Initialize with loader</param> public NuGetComponent(IBootloader loader) : base(loader) { }
/// <param name="loader">Initialization with loader</param> public ConditionComponent(IBootloader loader) : base(loader) { init(); }
/// <param name="loader">Initialize with loader</param> public FileComponent(IBootloader loader) : base(loader) { }
public Events(IBootloader bootloader) { this.Bootloader = bootloader; Env = bootloader.Env; backupUpdate(); }
/// <param name="bootloader"></param> public EventsFrm(IBootloader bootloader) { InitializeComponent(); defaultSizes(); updateColors(); IInspector inspector = new Inspector(bootloader); logic = new Logic.Events(bootloader, inspector); textEditor.codeCompletionInit(inspector); Icon = Resource.Package_32; toolTip.SetToolTip(pictureBoxWarnWait, Resource.StringWarnForWaiting); #if DEBUG this.Text = String.Format("{0} [Debug version]", Settings.APP_NAME); toolStripMenuDebugMode.Checked = true; toolStripMenuDebugMode.Enabled = false; toolStripMenuVersion.Text = String.Format("based on {0}", Version.branchSha1); #else if(Version.branchName.ToLower() != "releases") { this.Text = String.Format("{0} [Unofficial release]", Settings.APP_NAME); } toolStripMenuDebugMode.Checked = Settings._.DebugMode; toolStripMenuVersion.Text = String.Format("v{0} [ {1} ]", Version.numberString, Version.branchSha1); #endif menuCfgSuppressDualCmd.Checked = Settings.CfgUser.Global.SuppressDualCommand; // Fixes for dataGridView component with the height property Util.fixDGVRowHeight(dataGridViewOutput); Util.fixDGVRowHeight(dataGridViewOrder); Util.fixDGVRowHeight(dgvActions); Util.fixDGVRowHeight(dgvComponents); Util.fixDGVRowHeight(dgvCEFilters); Util.fixDGVRowHeight(dgvCESniffer); }
/// <param name="loader">Initialization with loader</param> public TryComponent(IBootloader loader) : base(loader) { }
/// <param name="loader">Initialization with loader</param> public Component(IBootloader loader) : this() { init(loader.Env, loader.UVariable); script = new Script(loader); }
/// <param name="loader">Initialization with loader</param> public ConditionComponent(IBootloader loader) : base(loader) { init(); }
/// <param name="loader">Initialization with loader</param> public UserVariableComponent(IBootloader loader) : base(loader) { }
/// <param name="loader">Initialize with loader</param> public NuGetComponent(IBootloader loader) : base(loader) { }
/// <param name="loader">Initialization with loader</param> public BoxComponent(IBootloader loader) : base(loader) { init(); }
/// <param name="loader">Initialize with loader</param> public FunctionComponent(IBootloader loader) : base(loader) { }
public Events(IBootloader bootloader) { this.Bootloader = bootloader; Env = bootloader.Env; backupUpdate(); }