Exemplo n.º 1
0
 public bool CreateiFolder([MarshalAs(UnmanagedType.LPWStr)] string dllPath, [MarshalAs(UnmanagedType.LPWStr)] string path)
 {
     CreateiFolder createiFolder = new CreateiFolder();
        createiFolder.iFolderWebService = ifWebService;
        createiFolder.iFolderPath = path;
        createiFolder.LoadPath = dllPath;
        if (DialogResult.OK == createiFolder.ShowDialog())
     return true;
        return false;
 }
Exemplo n.º 2
0
 private void menuCreate_Click(object sender, System.EventArgs e)
 {
     ArrayList domains = new ArrayList();
     DomainInformation[] domainsInfo = simiasWebService.GetDomains(false);
     if( defaultDomainInfo == null && domainsInfo!= null && domainsInfo.Length > 0)
         defaultDomainInfo = domainsInfo[0];
        DomainItem selectedDomainItem = null;
     if( defaultDomainInfo != null)
         selectedDomainItem = new DomainItem( defaultDomainInfo.Name, defaultDomainInfo.ID );
     if (null != domainsInfo)
     {
         for (int i = 0; i < domainsInfo.Length; i++)
         {
             DomainItem domainItem = new DomainItem(domainsInfo[i].Name, domainsInfo[i].ID, domainsInfo[i].Host, domainsInfo[i].HostUrl);
             domains.Add(domainItem);
         }
     }
        CreateiFolder createiFolder = new CreateiFolder();
     try
     {
         createiFolder.Servers = domains;
         if (selectedDomainItem != null)
             createiFolder.SelectedDomain = selectedDomainItem;
     }
     catch (Exception ex)
     {
         throw (ex);
     }
        createiFolder.LoadPath = Application.StartupPath;
        createiFolder.iFolderWebService = ifWebService;
        createiFolder.simiasWebService = this.simiasWebService;
        if ((DialogResult.OK == createiFolder.ShowDialog()) && iFolderComponent.DisplayConfirmationEnabled)
        {
     new iFolderComponent().NewiFolderWizard(Application.StartupPath, createiFolder.iFolderPath);
        }
 }
Exemplo n.º 3
0
 private void menuCreate_Click(object sender, System.EventArgs e)
 {
     ArrayList domains = new ArrayList();
        Domain selectedDomain = (Domain)servers.SelectedItem;
        selectedDomain = selectedDomain.ShowAll ? defaultDomain : selectedDomain;
        DomainItem selectedDomainItem = null;
        foreach (Domain d in servers.Items)
        {
     if (!d.ShowAll)
     {
      DomainItem domainItem = new DomainItem(d.Name, d.ID);
      if ((selectedDomain != null) && d.ID.Equals(selectedDomain.ID))
      {
       selectedDomainItem = domainItem;
      }
      domains.Add(domainItem);
     }
        }
        CreateiFolder createiFolder = new CreateiFolder();
        createiFolder.Servers = domains;
        createiFolder.SelectedDomain = selectedDomainItem;
        createiFolder.LoadPath = Application.StartupPath;
        createiFolder.iFolderWebService = ifWebService;
        if ((DialogResult.OK == createiFolder.ShowDialog()) && iFolderComponent.DisplayConfirmationEnabled)
        {
     new iFolderComponent().NewiFolderWizard(Application.StartupPath, createiFolder.iFolderPath);
        }
 }