コード例 #1
0
 private void tsmSetItem_Click(object sender, EventArgs e)
 {
     if (_CurrentItem != null)
     {
         frmFlowChartItemSet frm = new frmFlowChartItemSet(_CurrentItem.Name,
             _CurrentItem.Shape, _CurrentItem.FormModel, _CurrentItem.ForeColor, _CurrentItem.BackColor,
             _CurrentItem.Rect.Width, _CurrentItem.Rect.Height, _CurrentItem.BorderColor, _CurrentItem.TextFont, _CurrentItem.ToolTip, _CurrentItem.BackImage);
         if (frm.ShowDialog() == DialogResult.OK)
         {
             _CurrentItem.Name = frm.ItemName;
             _CurrentItem.Shape = frm.ItemShape;
             _CurrentItem.FormModel = frm.ItemFormModel;
             _CurrentItem.ForeColor = frm.ItemForeColor;
             _CurrentItem.BackColor = frm.ItemBackColor;
             _CurrentItem.Rect.Width = frm.ItemWidth;
             _CurrentItem.Rect.Height = frm.ItemHeight;
             _CurrentItem.BorderColor = frm.ItemBorderColor;
             _CurrentItem.TextFont = frm.ItemFont;
             _CurrentItem.ToolTip = frm.ItemToolTip;
             _CurrentItem.BackImage = frm.ItemBackImage;
             DrawItems();
         }
     }
 }
コード例 #2
0
 private void tsbLineSet_Click(object sender, EventArgs e)
 {
     if (_CurrentLine != null)
     {
         frmFlowChartItemSet frm = new frmFlowChartItemSet(_CurrentLine.LineColor, _CurrentLine.LineWidth, _CurrentLine.ArrowCapWidth, _CurrentLine.ArrowCapHeight);
         if (frm.ShowDialog() == DialogResult.OK)
         {
             _CurrentLine.LineColor = frm.LineColor;
             _CurrentLine.LineWidth = frm.LineWidth;
             _CurrentLine.ArrowCapWidth = frm.LineCapWidth;
             _CurrentLine.ArrowCapHeight = frm.LineCapHeight;
             DrawItems();
         }
     }
 }