/Instance-Preventer

A program that adds a new Program.cs file to your C# project, allowing it to not run more than once (if needed)

Primary LanguageC#GNU Lesser General Public License v2.1LGPL-2.1

Instance Preventer

A program that creates a new Program.cs file for your C# project, which prevents more than one program running at a time

InstancePreventer

Features:

  • Simple & Lightweight Design
  • Folder Choosing and Names for the text boxes
  • Creates a Program_new.cs file for you to look at and determine what needs to be added
    • Prevents data loss with over-writing the existing Program.cs
  • Credits and Info
  • Doesn't replace existing Program.cs (makes a new one) until you choose to replace it
  • Inception: You cannot even run this program more than once!

Tips + Images

  • Use the Name, Text, and Namespace parts of your code to make this right
  • Snipping Tool messed up the underlining on these images..

image1

image2

image3

Usage:

  • Load the program up, find the folder you want to place your new .cs file in, add in the Namespace, App, and Form data then create the file!

Notes:

  • I may clean the code and arrays later but I'm happy with the result so far

You can download the program here