Esempio n. 1
0
 public ConfigKPPSignIn(WmKmodBroker broker)
 {
     InitializeComponent();
     creds.PopulateFromRegistry();
     m_broker = broker;
     QueryCancel += OnCancellation;
 }
Esempio n. 2
0
        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();
        }
Esempio n. 3
0
 public ConfigKPPCredentials(ConfigKPPOrder order, WmKmodBroker broker)
 {
     Order = order;
     InitializeComponent();
     creds.PopulateFromRegistry();
     m_broker = broker;
     QueryCancel += OnCancellation;
 }
Esempio n. 4
0
 /// <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);
 }
Esempio n. 5
0
        /// <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);
        }
Esempio n. 6
0
        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();
        }
Esempio n. 7
0
        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();
        }
Esempio n. 8
0
 /// <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);
 }
Esempio n. 9
0
        /// <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();
        }
Esempio n. 10
0
 public ConfigKPPEmailVerif(WmKmodBroker broker)
 {
     InitializeComponent();
     m_broker = broker;
     QueryCancel += OnCancellation;
 }
Esempio n. 11
0
        /// <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);
        }
Esempio n. 12
0
 public KmodBrokerWakeUpMsg(WmKmodBroker broker)
 {
     Broker = broker;
 }
Esempio n. 13
0
 /// <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);
 }
Esempio n. 14
0
 public KmodThreadNotif(WmKmodBroker broker, KmodThreadCommand command)
 {
     m_broker = broker;
     m_command = command;
 }
Esempio n. 15
0
 public KmodThreadNotif(WmKmodBroker broker, KmodThreadCommand command)
 {
     m_broker  = broker;
     m_command = command;
 }
Esempio n. 16
0
 public KmodThread(WmKmodBroker broker)
     : base()
 {
     m_broker = broker;
 }
Esempio n. 17
0
 public KmodBrokerWakeUpMsg(WmKmodBroker broker)
 {
     Broker = broker;
 }
Esempio n. 18
0
 public KmodThread(WmKmodBroker broker)
     : base()
 {
     m_broker = broker;
 }
Esempio n. 19
0
 /// <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);
 }