protected override void OnOpened() { base.OnOpened(); HtmlPage.Plugin.Focus(); var tb = this.FindName("TB_Falg_RO") as TextBox; if (tb != null) { tb.Focus(); } if (_IsMainID) { tb = this.FindName("TB_Falg_ID") as TextBox; if (tb != null) { tb.Focus(); } } ///////////////////////// if (!_IsInitButton) { try { var bt1 = this.FindName("Btn_OK") as ButtonErp; var bt2 = this.FindName("Btn_Cancel") as ButtonErp; ComAddViewMethods.AddChildWindowDefaultButtonMethod(bt1, bt2); _IsInitButton = true; } catch { } } }
private void InitEvents() { ComAddViewMethods.Add(this); //////////////////////////////////////////////////////////////// this.LayoutUpdated += new System.EventHandler(ChildWindowErp_LayoutUpdated); }
private void InitEvents() { ComAddViewMethods.Add(this); this.LayoutUpdated += new System.EventHandler(UserControlErp_LayoutUpdated); }