public static void ExecuteAction(string actionName, IList<string> parameters) { IAction actionInstance; if (ActionExists(actionName)) { actionInstance = GetActionInstance(actionName); } else { actionInstance = new Help(); parameters.Clear(); } if (parameters.Count != actionInstance.ParametersCount) { // -1 signifie un nombre illimité d'arguments (mais pas 0) if (actionInstance.ParametersCount != -1) { string puralIfNeeded = actionInstance.ParametersCount != 1 ? "s" : ""; Console.WriteLine( "This action require {0} parameter{1}.", actionInstance.ParametersCount, puralIfNeeded); return; } } actionInstance.Execute(parameters); }
public ekle(string firma, string firmad, int i, string firmakod, string urunkod="",string kategorikod = "",string turkod="") { InitializeComponent(); fkod = firmakod; ukod = urunkod; kkod = kategorikod; tkod = turkod; DB = new Database(); HP = new Help(); panel1.Controls.Clear(); if (i == 1) { groupBox1.Dock = DockStyle.Fill; panel1.Controls.Add(groupBox1); } else if (i == 2) { groupBox2.Dock = DockStyle.Fill; panel1.Controls.Add(groupBox2); } else { groupBox3.Dock = DockStyle.Fill; panel1.Controls.Add(groupBox3); } }
private void aboutSudokuToolStripMenuItem_Click(object sender, EventArgs e) { Form help = new Help(2); help.ShowDialog(this); help = null; }
private void help_Click(object sender, EventArgs e) { this.Hide(); Help help = new Help(this); help.SetDesktopLocation(this.DesktopLocation.X, this.DesktopLocation.Y); help.Show(); }
public void ShowHelp(Help h, string url) { this.Show(); if (string.IsNullOrEmpty(url)) h.Navigate(); else h.Navigate(url); }
/// <summary> /// Show the help form for a given page /// </summary> /// <param name="page"></param> public static void ShowHelp(Help.HelpPage page) { // Check if the help form exists, otherwise create a new one if (help == null || !help.Visible) help = new Help(); // Set the form to show the right tab, then show it in the front help.ShowPage(page); }
/// <summary> /// Instantiates a new instance of the <see cref="MethodEditor"/> class /// </summary> /// <param name="parentManager"></param> /// <param name="specialCharacters"></param> /// <param name="help"></param> public MethodEditor(MacroManager parentManager, SpecialCharacters specialCharacters, Help help) { InitializeComponent(); this._macroManager = parentManager; this._specialCharacters = specialCharacters; this._help = help; this._methodRegister = new MacroMethodRegister(); }
public void ShouldLoadHelpAndPrintToTextWriter() { var output = new StringWriter(); var printer = new Help(output); printer.PrintHelp(); Assert.That(output.ToString().Contains("confgen")); }
private void button4_Click(object sender, EventArgs e) { if (helpForm == null || !helpForm.Visible) { helpForm = new Help(); helpForm.Show(); helpForm.BringToFront(); } }
public Satis() { DB = new Database(); HP = new Help(); depoSatir = new DataTable(); InitializeComponent(); datatable(); }
public static void ShowHelp(Help h, string url) { if (h == null || h.IsDisposed) h = new Help(); h.Show(); if (string.IsNullOrEmpty(url)) h.Navigate(); else h.Navigate(url); }
public void ShouldReturnTrueForHelpArguments() { var printer = new Help(null); AssertIsHelpArgument(printer, "/?"); AssertIsHelpArgument(printer, "/help"); AssertIsHelpArgument(printer, "/help", "another"); AssertIsHelpArgument(printer, "/?", "another"); AssertIsNotHelpArgument(printer, "/nothelp"); AssertIsNotHelpArgument(printer, "somefile.xml.master"); AssertIsNotHelpArgument(printer, "somefile.xml"); }
private void helpToolStripMenuItem_Click(object sender, EventArgs e) { Help_Details helpDetails = new Help_Details(); helpDetails.MdiParent = this; helpDetails.Show(); Help help = new Help(); help.MdiParent = this; help.Show(); LayoutMdi(MdiLayout.TileVertical); }
public Sil(int i, string firmakod, string urunkod, string kategorikod, string turkod) { InitializeComponent(); this.fkod = firmakod; this.ukod = urunkod; this.kkod = kategorikod; this.tkod = turkod; table = i; DB = new Database(); HP = new Help(); }
public MainClass() { InitializeComponent(); FunctionManager.Setup(); PrefsManager.Load(); lm = new LabelManager(this, PrefsManager.ResultHeight); lm.Sc = LMSelectionChanged; ResizeInputField(); prefs = new Prefs(); prefs.Hide(); hlp = new Help(); hlp.Hide(); vchk = new VersionCheck(); }
public Anasayfa(int a, string n) { InitializeComponent(); this.Admin = a; this.name = n; if (Admin == 0) { button6.Visible = false; button7.Visible = false; } HP = new Help(); //HP.addPanel(ref panel1); }
/// <summary> /// Instantiates a new instance of the <see cref="MacroManager"/> class /// </summary> /// <param name="buddyEnabled"> /// Specifies whether macros allow RebornBuddy functionality. Passing true /// when Ennerbot is not being run under the context of a RebornBuddy plugin /// will cause the program to throw /// </param> /// <param name="testMode"> /// Test mode will use a different set of execution logic that will not actually /// send messages to the FFXIV client /// </param> public MacroManager(bool buddyEnabled, bool testMode) { this.InitializeComponent(); this._buddyEnabled = buddyEnabled; this._testMode = testMode; this._currentFile = null; this._windowFactory = new ArrWindowFactory(new WindowFactory()); this._help = new Help(); this._specialCharacters = new SpecialCharacters(); this._methodEditor = new MethodEditor(this, this._specialCharacters, this._help); this._windowPicker = new WindowPicker(); this._windowPicker.OnWindowSelected += title => this.UpdateClient((new WindowFactory()).HookWindowByCaption(title)); this.saveFileDialog.InitialDirectory = Application.StartupPath; }
public Game() { try { FileStream inFile = new FileStream("Setting.txt", FileMode.Open); StreamReader sr = new StreamReader(inFile); string st = sr.ReadLine(); map= new Map(this, st[0] - '0', st[1] - '0'); st = sr.ReadLine(); cntPlayer = st.Length; player = new Player[cntPlayer]; for (int i = 0; i < cntPlayer; ++i) player[i] = new Player(i, "", st[i].ToString(), map.MapX / 2, map.MapY / 2); } catch { map = new Map(this); cntPlayer = 4; player = new Player[cntPlayer]; player[0] = new Player(0, "", "A", map.MapX / 2, map.MapY / 2); player[1] = new Player(1, "", "B", map.MapX / 2, map.MapY / 2); player[2] = new Player(2, "", "C", map.MapX / 2, map.MapY / 2); player[3] = new Player(3, "", "D", map.MapX / 2, map.MapY / 2); } //cntPlayer = 4; //player = new Player[cntPlayer]; //player[0] = new Player(0, "", "A", map.MapX / 2, map.MapY / 2); //player[1] = new Player(1, "", "B", map.MapX / 2, map.MapY / 2); //player[2] = new Player(2, "", "C", map.MapX / 2, map.MapY / 2); //player[3] = new Player(3, "", "D", map.MapX / 2, map.MapY / 2); //nowPlayerID = -1; alg = new Alg(this); help = new Help(this); Mover.game = this; nowPlayerID = -1; WaitReviving = true; NewRound(); }
public Giris() { InitializeComponent(); DB = new Database(); HP = new Help(); barkodSatir = new DataTable(); table = new PdfPTable(4); button4.Enabled = false; button5.Enabled = false; button6.Enabled = false; button7.Enabled = false; button8.Enabled = false; button9.Enabled = false; panel2.Controls.Clear(); }
protected void Button1_Click(object sender, EventArgs e) { Help help = new Help(); help.Title = txt_title.Text; help.Content =FCKeditor1.Value; help.Cateid = Convert.ToInt32(dl_cate.SelectedValue); BLLhelp bllhelp = new BLLhelp(); int result = bllhelp.insert(help); if (result>0) { Common.MessageAlert.AlertLocation(Page, "alert('添加成功');location.href='helplist.aspx'"); } else { Common.MessageAlert.Alert(Page,"添加失败"); } }
protected void Page_Load(object sender, EventArgs e) { if (!IsPostBack) { Help help = new Help(); help.ID = Convert.ToInt32(Request.QueryString["id"]); BLLhelp bllhelp = new BLLhelp(); MySqlDataReader sdr = bllhelp.readinfo(help); if (sdr.Read()) { Label1.Text = sdr["_id"].ToString(); TextBox1.Text = sdr["_title"].ToString(); FCKeditor1.Value = sdr["_content"].ToString(); } sdr.Close(); } }
public static int Main (params String[] args) { var errors = new List<String> (); var parameters = new Parameters () { CraftFilter = new RegexFilter (""), PartFilter = new RegexFilter ("") }; var ui = new ProgramUI (parameters); var printInfoHeader = new Info (ui); var printUsage = new Help (ui); var commandLineParser = new CommandLineParser () .RequiredArgument (0, cmd => parameters.Command = ParseCommand (cmd, ui, parameters)) .RequiredSwitchArg<String> ("i", filePath => parameters.InputFilePath = filePath) .OptionalSwitchArg<String> ("o", filePath => parameters.OutputFilePath = filePath) .OptionalSwitchArg<String> ("c", "craft", pattern => parameters.CraftFilter = new RegexFilter (pattern)) .OptionalSwitchArg<String> ("p", "part", pattern => parameters.PartFilter = new RegexFilter (pattern)) .OptionalSwitch ("s", "silent", () => parameters.SilentExecution = true) .OnError (errors.Add); try { commandLineParser.Parse (args); if (parameters.OutputFilePath == null) { parameters.OutputFilePath = parameters.InputFilePath; } if (errors.Count > 0) { printInfoHeader.Execute (); printUsage.Execute (); errors.ForEach (ui.DisplayErrorMessage); return -1; } if (!parameters.SilentExecution) printInfoHeader.Execute (); return parameters.Command (); } catch (Exception ex) { ui.DisplayErrorMessage (ex.ToString ()); return -1; } }
protected void Button1_Click(object sender, EventArgs e) { Help help = new Help(); int id = Convert.ToInt32(Label1.Text); help.ID = id; help.Title = TextBox1.Text; help.Content = FCKeditor1.Value; BLLhelp bllhelp = new BLLhelp(); int result = bllhelp.update(help); if (result > 0) { Common.MessageAlert.AlertLocation(Page, "alert('更新成功');location.href='helplist.aspx'"); } else { Common.MessageAlert.Alert(Page, "更新失败"); } }
protected void Page_Load(object sender, EventArgs e) { int id = Convert.ToInt32(Request.QueryString["id"]); BLLHelpcate bllhelpcate = new BLLHelpcate(); DataSet ds = bllhelpcate.select(); Repeater1.DataSource = ds; Repeater1.DataBind(); int _id = Convert.ToInt32(Request.QueryString["_id"]); Help help = new Help(); help.ID = _id; BLLhelp bllhelp = new BLLhelp(); MySqlDataReader sdr = bllhelp.readinfo(help); if (sdr.Read()) { Label1.Text = sdr["_title"].ToString(); Label2.Text = sdr["_content"].ToString(); Page.Title = Label1.Text; } }
/// <summary> /// Factory method for creating commands /// </summary> /// <param name="inputCommand">User input string</param> /// <returns>ICommand object</returns> public ICommand CreateCommand(string inputCommand) { inputCommand = inputCommand.ToLower(); if (this.commandDictionary.ContainsKey(inputCommand)) { return this.commandDictionary[inputCommand]; } else { ICommand command; switch (inputCommand) { case "help": command = new Help(); break; case "top": command = new Top(); break; case "restart": command = new Restart(); break; case "exit": command = new Exit(); break; default: if (inputCommand.Length != 1 || string.IsNullOrWhiteSpace(inputCommand)) { throw new ArgumentException(GlobalMessages.IncorrectGuessOrCommand); } command = new LetterGuess(inputCommand); break; } return command; } }
public void ProvideFeedback() { Help test = new Help(driver); test.ProvideFeedback(); }
private void helpToolStripMenuItem_Click(object sender, EventArgs e) { Help helpForm = new Help(); //EASTER EGG HEUEUEHUE :D helpForm.Show(); }
private void diseñoCobradores_HelpRequested(object sender, HelpEventArgs hlpevent) { //Se ingresa el link de la ayuda para que aparezca al presionar f1 Help.ShowHelp(this, "C:/ayuda/ModuloAdmon.chm", "cobradores.html"); }
//<Snippet2> private void showIndex_Click(object sender, System.EventArgs e) { // Display the index for the help file. Help.ShowHelpIndex(this, helpfile); }
public override void OnInspectorGUI() { //setup custom define dictionary---------------------// //initial settings------------------------------------// CurvedUISettings myTarget = (CurvedUISettings)target; if (target == null) { return; } GUI.changed = false; EditorGUIUtility.labelWidth = 150; //Version----------------------------------------------// GUILayout.Label("Version 2.8", EditorStyles.miniLabel); //vr event system warning------------------------------// if (PlayerSettings.virtualRealitySupported && CUIeventSystemPresent == false) //vr enabled reports wrong value on some versions { EditorGUILayout.HelpBox("Unity UI may become unresponsive in VR if game window loses focus. Use CurvedUIEventSystem instead of standard EventSystem component to solve this issue.", MessageType.Warning); GUILayout.BeginHorizontal(); GUILayout.Space(146); if (GUILayout.Button("Use CurvedUI Event System")) { SwapEventSystem(); } GUILayout.EndHorizontal(); GUILayout.Space(30); } //Control methods--------------------------------------// DrawControlMethods(); //shape settings----------------------------------------// GUILayout.Label("Shape", EditorStyles.boldLabel); myTarget.Shape = (CurvedUISettings.CurvedUIShape)EditorGUILayout.EnumPopup("Canvas Shape", myTarget.Shape); switch (myTarget.Shape) { case CurvedUISettings.CurvedUIShape.CYLINDER: { myTarget.Angle = EditorGUILayout.IntSlider("Angle", myTarget.Angle, -360, 360); myTarget.PreserveAspect = EditorGUILayout.Toggle("Preserve Aspect", myTarget.PreserveAspect); break; } case CurvedUISettings.CurvedUIShape.CYLINDER_VERTICAL: { myTarget.Angle = EditorGUILayout.IntSlider("Angle", myTarget.Angle, -360, 360); myTarget.PreserveAspect = EditorGUILayout.Toggle("Preserve Aspect", myTarget.PreserveAspect); break; } case CurvedUISettings.CurvedUIShape.RING: { myTarget.RingExternalDiameter = Mathf.Clamp(EditorGUILayout.IntField("External Diameter", myTarget.RingExternalDiameter), 1, 100000); myTarget.Angle = EditorGUILayout.IntSlider("Angle", myTarget.Angle, 0, 360); myTarget.RingFill = EditorGUILayout.Slider("Fill", myTarget.RingFill, 0.0f, 1.0f); myTarget.RingFlipVertical = EditorGUILayout.Toggle("Flip Canvas Vertically", myTarget.RingFlipVertical); break; } case CurvedUISettings.CurvedUIShape.SPHERE: { GUILayout.BeginHorizontal(); GUILayout.Space(150); EditorGUILayout.HelpBox("Sphere shape is more expensive than a Cyllinder shape. Keep this in mind when working on mobile VR.", MessageType.Info); GUILayout.EndHorizontal(); GUILayout.Space(10); if (myTarget.PreserveAspect) { myTarget.Angle = EditorGUILayout.IntSlider("Angle", myTarget.Angle, -360, 360); } else { myTarget.Angle = EditorGUILayout.IntSlider("Horizontal Angle", myTarget.Angle, 0, 360); myTarget.VerticalAngle = EditorGUILayout.IntSlider("Vertical Angle", myTarget.VerticalAngle, 0, 180); } myTarget.PreserveAspect = EditorGUILayout.Toggle("Preserve Aspect", myTarget.PreserveAspect); break; } }//end of shape settings-------------------------------// //180 degree warning ----------------------------------// if ((myTarget.Shape != CurvedUISettings.CurvedUIShape.RING && myTarget.Angle.Abs() > 180) || (myTarget.Shape == CurvedUISettings.CurvedUIShape.SPHERE && myTarget.VerticalAngle > 180)) { Draw180DegreeWarning(); } //advanced settings------------------------------------// GUILayout.Space(30); if (!ShowAdvaced) { if (GUILayout.Button("Show Advanced Settings")) { ShowAdvaced = true; loadingCustomDefine = false; } } else { //hide advances settings button. if (GUILayout.Button("Hide Advanced Settings")) { ShowAdvaced = false; } GUILayout.Space(20); //common options //GUILayout.Label("Other Options", EditorStyles.boldLabel); myTarget.Interactable = EditorGUILayout.Toggle("Interactable", myTarget.Interactable); myTarget.BlocksRaycasts = EditorGUILayout.Toggle("Blocks Raycasts", myTarget.BlocksRaycasts); myTarget.RaycastMyLayerOnly = EditorGUILayout.Toggle("Raycast My Layer Only", myTarget.RaycastMyLayerOnly); if (myTarget.Shape != CurvedUISettings.CurvedUIShape.SPHERE) { myTarget.ForceUseBoxCollider = EditorGUILayout.Toggle("Force Box Colliders Use", myTarget.ForceUseBoxCollider); } //quality GUILayout.Space(20); myTarget.Quality = EditorGUILayout.Slider("Quality", myTarget.Quality, 0.1f, 3.0f); GUILayout.BeginHorizontal(); GUILayout.Space(150); GUILayout.Label("Smoothness of the curve. Bigger values mean more subdivisions. Decrease for better performance. Default 1", EditorStyles.helpBox); GUILayout.EndHorizontal(); #if CURVEDUI_STEAMVR_LEGACY || CURVEDUI_STEAMVR_2 || CURVEDUI_GOOGLEVR || CURVEDUI_OCULUSVR //controller override GUILayout.Space(20); CurvedUIInputModule.Instance.ControllerTransformOverride = (Transform)EditorGUILayout.ObjectField("Controller Override", CurvedUIInputModule.Instance.ControllerTransformOverride, typeof(Transform), true); GUILayout.BeginHorizontal(); GUILayout.Space(150); GUILayout.Label("(Optional) If set, its position and forward direction will be used to point at canvas.", EditorStyles.helpBox); GUILayout.EndHorizontal(); #endif //add components button GUILayout.Space(20); GUILayout.BeginHorizontal(); GUILayout.Label("Components", GUILayout.Width(146)); if (GUILayout.Button("Add Curved Effect To Children")) { AddCurvedUIComponents(); } GUILayout.EndHorizontal(); //remove components button GUILayout.BeginHorizontal(); GUILayout.Label("", GUILayout.Width(146)); if (!ShowRemoveCurvedUI) { if (GUILayout.Button("Remove CurvedUI from Canvas")) { ShowRemoveCurvedUI = true; } } else { if (GUILayout.Button("Remove CurvedUI")) { RemoveCurvedUIComponents(); } if (GUILayout.Button("Cancel")) { ShowRemoveCurvedUI = false; } } GUILayout.EndHorizontal(); //documentation link GUILayout.Space(20); GUILayout.BeginHorizontal(); GUILayout.Label("Documentation", GUILayout.Width(146)); if (GUILayout.Button("Open in web browser")) { Help.BrowseURL("https://docs.google.com/document/d/10hNcvOMissNbGgjyFyV1MS7HwkXXE6270A6Ul8h8pnQ/edit"); } GUILayout.EndHorizontal(); }//end of Advanced settings---------------------------// GUILayout.Space(20); //final settings if (GUI.changed && myTarget != null) { EditorUtility.SetDirty(myTarget); } }
public void HelpCenter() { Help test = new Help(driver); test.HelpCenter(); }
//Ayuda MDI private void ayudaToolStripMenuItem1_Click(object sender, EventArgs e) { Help.ShowHelp(this, "AyudasModuloSCM/AyudasSCMASII.chm", "MDI.html"); }
//</Snippet3> //<Snippet4> private void showKeyword_Click(object sender, System.EventArgs e) { // Display help using the provided keyword. Help.ShowHelp(this, helpfile, keyword.Text); }
private void Txt_encargado_HelpRequested(object sender, HelpEventArgs hlpevent) { Help.ShowHelp(this, "C:/Ayuda/ayudaGeneral.chm", "datos.html"); }
public void helpLibraryClick(object sender, EventArgs e) { Help.ShowHelp(this, Properties.Resources.LibraryHelpFile); }
private void itIndiceAyuda_Click(object sender, EventArgs e) { Help.ShowHelpIndex(this, @"Ayuda.chm"); }
private void btn1_Click(object sender, EventArgs e) { Help f1 = new Help(); f1.Show(); }
public static void GoToScriptReference() { Help.BrowseURL("http://behaviourmachine.com/ScriptReference"); }
public static void GoToVideos() { Help.BrowseURL("http://www.youtube.com/channel/UCirkB3MbbdFk5s6PKRNynuA"); }
private void btnShowIndex_Click(object sender, System.EventArgs e) { Help.ShowHelpIndex(this, helpProvider1.HelpNamespace); }
private void itAyudaGeneral_Click(object sender, EventArgs e) { Help.ShowHelp(this, @"Ayuda.chm"); }
public Help Put(Help request) { return(Patch(request)); }
public static void GoToUserManual() { Help.BrowseURL("http://www.behaviourmachine.com/user-manual/"); }
public static void GoToGettingStarted() { Help.BrowseURL("http://behaviourmachine.com/GettingStarted/GettingStarted.pdf"); }
private void ShowHelp(object sender, EventArgs e) { Help.ShowHelp(this, Properties.Resources.HelpFile, "ConsoleForm.html"); }
private void helpToolStripMenuItem_Click(object sender, EventArgs e) { Help.ShowHelp(this, "AddyScript.chm"); }
public static HDInsight.IAbstractionContext GetAbstractionContext() { return(Help.SafeCreate(() => new AbstractionContext(CancellationToken.None))); }
private void helpPictureBox_Click(object sender, EventArgs e) { var path = Directory.GetCurrentDirectory(); Help.ShowHelp(this, "file://" + path + "\\Resources\\korisnicka_dokumentacija.chm"); }
void DrawControlMethods() { GUILayout.Label("Global Settings", EditorStyles.boldLabel); //Control Method dropdown--------------------------------// CurvedUIInputModule.ControlMethod = (CurvedUIInputModule.CUIControlMethod)EditorGUILayout.EnumPopup("Control Method", CurvedUIInputModule.ControlMethod); GUILayout.BeginHorizontal(); GUILayout.Space(150); GUILayout.BeginVertical(); //Custom Settings for each Control Method---------------// switch (CurvedUIInputModule.ControlMethod) { case CurvedUIInputModule.CUIControlMethod.MOUSE: { #if CURVEDUI_GOOGLEVR EditorGUILayout.HelpBox("Enabling this control method will disable GoogleVR support.", MessageType.Warning); DrawCustomDefineSwitcher(""); #else GUILayout.Label("Basic Controller. Mouse on screen", EditorStyles.helpBox); #endif break; } // end of MOUSE case CurvedUIInputModule.CUIControlMethod.GAZE: { #if CURVEDUI_GOOGLEVR EditorGUILayout.HelpBox("Enabling this control method will disable GoogleVR support.", MessageType.Warning); DrawCustomDefineSwitcher(""); #else GUILayout.Label("Center of Canvas's Event Camera acts as a pointer. This is a generic gaze implementation, to be used with any headset. If you're on cardboard, use GOOGLEVR control method for Reticle and GameObject interaction support.", EditorStyles.helpBox); CurvedUIInputModule.Instance.GazeUseTimedClick = EditorGUILayout.Toggle("Use Timed Click", CurvedUIInputModule.Instance.GazeUseTimedClick); if (CurvedUIInputModule.Instance.GazeUseTimedClick) { GUILayout.Label("Clicks a button if player rests his gaze on it for a period of time. You can assign an image to be used as a progress bar.", EditorStyles.helpBox); CurvedUIInputModule.Instance.GazeClickTimer = EditorGUILayout.FloatField("Click Timer (seconds)", CurvedUIInputModule.Instance.GazeClickTimer); CurvedUIInputModule.Instance.GazeClickTimerDelay = EditorGUILayout.FloatField("Timer Start Delay", CurvedUIInputModule.Instance.GazeClickTimerDelay); CurvedUIInputModule.Instance.GazeTimedClickProgressImage = (UnityEngine.UI.Image)EditorGUILayout.ObjectField("Progress Image To FIll", CurvedUIInputModule.Instance.GazeTimedClickProgressImage, typeof(UnityEngine.UI.Image), true); } #endif break; } // end of GAZE case CurvedUIInputModule.CUIControlMethod.WORLD_MOUSE: { #if CURVEDUI_GOOGLEVR EditorGUILayout.HelpBox("Enabling this control method will disable GoogleVR support.", MessageType.Warning); DrawCustomDefineSwitcher(""); #else GUILayout.Label("Mouse controller that is independent of the camera view. Use WorldSpaceMouseOnCanvas function to get its position.", EditorStyles.helpBox); CurvedUIInputModule.Instance.WorldSpaceMouseSensitivity = EditorGUILayout.FloatField("Mouse Sensitivity", CurvedUIInputModule.Instance.WorldSpaceMouseSensitivity); #endif break; } // end of WORLD_MOUSE case CurvedUIInputModule.CUIControlMethod.CUSTOM_RAY: { #if CURVEDUI_GOOGLEVR EditorGUILayout.HelpBox("Enabling this control method will disable GoogleVR support.", MessageType.Warning); DrawCustomDefineSwitcher(""); #else GUILayout.Label("Set a ray used to interact with canvas using CustomControllerRay function. Use CustomControllerButtonState bool to set button pressed state. Find both in CurvedUIInputModule class", EditorStyles.helpBox); GUILayout.BeginHorizontal(); //GUILayout.Space(20); GUILayout.FlexibleSpace(); if (GUILayout.Button("View code snippet")) { Help.BrowseURL("https://docs.google.com/document/d/10hNcvOMissNbGgjyFyV1MS7HwkXXE6270A6Ul8h8pnQ/edit#heading=h.b164qm67xp15"); } GUILayout.EndHorizontal(); #endif break; } // end of CUSTOM_RAY case CurvedUIInputModule.CUIControlMethod.STEAMVR_LEGACY: { #if CURVEDUI_STEAMVR_LEGACY // vive enabled, we can show settings GUILayout.Label("Use with SteamVR plugin 1.2 or below. Trigger acts a button", EditorStyles.helpBox); CurvedUIInputModule.Instance.UsedHand = (CurvedUIInputModule.Hand)EditorGUILayout.EnumPopup("Used Controller", CurvedUIInputModule.Instance.UsedHand); #else GUILayout.Label("For SteamVR plugin 1.2 or below.", EditorStyles.helpBox); DrawCustomDefineSwitcher(ControlMethodDefineDict[CurvedUIInputModule.CUIControlMethod.STEAMVR_LEGACY]); #endif break; } // end of STEAMVR_LEGACY case CurvedUIInputModule.CUIControlMethod.STEAMVR_2: { #if CURVEDUI_STEAMVR_2 GUILayout.Label("Use SteamVR controllers to interact with canvas. Requires SteamVR Plugin 2.0 or later.", EditorStyles.helpBox); if (steamVRActions != null) { CurvedUIInputModule.Instance.UsedHand = (CurvedUIInputModule.Hand)EditorGUILayout.EnumPopup("Hand", CurvedUIInputModule.Instance.UsedHand); //Find currently selected action in CurvedUIInputModule int curSelected = steamVRActionsPaths.Length - 1; for (int i = 0; i < steamVRActions.Length; i++) { //no action selected? select one that most likely deals with UI if (CurvedUIInputModule.Instance.SteamVRClickAction == null && steamVRActions[i].GetShortName().Contains("UI")) { CurvedUIInputModule.Instance.SteamVRClickAction = steamVRActions[i]; } //otherwise show currently selected if (steamVRActions[i] == CurvedUIInputModule.Instance.SteamVRClickAction) //otherwise show selected { curSelected = i; } } //Show popup int newSelected = EditorGUILayout.Popup("Click With", curSelected, steamVRActionsPaths, EditorStyles.popup); //assign selected SteamVR Action to CurvedUIInputMOdule if (curSelected != newSelected) { //none has been selected if (newSelected >= steamVRActions.Length) { CurvedUIInputModule.Instance.SteamVRClickAction = null; } else { CurvedUIInputModule.Instance.SteamVRClickAction = steamVRActions[newSelected]; } } } else { //draw error EditorGUILayout.HelpBox("No SteamVR Actions set up. Configure your SteamVR plugin first in Window > Steam VR Input", MessageType.Error); } #else GUILayout.Label("For SteamVR plugin 2.0 or above.", EditorStyles.helpBox); DrawCustomDefineSwitcher(ControlMethodDefineDict[CurvedUIInputModule.CUIControlMethod.STEAMVR_2]); #endif break; } // end of STEAMVR_2 case CurvedUIInputModule.CUIControlMethod.OCULUSVR: { #if CURVEDUI_OCULUSVR // oculus enabled, we can show settings GUILayout.Label("Use Rift, Oculus Go, or GearVR controller to interact with canvas.", EditorStyles.helpBox); //hand property CurvedUIInputModule.Instance.UsedHand = (CurvedUIInputModule.Hand)EditorGUILayout.EnumPopup("Hand", CurvedUIInputModule.Instance.UsedHand); //button property CurvedUIInputModule.Instance.OculusTouchInteractionButton = (OVRInput.Button)EditorGUILayout.EnumPopup("Interaction Button", CurvedUIInputModule.Instance.OculusTouchInteractionButton); #else DrawCustomDefineSwitcher(ControlMethodDefineDict[CurvedUIInputModule.CUIControlMethod.OCULUSVR]); #endif break; } // end of OCULUSVR case CurvedUIInputModule.CUIControlMethod.GOOGLEVR: { #if CURVEDUI_GOOGLEVR GUILayout.Label("Use GoogleVR Reticle to interact with canvas. Requires GoogleVR SDK 1.110 or later.", EditorStyles.helpBox); #else DrawCustomDefineSwitcher(ControlMethodDefineDict[CurvedUIInputModule.CUIControlMethod.GOOGLEVR]); #endif break; } // end of GOOGLEVR }//end of CUIControlMethod Switch GUILayout.EndVertical(); GUILayout.EndHorizontal(); GUILayout.Space(20); }
private void MeniRecepcionerForma_HelpRequested(object sender, HelpEventArgs hlpevent) { var path = Directory.GetCurrentDirectory(); Help.ShowHelp(this, "file://" + path + "\\Resources\\korisnicka_dokumentacija.chm"); }
private void btnSearchHelp_Click(object sender, System.EventArgs e) { Help.ShowHelp(this, helpProvider1.HelpNamespace, HelpNavigator.Find, ""); }
public static void GoToForum() { Help.BrowseURL("http://behaviourmachine.com/Forum"); }
private void BotonActualizarAlmacen_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e) { Help.ShowHelp(this, "http://www.lazarogestion.com/servidor/"); PanelActualizarAlmacen.Visible = false; }
private void BotonForoWeb_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e) { Help.ShowHelp(this, "http://foro.lazarogestion.com/"); }
void BtnHelpClick(object sender, EventArgs e) { Help help = new Help(); help.HelpPage = configLoader.HelpPage; help.ShowDialog(); }
private void BotonWebInicio_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e) { Help.ShowHelp(this, "http://www.lazarogestion.com"); }
private void HelpButton_Click(object sender, EventArgs e) { Help help = new Help(); help.ShowDialog(); }
private void BotonWebPrimerosPasos_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e) { Help.ShowHelp(this, "http://www.lazarogestion.com/soporte/primeros-pasos"); }
private void MainWindow_Load(object sender, EventArgs e) { ColorScheme.SetColorScheme(this); //optionsTab.ItemSize = new Size((this.Width / 4) - 6, optionsTab.ItemSize.Height); System.Reflection.Assembly target = System.Reflection.Assembly.GetExecutingAssembly(); this.Icon = new System.Drawing.Icon(target.GetManifestResourceStream("PassThru.Resources.newIcon.ico")); LogCenter.ti = new TrayIcon(); Program.uc = new UpdateChecker(); Program.uc.Updater(); PassThru.Tabs.DownloadCenter.Instance.Width = 800; PassThru.Tabs.DownloadCenter.Instance.Height = 600; PassThru.Tabs.DownloadCenter.Instance.Show(); PassThru.Tabs.DownloadCenter.Instance.Hide(); // call the log purger LogCenter.cleanLogs(); log = new Tabs.LogDisplay(); log.Dock = DockStyle.Fill; ColorScheme.SetColorScheme(log); LogCenter.PushLogEvent += new LogCenter.NewLogEvent(log.Instance_PushLogEvent); splitContainer1.Panel2.Controls.Add(log); // load up the adapter control handler ac = new AdapterControl(); ColorScheme.SetColorScheme(ac); ac.Dock = DockStyle.Fill; //tabPage3.Controls.Add(ac); // load up the options tab handler od = new OptionsDisplay(); ColorScheme.SetColorScheme(od); od.Dock = DockStyle.Fill; //tabPage2.Controls.Add(od); // load up the options tab handler help = new Help(); ColorScheme.SetColorScheme(help); help.Dock = DockStyle.Fill; //tabPage4.Controls.Add(help); ColorScheme.ThemeChanged += new System.Threading.ThreadStart(ColorScheme_ThemeChanged); switch (LanguageConfig.GetCurrentLanguage()) { case LanguageConfig.Language.NONE: case LanguageConfig.Language.ENGLISH: tabPage1.Text = "Log"; tabPage2.Text = "Options"; tabPage3.Text = "Adapters"; break; case LanguageConfig.Language.CHINESE: tabPage1.Text = "登录"; tabPage2.Text = "选项"; tabPage3.Text = "适配器"; break; case LanguageConfig.Language.GERMAN: tabPage1.Text = "Log"; tabPage2.Text = "Optionen"; tabPage3.Text = "Adapter"; break; case LanguageConfig.Language.RUSSIAN: tabPage1.Text = "журнал"; tabPage2.Text = "опции"; tabPage3.Text = "Адаптеры"; break; case LanguageConfig.Language.SPANISH: tabPage1.Text = "log"; tabPage2.Text = "opciones"; tabPage3.Text = "adaptadores"; break; case LanguageConfig.Language.PORTUGUESE: tabPage1.Text = "Entrar"; tabPage2.Text = "opções"; tabPage3.Text = "adaptadores"; break; } MainWindow_Resize(null, null); if (TrayIcon.StartMinimized) { this.WindowState = FormWindowState.Minimized; } ColorScheme_ThemeChanged(); }
public Help Post(HelpCopy request) { Help ret = null; using (Execute) { Execute.Run(ssn => { var entity = DocEntityHelp.Get(request?.Id); if (null == entity) { throw new HttpError(HttpStatusCode.NoContent, "The COPY request did not succeed."); } if (!DocPermissionFactory.HasPermission(entity, currentUser, DocConstantPermission.ADD)) { throw new HttpError(HttpStatusCode.Forbidden, "You do not have ADD permission for this route."); } var pConfluenceId = entity.ConfluenceId; if (!DocTools.IsNullOrEmpty(pConfluenceId)) { pConfluenceId += " (Copy)"; } var pDescription = entity.Description; if (!DocTools.IsNullOrEmpty(pDescription)) { pDescription += " (Copy)"; } var pIcon = entity.Icon; if (!DocTools.IsNullOrEmpty(pIcon)) { pIcon += " (Copy)"; } var pOrder = entity.Order; var pPages = entity.Pages.ToList(); var pScopes = entity.Scopes.ToList(); var pTitle = entity.Title; if (!DocTools.IsNullOrEmpty(pTitle)) { pTitle += " (Copy)"; } var pType = entity.Type; var copy = new DocEntityHelp(ssn) { Hash = Guid.NewGuid() , ConfluenceId = pConfluenceId , Description = pDescription , Icon = pIcon , Order = pOrder , Title = pTitle , Type = pType }; foreach (var item in pPages) { entity.Pages.Add(item); } foreach (var item in pScopes) { entity.Scopes.Add(item); } copy.SaveChanges(DocConstantPermission.ADD); ret = copy.ToDto(); }); } return(ret); }