public MainForm(RenameController control) { InitializeComponent(); this.Size = new Size(409, 410); ivRenameControl = control; setOutputFormatText(); MaximizeBox = false; }
static void Main(string[] args) { // Check if there is another instance of the application running. Process process; if (SingletonController.TryGetPreviousInstance(Process.GetCurrentProcess(), out process)) { // Send the arguments the the currently running instance. SingletonController.SendArguments(args); // Return to end the process. return; } Application.EnableVisualStyles(); Application.SetCompatibleTextRenderingDefault(false); RenameController control = new RenameController(); SingletonController.RegisterReceiveEvent(control.MainForm.Recieve); Application.Run(control.MainForm); }
public MainForm() { InitializeComponent(); ivRenameControl = new RenameController(this); }