コード例 #1
0
        public ServerBasedDialog(LanguagePair[] languagePairs, ITranslationProviderCredentialStore credentialStore)
        {
            this.model          = new ServerBasedModel(languagePairs, credentialStore);
            this.form           = new ServerBasedForm();
            this.presenter      = new ServerBasedPresenter(this.form, this.model);
            this.form.Presenter = this.presenter;

            this.languagePairs   = languagePairs;
            this.credentialStore = credentialStore;

            this.Deserialize();
        }
コード例 #2
0
 public ServerBasedPresenter(ServerBasedForm form, ServerBasedModel model)
 {
     this.form  = form;
     this.model = model;
 }