private void DoOnMouseClick(object sender, EventArgs e) { UiThread.RunOnIdle(() => { if (printItem != null) { string pathAndFile = printItem.FileLocation; if (File.Exists(pathAndFile)) { bool shiftKeyDown = Keyboard.IsKeyDown(Keys.ShiftKey); if (shiftKeyDown) { OpenPartPreviewWindow(View3DWidget.AutoRotate.Disabled); } else { OpenPartPreviewWindow(View3DWidget.AutoRotate.Enabled); } } else { QueueRowItem.ShowCantFindFileMessage(printItem); } } }); }
private void onMouseClick(object sender, MouseEventArgs e) { if (printItem != null) { string pathAndFile = printItem.FileLocation; if (File.Exists(pathAndFile)) { new PartPreviewMainWindow(printItem); } else { QueueRowItem.ShowCantFindFileMessage(printItem); } } }