Exemplo n.º 1
0
 /// <summary>
 /// 非虚拟点颜色设置
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 private void ENotVirtualMark_MouseLeftButtonDown(object sender, MouseButtonEventArgs e)
 {
     ColorFont.ColorDialog fntDialog = new ColorFont.ColorDialog(NotVirtualMark, MarkDiameter);
     if (fntDialog.ShowDialog() == true)
     {
         NotVirtualMark = fntDialog.selectedColor;
         MarkDiameter = fntDialog.selectedSize;
         ENotVirtualMark.Fill = fntDialog.selectedColor;
         LoadAllMark();
     }
 }
Exemplo n.º 2
0
 /// <summary>
 /// 线路颜色设置
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 private void RecRoute_MouseLeftButtonDown(object sender, MouseButtonEventArgs e)
 {
     ColorFont.ColorDialog fntDialog = new ColorFont.ColorDialog(RouteColor, MarkDiameter);
     if (fntDialog.ShowDialog() == true)
     {
         RouteColor = fntDialog.selectedColor;
         RecRoute.Fill = fntDialog.selectedColor;
         path.Stroke = RouteColor;
         LoadDataGrid(cbRoute_WorkLine.Text.Trim(), linenum);
     }
 }
Exemplo n.º 3
0
 /// <summary>
 /// 非虚拟点颜色设置
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 private void ETrafficMark_MouseLeftButtonDown(object sender, MouseButtonEventArgs e)
 {
     ColorFont.ColorDialog fntDialog = new ColorFont.ColorDialog(TrafficColor, MarkDiameter);
     if (fntDialog.ShowDialog() == true)
     {
         TrafficColor = fntDialog.selectedColor;
         ETrafficMark.Fill = fntDialog.selectedColor;
         if (cbTraffic.SelectedValue != null)
         {
                 trafficnum = Convert.ToUInt16(cbTraffic.SelectedValue.ToString().Trim());
                 LoadDataGrid(trafficnum.ToString());
         }
     }
 }