示例#1
0
 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();
         }
     }
 }
示例#2
0
        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);
        }