private void SRG_MouseLeftButtonDown(object sender, MouseButtonEventArgs e) { startPoint = SRG.TranslatePoint(new Point(SRG.ActualWidth / 2, SRG.ActualHeight / 2), canvas); StartGDown = true; canRelease = false; canDraw = true; R_firstDown = false; foreach (var item in UCs) { ((IPD)item).GridColorTrigger_L = false; } foreach (var item in S_UC) { ((IPD)item).GridColorTrigger_R = false; } foreach (var item in UPPairs) { if (item.Value.UC_P_One && item.Value.UC_P != null && item.Value.UC_P.Count > 0) { ((IPD)item.Key).GridColorTrigger_R = false; } } }
private void SRG_MouseMove(object sender, MouseEventArgs e) { endPoint = SRG.TranslatePoint(new Point(SRG.ActualWidth / 2, SRG.ActualHeight / 2), canvas); }