示例#1
0
partial         void startDownload(MonoMac.AppKit.NSButton sender)
        {
            elenco.elencoImmagini.Clear();
            lstImg.ReloadData();
            getImmagini(null);
            if(elenco.elencoImmagini.Count==0)
                return;
            var dlgConfirm=new NSAlert { MessageText="Confirm donwload images" };
            dlgConfirm.AddButton("Yes");
            dlgConfirm.AddButton("No");
            var result=dlgConfirm.RunModal();
            dlgConfirm.Dispose();
            if(result==1001)
                return;

            if(_pdlg==null)
                _pdlg=new PreviewFileDlgController();
            _pdlg.Elenco=elenco;
            _pdlg.destPath=destPath.StringValue;
            _pdlg.Window.MakeKeyAndOrderFront(this.Window);
            _pdlg.DownloadImages();
            _pdlg.Close();
            //_pdlg.doModal(this);
        }
示例#2
0
 private void doCheck()
 {
     myTimer.Stop ();
     elenco.elencoImmagini.Clear();
     lstImg.ReloadData();
     getImmagini(".jpg");
     if(elenco.elencoImmagini.Count==0)
         return;
     if(_pdlg==null)
         _pdlg=new PreviewFileDlgController();
     _pdlg.Elenco=elenco;
     _pdlg.destPath=destPath.StringValue;
     _pdlg.Window.MakeKeyAndOrderFront(this.Window);
     _pdlg.DownloadImages();
     _pdlg.Close();
     myTimer.Start();
 }