示例#1
0
 public override void ShowDialog()
 {
     using (var dialog = new ConnectionPropertiesDialog())
     {
         dialog.IsDotted      = Style == ConnectionStyle.Dashed;
         dialog.IsDirectional = Flow == ConnectionFlow.OneWay;
         dialog.StartText     = StartText;
         dialog.MidText       = MidText;
         dialog.EndText       = EndText;
         if (dialog.ShowDialog() == DialogResult.OK)
         {
             Style     = dialog.IsDotted ? ConnectionStyle.Dashed : ConnectionStyle.Solid;
             Flow      = dialog.IsDirectional ? ConnectionFlow.OneWay : ConnectionFlow.TwoWay;
             StartText = dialog.StartText;
             MidText   = dialog.MidText;
             EndText   = dialog.EndText;
         }
     }
 }
示例#2
0
 public override void ShowDialog()
 {
     using (var dialog = new ConnectionPropertiesDialog())
       {
     dialog.IsDotted = Style == ConnectionStyle.Dashed;
     dialog.IsDirectional = Flow == ConnectionFlow.OneWay;
     dialog.StartText = StartText;
     dialog.MidText = MidText;
     dialog.EndText = EndText;
     dialog.ConnectionColor = ConnectionColor;
     if (dialog.ShowDialog() == DialogResult.OK)
     {
       Style = dialog.IsDotted ? ConnectionStyle.Dashed : ConnectionStyle.Solid;
       Flow = dialog.IsDirectional ? ConnectionFlow.OneWay : ConnectionFlow.TwoWay;
       ConnectionColor = dialog.ConnectionColor;
       StartText = dialog.StartText;
       MidText = dialog.MidText;
       EndText = dialog.EndText;
     }
       }
 }