public void OnCreate(IApplication hook) { if (hook != null) { this.hk = hook; resample = new Resample1(); resample.Visible = false; } }