public ConfigKPPSignIn(WmKmodBroker broker) { InitializeComponent(); creds.PopulateFromRegistry(); m_broker = broker; QueryCancel += OnCancellation; }
public frmCreateKwsWizard(KwsCoreOp op, WmKmodBroker kmodBroker) : this() { CreateOp = op as KwmCreateKwsOp; InviteOp = op as KwmInviteOp; KmodBroker = kmodBroker; this.AcceptButton = this.nextButton; this.Icon = Properties.Resources.TeamboxIcon; this.Text = (CreateOp != null ? "Teambox creation" : "Teambox invitation"); Pages.Add(new PagePleaseWait()); Pages.Add(new PageCreate()); Pages.Add(new PageInvite()); Pages.Add(new PagePromptPwds()); Pages.Add(new PageSuccess()); Pages.Add(new PageSuccessWithWarnings()); Pages.Add(new PageInviteSuccessWithWarnings()); Pages.Add(new PageFailure()); Pages.Add(new PageTooManyKws()); Pages.Add(new PageNoSecure()); ResizeToFit(); }
public ConfigKPPCredentials(ConfigKPPOrder order, WmKmodBroker broker) { Order = order; InitializeComponent(); creds.PopulateFromRegistry(); m_broker = broker; QueryCancel += OnCancellation; }
/// <summary> /// Submit a query to the broker specified. The command array must /// contain at least one command, the last of which being the command /// having an associated result. A session will be created to handle /// the commands. The callback function specified will be called when /// the results are available. /// </summary> public void Submit(WmKmodBroker broker, K3pCmd[] inCmdArray, KmodQueryDelegate callback) { Debug.Assert(inCmdArray.Length > 0); InCmdArray = inCmdArray; InCmdWithRes = InCmdArray[InCmdArray.Length - 1]; Callback = callback; base.Submit(broker); }
/// <summary> /// Submit the query using the credentials obtained from the registry /// specified. /// </summary> public void Submit(WmKmodBroker broker, KwmCfg cfg, WmLoginTicketQueryDelegate callback) { // Set the proper callback. Callback2 = callback; // Fill out the server information. K3p.K3pSetServerInfo ssi = new K3p.K3pSetServerInfo(); WmK3pServerInfo.RegToServerInfo(cfg, ssi.Info); // Submit the query. base.Submit(broker, new K3pCmd[] { ssi, new K3p.kpp_get_kws_ticket() }, AnalyseResults); }
public ConfigKPPWizard(WmKmodBroker broker) { InitializeComponent(); this.AcceptButton = this.nextButton; this.Icon = Properties.Resources.TeamboxIcon; m_signInPage = new ConfigKPPSignIn(broker); this.Pages.Add(new ConfigKPPRegistration(broker)); this.Pages.Add(m_signInPage); this.Pages.Add(new ConfigKPPEmailVerif(broker)); this.Pages.Add(new ConfigKPPSuccess()); ResizeToFit(); }
public ConfigKPPWizard(WmKmodBroker broker) { InitializeComponent(); this.AcceptButton = this.nextButton; this.Icon = Properties.Resources.TeamboxIcon; ConfigKPPOrder order = new ConfigKPPOrder(); order.HaveAccount = order.Credentials = "ConfigKPPCredentials"; creds = new ConfigKPPCredentials(order, broker); this.Pages.Add(new ConfigKPPWelcome(order)); this.Pages.Add(new ConfigKPPCreateAccount(order)); this.Pages.Add(creds); this.Pages.Add(new ConfigKPPSuccess(order)); ResizeToFit(); }
/// <summary> /// Initialization code common to both the deserialized and /// non-deserialized cases. This must be called in the WM spawner. /// </summary> public void Initialize(WmLocalDb localDb) { LocalDb = localDb; LocalDbBroker = new WmLocalDbBroker(LocalDb); Sm = new WmStateMachine(this); OutlookBroker = new WmOutlookBroker(this); OutlookBroker.OnThreadCollected += OnThreadCollected; KmodBroker = new WmKmodBroker(); KmodBroker.OnThreadCollected += OnThreadCollected; UiBroker = new WmUiBroker(this); // Create or upgrade the database. LocalDbBroker.InitDb(); // Open the lingering database transaction. LocalDbBroker.BeginTransaction(); }
public ConfigKPPEmailVerif(WmKmodBroker broker) { InitializeComponent(); m_broker = broker; QueryCancel += OnCancellation; }
/// <summary> /// Submit the query using the credentials obtained from the registry /// specified. /// </summary> public void Submit(WmKmodBroker broker, WmWinRegistry registry, WmLoginTicketQueryDelegate callback) { // Set the proper callback. Callback2 = callback; // Fill out the server information. K3p.K3pSetServerInfo ssi = new K3p.K3pSetServerInfo(); WmK3pServerInfo.RegToServerInfo(registry, ssi.Info); // Submit the query. base.Submit(broker, new K3pCmd[] { ssi, new K3p.kpp_get_kws_ticket() }, AnalyseResults); }
public KmodBrokerWakeUpMsg(WmKmodBroker broker) { Broker = broker; }
/// <summary> /// Submit the transaction to the KMOD broker specified. The Run() /// method will be called when the broker is ready to execute the /// transaction. The broker guarantees that the transaction will be /// executed in the context of the UI and outside the current /// execution context. In other words, the Run() method will not be /// called before Submit() has returned. /// </summary> public void Submit(WmKmodBroker broker) { broker.SubmitTransaction(this); }
public KmodThreadNotif(WmKmodBroker broker, KmodThreadCommand command) { m_broker = broker; m_command = command; }
public KmodThread(WmKmodBroker broker) : base() { m_broker = broker; }