/// <summary> /// Cancels the editable state of the property and restores button visibility state. /// </summary> /// <param name="sender">The source of the event.</param> /// <param name="e">The <see cref="System.EventArgs"/> instance containing the event data.</param> protected void ButtonCancel_Click(object sender, EventArgs e) { MultiviewMain.SetActiveView(ViewShow); }
/// <summary> /// Stst the content control to editable state and shows save and cancel buttons. /// </summary> /// <param name="sender">The source of the event.</param> /// <param name="e">The <see cref="System.EventArgs"/> instance containing the event data.</param> protected void LinkButtonEdit_Click(object sender, EventArgs e) { TextEditor.Text = CurrentPage[PropertyName] as string; MultiviewMain.SetActiveView(ViewEdit); }