示例#1
0
        /// <summary>
        /// Sets model data, binds to controls and handles event that introduce new model data to page
        /// </summary>
        /// <param name="sender">Sender of event</param>
        /// <param name="e">Event arguments</param>
        protected override void Page_ModelReceived(object sender, NewModelReceivedEventArgs e)
        {
            this.OkCancel.StartProcessing("Loading data...");
            var model = e.NewModelData.CastOrFill <CustomerModel>();

            BindModel(model);
            this.OkCancel.StopProcessing("");
        }
 /// <summary>
 /// Sets model data, binds to controls and handles event that introduce new model data to page
 /// </summary>
 /// <param name="sender">Sender of event</param>
 /// <param name="e">Event arguments</param>
 protected override void Page_ModelReceived(object sender, NewModelReceivedEventArgs e)
 {
     BindModel(e.NewModelData.ToStringSafe());
     ErrorLine2.Text = TypeExtension.DefaultString;
 }
示例#3
0
 /// <summary>
 /// Sets model data, binds to controls and handles event that introduce new model data to page
 /// </summary>
 /// <param name="sender">Sender of event</param>
 /// <param name="e">Event arguments</param>
 protected override void Page_ModelReceived(object sender, NewModelReceivedEventArgs e)
 {
     BindModel(MyViewModel.MyModel = new CustomerSearchModel());
 }
示例#4
0
 /// <summary>
 /// Sets model data, binds to controls and handles event that introduce new model data to page
 /// </summary>
 /// <param name="sender">Sender of event</param>
 /// <param name="e">Event arguments</param>
 protected override void Page_ModelReceived(object sender, NewModelReceivedEventArgs e)
 {
     BindModel(new CustomerModel());
 }
示例#5
0
 /// <summary>
 /// Binds all model data to the screen controls and sets MyViewModel.MyModel property
 /// </summary>
 /// <param name="sender">Sender of event</param>
 /// <param name="e">Event arguments</param>
 protected abstract void Page_ModelReceived(object sender, NewModelReceivedEventArgs e);