public AboutExpander() { InitializeComponent(); VersionLabel.Text = "v" + GRBLMachinePlugin.Version; TheToolTip.SetToolTip(DonateLabel, "In case you are using GRBLMachine for commercial purposes,\r\n" + "you might want to show your appreciation by transfering\r\n" + "a couple of bucks into my PayPal account ([email protected]).\r\n\r\nAny amount is welcome ;)"); }
private void SetScriptFilePath(string path) { var oldPath = _scriptFilePath.Text; _scriptFilePath.Text = path; TheToolTip.SetToolTip(_scriptFilePath, path); if (oldPath != path) { //Watch new path try { var fullpath = Path.GetFullPath(path); _scriptFileWatcher.Path = Path.GetDirectoryName(fullpath); _scriptFileWatcher.Filter = Path.GetFileName(fullpath); _scriptFileWatcher.EnableRaisingEvents = true; } catch (Exception) { // Do nothing } } }
private void SetScriptFilePath(string path) { _scriptFilePath.Text = path; TheToolTip.SetToolTip(_scriptFilePath, path); }