Ejemplo n.º 1
0
 public MainForm(RenameController control)
 {
     InitializeComponent();
     this.Size       = new Size(409, 410);
     ivRenameControl = control;
     setOutputFormatText();
     MaximizeBox = false;
 }
Ejemplo n.º 2
0
        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);
        }
Ejemplo n.º 3
0
 public MainForm()
 {
     InitializeComponent();
     ivRenameControl = new RenameController(this);
 }