Exemplo n.º 1
0
        //
        //  Base:
        //
        public void Start(string pathS, string pathT, WorkerForm WF)
        {
            pathSource = pathS;
            pathTarget = pathT;
            WForm = WF;

            PreProcess();
        }
Exemplo n.º 2
0
        public MainForm()
        {
            WForm = new WorkerForm(this);

            trayMenu = new ContextMenu();
            trayMenu.MenuItems.Add("Show", TrayShow);
            trayMenu.MenuItems.Add("Exit", TrayExit);

            trayIcon = new NotifyIcon()
            {
                Text = "Auto Copy",
                Icon = new Icon(Properties.Resources.mainicon, 40, 40),
                ContextMenu = trayMenu,
                Visible = true
            };
            trayIcon.DoubleClick += new EventHandler(TrayShow);

            InitializeComponent();

            tb_source.Text = Properties.Settings.Default.LastFolderSource;
            tb_target.Text = Properties.Settings.Default.LastFolderTarget;
        }