internal static void DisplayEdit() { DialogResult buttonPress = (IBMi.GetConfig("dspfNotice") == "yes" ? DialogResult.Yes : DialogResult.No); if (buttonPress == DialogResult.No) { buttonPress = MessageBox.Show("Do you understand that you use the Display File Editor at your own risk? Currently, the Display File Editor is not ready for production use and therefore holds no responsibility of changes made to source when saving.", "Notice!", MessageBoxButtons.YesNo, MessageBoxIcon.Warning); if (buttonPress == DialogResult.Yes) { IBMi.SetConfig("dspfNotice", "yes"); } } if (buttonPress == DialogResult.Yes) { dspfEdit Editor = new dspfEdit(); string path = NppFunctions.GetCurrentFileName(); if (path.Trim() != "") { DisplayParse parser = new LanguageTools.DisplayParse(); parser.ParseFile(path); Editor = new dspfEdit(parser.GetRecordFormats(), path); NppFunctions.RefreshWindow(path); } Editor.ShowDialog(); } }
internal static void ManageCL() { CLFile.CorrectLines(NppFunctions.GetCurrentFileName(), 80); NppFunctions.RefreshWindow(NppFunctions.GetCurrentFileName()); }
private void acceptToolStripMenuItem_Click(object sender, EventArgs e) { File.WriteAllLines(this._curFile, richTextBox2.Lines); NppFunctions.RefreshWindow(this._curFile); this.Close(); }
internal static void ManageCL() { CLFile.CorrectLines(NppFunctions.GetCurrentFileName(), Convert.ToInt32(IBMi.GetConfig("clrcdlen"))); NppFunctions.RefreshWindow(NppFunctions.GetCurrentFileName()); }