private void CreateFrameResource_OnClick(object sender, EventArgs e) { FrameResource fr = new FrameResource(); fr.WriteToFile(Path.Combine(currentDirectory.FullName, "FrameResource_0.fr")); }