private void DoClickSelectButton(bool ignoreMultiInsert) { if (!btnSelect.Checked) { if (FNowInserting != null && FNowInserting.MultiInsert && !ignoreMultiInsert) { Designer.InsertObject(FNowInserting, InsertFrom.NewObject); } else { ResetButtons(); btnSelect.Checked = true; Designer.ActiveReportTab.ActivePageDesigner.CancelPaste(); } } }
private void button_Click(object sender, EventArgs e) { Designer.FormatPainter = false; if (!Designer.cmdInsert.Enabled) { return; } ResetButtons(); if (sender is ButtonItem && (sender as ButtonItem).IsOnBar) { (sender as ButtonItem).Checked = true; } FNowInserting = (sender as ButtonItem).Tag as ObjectInfo; Designer.InsertObject(FNowInserting, InsertFrom.NewObject); }