public void Start(string alias) { // Check for app commands if (AppForms.HandleForm(alias)) { return; } // Use HelpUrl to open online help if (Executor.ExecuteHelp(Tools, alias)) { return; } // Check for list packages or install if (PluginManager.Handle(alias)) { return; } // Try to find tool to execute if (Executor.ExecuteTool(Tools, alias, Parser, SetError)) { return; } // Try to find Handyman to execute if (Executor.ExecuteHandyman(Handymans, alias, SetError)) { return; } // Fallback execute cmd command Executor.ExecuteFallback(alias); }
public static void AddActiveApplicationHandyman(string appExeName, string appExePath) { var word = new Commands { Alias = appExeName, FileName = appExePath }; AppForms.ShowHandymanForm(word); }
protected override void OnCreate(Bundle bundle) { base.OnCreate(bundle); Forms.Init(this, bundle); SetPage(AppForms.GetMainPage()); }
// // This method is invoked when the application has loaded and is ready to run. In this // method you should instantiate the window, load the UI into it and then make the window // visible. // // You have 17 seconds to return from this method, or iOS will terminate your application. // public override bool FinishedLaunching(UIApplication app, NSDictionary options) { Forms.Init(); // create a new window instance based on the screen size window = new UIWindow(UIScreen.MainScreen.Bounds); // If you have defined a root view controller, set it here: window.RootViewController = AppForms.GetMainPage().CreateViewController(); // make the window visible window.MakeKeyAndVisible(); return(true); }
public void Start(string alias) { try { // Check for app commands if (AppForms.HandleForm(alias)) { History.Add(alias); return; } // Use HelpUrl to open online help if (Executor.ExecuteHelp(Tools, alias)) { History.Add(alias); return; } // Check for list packages or install if (PluginManager.Handle(alias)) { History.Add(alias); return; } // Try to find tool to execute if (Executor.ExecuteTool(Tools, alias, Parser, SetError)) { History.Add(alias); return; } // Try to find Handyman to execute if (Executor.ExecuteHandyman(Handymans, alias, SetError)) { History.Add(alias); return; } // Fallback execute cmd command Executor.ExecuteFallback(alias); History.Add(alias); Launcher.Current.HideForm(); } catch (Exception e) { SetError(e); } }
private void OnNewHandymanToolStripMenuItemClick(object sender, EventArgs e) { AppForms.ShowNewHandymanForm(); }
private void OnHelpToolStripMenuItemClick(object sender, EventArgs e) { AppForms.Help(); }
private void OnExitToolStripMenuItemClick(object sender, EventArgs e) { AppForms.Exit(); }
protected override void OnClosed(EventArgs e) { this.isFormActive = false; AppForms.Remove(this); base.OnClosed(e); }
protected override void OnLoad(EventArgs e) { this.isFormActive = true; AppForms.Add(this); base.OnLoad(e); }