/// <summary> /// 初期化処理 /// </summary> public override void OnInitInstance() { base.OnInitInstance(); // ステータス同期 _selectedParts = (PartsCollectionBase)Share.Get("SelectedParts", typeof(PartsCollection)); _selectedParts.SetTemporaryMode(); }
public override void OnInitInstance() { base.OnInitInstance(); SelectedParts = (PartsCollectionBase)Share.Get("SelectedParts", typeof(PartsCollection)); TextBox = GetControl("textBoxTalk") as RichTextBox; TextBox?.ResetText(); TextBox.SelectionChanged += TextBox_SelectionChanged; LabelTime = GetControl("LabelTalkBarTime") as Label; }
/// <summary> /// /// </summary> /// <param name="value"></param> protected void setPartsData(PartsCollectionBase value) { System.Diagnostics.Debug.Assert(_partsData == null, "setPartsDataはルートグループフィーチャーに一度だけ実行する特殊なメソッドです"); _partsData = value; init(); }