コード例 #1
0
 /* ----------------------------------------------------------------- */
 ///
 /// MainForm
 ///
 /// <summary>
 /// オブジェクトを初期化します。
 /// </summary>
 ///
 /// <param name="args">プログラム引数</param>
 ///
 /* ----------------------------------------------------------------- */
 public MainForm(string[] args) : this()
 {
     Load += (s, e) => Aggregator?.GetEvents()?.Open.Publish(args);
 }
コード例 #2
0
 /* --------------------------------------------------------------------- */
 ///
 /// MainViewModel
 ///
 /// <summary>
 /// Initializes a new instance of the ViewModelBase class with the
 /// specified arguments.
 /// </summary>
 ///
 /// <param name="facade">Facade of models.</param>
 /// <param name="aggregator">Message aggregator.</param>
 /// <param name="context">Synchronization context.</param>
 ///
 /* --------------------------------------------------------------------- */
 protected ViewModelBase(TFacade facade, Aggregator aggregator, SynchronizationContext context) :
     base(aggregator, context)
 {
     Facade = facade;
 }