protected override void OnLoad(EventArgs e) { base.OnLoad(e); zoomObj = this.C1ZoomCommandProvider1.OwnerGcZoom; button5_Click(null, EventArgs.Empty); }
private void keepAspectRationButton_Click(object sender, EventArgs e) { using (MiscFeatureForm form = new MiscFeatureForm()) { form.Text = "KeepAspectRatio Form"; C1Zoom C1Zoom = new C1Zoom(); C1Zoom.KeepAspectRatio = KeepAspectRatioCheckBox.Checked; C1Zoom.Target = form; form.ShowDialog(this); } }
private void layoutButton_Click(object sender, EventArgs e) { using (MiscFeatureForm form = new MiscFeatureForm()) { form.Text = "Full Screen Form"; C1Zoom C1Zoom = new C1Zoom(); C1Zoom.FullScreenMode = GetFullScreenMode(); C1Zoom.InnerPanelLayoutMode = GetInnerPanelLayoutMode(); C1Zoom.Target = form; C1Zoom.ControlBars.Add(new C1.Win.TouchToolKit.ControlBar() { Content = typeof(ControlBarUserControl03), Opacity = 1, DockPosition = ContentAlignment.TopRight }); form.ShowDialog(this); } }