/// <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; }
/// <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()); }
/// <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()); }
/// <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);