Exemple #1
0
        private void acNewShare_LinkClicked(object sender, EventArgs e)
        {
            //Process p = SharesAPI.RunAddAShareWizard(hn.creds, hn.hostName);
            //if (p != null && Configurations.currentPlatform == LikewiseTargetPlatform.Windows)
            //{
            //    ProcessUtil.AlertWhenDone(p, WizardDone);
            //}
            //else
            //{
            NewShareWizardDlg dlg = new NewShareWizardDlg(this.container, this, plugin);

            if (dlg.ShowDialog(this) == DialogResult.OK)
            {
                if (dlg.sharedFolderList.Count != 0)
                {
                    foreach (ShareInfo shareinfo in dlg.sharedFolderList)
                    {
                        //try
                        //{
                        //SharesAPI.NetShareAdd(plugin.fileHandle.Handle,
                        //}
                    }
                }
            }
            //}
            treeNode.sc.ShowControl(treeNode);
        }
        public NewShareWelcomePage(WizardDialog wizardDialog, IPlugIn plugin, IPlugInContainer container)
        {
            InitializeComponent();

            this.plugin    = plugin as FileShareManagerIPlugIn;
            this.container = container;
            this.parentDlg = wizardDialog as NewShareWizardDlg;
        }
        public NewShareFolderSetUpPage(WizardDialog wizardDialog, IPlugIn plugin, IPlugInContainer container)
        {
            InitializeComponent();

            this.plugin = plugin;
            this.container = container;
            this.parentDlg = wizardDialog as NewShareWizardDlg;
        }
        public NewSharePermissionsPage(WizardDialog wizardDialog, IPlugIn plugin, IPlugInContainer container)
        {
            InitializeComponent();

            this.plugin    = plugin;
            this.container = container;
            this.parentDlg = wizardDialog as NewShareWizardDlg;
        }
        public NewShareWelcomePage(WizardDialog wizardDialog, IPlugIn plugin, IPlugInContainer container)
        {
            InitializeComponent();

            this.plugin = plugin as FileShareManagerIPlugIn;
            this.container = container;
            this.parentDlg = wizardDialog as NewShareWizardDlg;
        }
 private void acNewShare_LinkClicked(object sender, EventArgs e)
 {
     //Process p = SharesAPI.RunAddAShareWizard(hn.creds, hn.hostName);
     //if (p != null && Configurations.currentPlatform == LikewiseTargetPlatform.Windows)
     //{
     //    ProcessUtil.AlertWhenDone(p, WizardDone);
     //}
     //else
     //{
     NewShareWizardDlg dlg = new NewShareWizardDlg(this.container, this, plugin);
         if (dlg.ShowDialog(this) == DialogResult.OK)
         {
             if (dlg.sharedFolderList.Count != 0)
             {
                 foreach (ShareInfo shareinfo in dlg.sharedFolderList)
                 {
                     //try
                     //{
                     //SharesAPI.NetShareAdd(plugin.fileHandle.Handle,
                     //}
                 }
             }
         }
     //}
     treeNode.sc.ShowControl(treeNode);
 }