public void SetColor(PathContainerView view) { txbEg.Range.SetStyle(view.FilenameOkStyle, "This file or directory can be renamed"); txbEg.Range.SetStyle(view.FileLockedStyle, "This file is used by another program"); txbEg.Range.SetStyle(view.FileOverwriteStyle, "This file or directory already exists"); txbEg.Range.SetStyle(view.WrongFilenameStyle, "This path is invalid"); }
public RegexWindow(Form parent, PathContainerView view, PathContainerView preview) { InitializeComponent(); this.parent = parent; this.view = view; this.preview = preview; }