private void shellNotifyIcon_BalloonClick(object sender, EventArgs e) { bool added; switch (notifyType) { case NotifyType.Collision: if ( !GlobalProperties.AdvancedConflictResolver(ifWebService, ifolderFromNotify)) { ConflictResolver conflictResolver = new ConflictResolver(); conflictResolver.StartPosition = FormStartPosition.CenterScreen; conflictResolver.iFolder = ifolderFromNotify; conflictResolver.iFolderWebService = ifWebService; conflictResolver.LoadPath = Application.StartupPath; conflictResolver.CreateControl(); ShellNotifyIcon.SetForegroundWindow(conflictResolver.Handle); conflictResolver.Show(); } break; case NotifyType.NewMember: iFolderAdvanced ifolderAdvanced = new iFolderAdvanced(); ifolderAdvanced.StartPosition = FormStartPosition.CenterScreen; ifolderAdvanced.CurrentiFolder = ifolderFromNotify; ifolderAdvanced.LoadPath = Application.StartupPath; ifolderAdvanced.ActiveTab = 1; ifolderAdvanced.EventClient = eventClient; ifolderAdvanced.DomainName = (simiasWebService.GetDomainInformation(ifolderFromNotify.DomainID)).Name; ifolderAdvanced.DomainUrl = (simiasWebService.GetDomainInformation(ifolderFromNotify.DomainID)).HostUrl; ifolderAdvanced.CreateControl(); ShellNotifyIcon.SetForegroundWindow(ifolderAdvanced.Handle); ifolderAdvanced.ShowDialog(); ifolderAdvanced.Dispose(); break; case NotifyType.Subscription: if(ifolderFromNotify != null) globalProperties.AcceptiFolder( ifolderFromNotify, out added); break; case NotifyType.SyncError: if (infolog.Visible) infolog.Activate(); else syncLog.Show(); break; } }
private void menuResolve_Click(object sender, System.EventArgs e) { if (!AdvancedConflictResolver(ifWebService, ((iFolderObject)selectedItem.Tag).iFolderWeb)) { ConflictResolver conflictResolver = new ConflictResolver(); conflictResolver.iFolder = ((iFolderObject)selectedItem.Tag).iFolderWeb; conflictResolver.iFolderWebService = ifWebService; conflictResolver.LoadPath = Application.StartupPath; conflictResolver.Show(); } }
private void conflicts_LinkClicked(object sender, System.Windows.Forms.LinkLabelLinkClickedEventArgs e) { if( !iFolderComponent.AdvancedConflictResolver(ifWebService, currentiFolder)) { ConflictResolver conflictResolver = new ConflictResolver(); conflictResolver.iFolder = currentiFolder; conflictResolver.iFolderWebService = ifWebService; conflictResolver.LoadPath = loadPath; conflictResolver.ConflictsResolved += new Novell.iFolderCom.ConflictResolver.ConflictsResolvedDelegate(conflictResolver_ConflictsResolved); conflictResolver.ShowDialog(); } }
public void InvokeConflictResolverDlg([MarshalAs(UnmanagedType.LPWStr)] string dllPath, [MarshalAs(UnmanagedType.LPWStr)] string path) { try { iFolderWeb ifolder = ifWebService.GetiFolderByLocalPath(path); ConflictResolver conflictResolver = new ConflictResolver(); conflictResolver.iFolder = ifolder; conflictResolver.iFolderWebService = ifWebService; conflictResolver.LoadPath = dllPath; conflictResolver.Show(); } catch (Exception ex) { MyMessageBox mmb = new MyMessageBox(resourceManager.GetString("conflictDialogError"), resourceManager.GetString("conflictErrorTitle"), ex.Message, MyMessageBoxButtons.OK, MyMessageBoxIcon.Error); mmb.ShowDialog(); } }
private void menuResolve_Click(object sender, System.EventArgs e) { ConflictResolver conflictResolver = new ConflictResolver(); conflictResolver.iFolder = ((iFolderObject)iFolderView.SelectedItems[0].Tag).iFolderWeb; conflictResolver.iFolderWebService = ifWebService; conflictResolver.LoadPath = Application.StartupPath; conflictResolver.Show(); }
private void shellNotifyIcon_BalloonClick(object sender, EventArgs e) { switch (notifyType) { case NotifyType.Collision: ConflictResolver conflictResolver = new ConflictResolver(); conflictResolver.StartPosition = FormStartPosition.CenterScreen; conflictResolver.iFolder = ifolderFromNotify; conflictResolver.iFolderWebService = ifWebService; conflictResolver.LoadPath = Application.StartupPath; conflictResolver.CreateControl(); ShellNotifyIcon.SetForegroundWindow(conflictResolver.Handle); conflictResolver.Show(); break; case NotifyType.NewMember: iFolderAdvanced ifolderAdvanced = new iFolderAdvanced(); ifolderAdvanced.StartPosition = FormStartPosition.CenterScreen; ifolderAdvanced.CurrentiFolder = ifolderFromNotify; ifolderAdvanced.LoadPath = Application.StartupPath; ifolderAdvanced.ActiveTab = 1; ifolderAdvanced.EventClient = eventClient; ifolderAdvanced.CreateControl(); ShellNotifyIcon.SetForegroundWindow(ifolderAdvanced.Handle); ifolderAdvanced.ShowDialog(); ifolderAdvanced.Dispose(); break; case NotifyType.Subscription: AcceptInvitation acceptInvitation = new AcceptInvitation(ifWebService, ifolderFromNotify); acceptInvitation.StartPosition = FormStartPosition.CenterScreen; acceptInvitation.Visible = false; acceptInvitation.CreateControl(); ShellNotifyIcon.SetForegroundWindow(acceptInvitation.Handle); acceptInvitation.ShowDialog(); acceptInvitation.Dispose(); break; case NotifyType.SyncError: syncLog.Show(); break; case NotifyType.CreateAccount: if (preferences.Visible) { preferences.Activate(); } else { preferences.Show(); } preferences.SelectAccounts(true); break; } }